[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Installing SQLite

Damaris Fuentes

2/5/2007 4:28:00 PM

I have installed the sqlite3 gem for ruby. The installation was
succesful:
gem install sqlite3-ruby --source code.whytheluckystiff.net

Afterwards, I downloaded the sqlite-3.3.7 exe, and the dll (same
version). I've downloaded the files into C:\ruby\bin

However, when i try
irb> require 'sqlite3'
the following error appears:
Load error: no such file to load --sqlite3

It is there (trying with gem list -sqlite3 tells me that). But i don't
know why it does not load it.
I've tried with require 'SQLite3', or any other uppercase combinations.

(Btw, my ruby version is 1.8.2, and I'm working under Windows XP.)

Suggestions? thanks.

PT: I know there are many posts about it, but I haven't found no answers
to my exact problem.

--
Posted via http://www.ruby-....

2 Answers

Jano Svitok

2/5/2007 5:25:00 PM

0

On 2/5/07, Damaris Fuentes <dfl_maradentro@yahoo.es> wrote:
> I have installed the sqlite3 gem for ruby. The installation was
> succesful:
> gem install sqlite3-ruby --source code.whytheluckystiff.net
>
> Afterwards, I downloaded the sqlite-3.3.7 exe, and the dll (same
> version). I've downloaded the files into C:\ruby\bin
>
> However, when i try
> irb> require 'sqlite3'
> the following error appears:
> Load error: no such file to load --sqlite3
>
> It is there (trying with gem list -sqlite3 tells me that). But i don't
> know why it does not load it.
> I've tried with require 'SQLite3', or any other uppercase combinations.
>
> (Btw, my ruby version is 1.8.2, and I'm working under Windows XP.)
>
> Suggestions? thanks.
>
> PT: I know there are many posts about it, but I haven't found no answers
> to my exact problem.

do you have rubygems enabled?
i.e. either require 'rubygems' or irb -rubygems or RUBYOPT=rubygems
(in the environment)

can you post the exact message, or the output of

ruby -w -e "require 'sqlite3'" 2> log.txt

Damaris Fuentes

2/5/2007 7:53:00 PM

0

uups, yes, I had missed the "require 'rubygems'". Lots of Thanks!


--
Posted via http://www.ruby-....