Need help with SQLite3

J

Joshua Collins

[Note: parts of this message were removed to make it a legal post.]

I am trying to install SQLite3

I put the required Windows32 files into my path. I installed the gem
sqlite3-ruby successfully ... but something is wrong!

I tested the installation with:

require 'rubygems'
require 'sqlite3'
puts "It's all okay!" if defined?(SQLite3::Database)

On out put I get nothing ... if all was setup ok i should get out of:

It's all okay!

Any idea what could be causing the issue?
 
7

7stud --

Joshua said:
I am trying to install SQLite3

I put the required Windows32 files into my path. I installed the gem
sqlite3-ruby successfully ... but something is wrong!

I tested the installation with:

require 'rubygems'
require 'sqlite3'
puts "It's all okay!" if defined?(SQLite3::Database)

On out put I get nothing ... if all was setup ok i should get out of:

It's all okay!

Any idea what could be causing the issue?

What directory was your prompt pointing at? What is the output when you
type:

...some/path> sqlite3 <return>
 
J

Joshua Collins

[Note: parts of this message were removed to make it a legal post.]

when I type $ sqlite3

No matter the directory since it is in my path

I get the output

SQLite version 3.6.13
Enter ".help" for instructions
Enter SQL statements terminated with ";"
sqlite>

But, it seems my Ruby is not connecting to SQLite3. For instance, that test
file I setup should have gave the prompted text if it returned TRUE, but it
seems to have returned FALSE

So, any code I write will not interface with the database :-\
 
B

Bosko Ivanisevic

[Note:  parts of this message were removed to make it a legal post.]

when I type $ sqlite3

No matter the directory since it is in my path

I get the output

SQLite version 3.6.13
Enter ".help" for instructions
Enter SQL statements terminated with ";"
sqlite>

But, it seems my Ruby is not connecting to SQLite3. For instance, that test
file I setup should have gave the prompted text if it returned TRUE, but it
seems to have returned FALSE

So, any code I write will not interface with the database :-\

What directory was your prompt pointing at?  What is the output when you
type:
...some/path> sqlite3 <return>

Do you have sqlite3.dll in your path too?

Regards,
Bosko
 
D

Damjan Rems

Bosko said:
Do you have sqlite3.dll in your path too?

Regards,
Bosko

This has probably nothing to do with sqlite3.dll.

I guess something is wrong with sqlite3 gem. Try to uninstall it and
install it again.


by
TheR
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,774
Messages
2,569,599
Members
45,175
Latest member
Vinay Kumar_ Nevatia
Top