Ruby on Rails Wednesday, December 29, 2010

thanks, zoli, installing rvm actually resolved the problem out of the
box, which is very strange. I don't know the ins and puts of RVM, but
i guess it comes with some packaged gems including sqlite? anyway, I
still want to resolve the problem on my default install, I will update
when I have some progress. than you everyone for your help.

On Dec 29, 10:29 am, gezope <gez...@gmail.com> wrote:
> Hi all,
> solution always depends on your OS and on versions.
>
> The best is RVMhttp://rvm.beginrescueend.com/allows you  prevent
> problems. It has also great packages which helps you with other
> problems, and future upgrades will be easier.
>
> On Win I think there isn't RVM but pik is available, never tried to be
> honest.
>
> If you can't see sqlite in your gem list, it's a problem. Then you
> have to install it with "gem install sqlite3-ruby". On Ruby1.8 with
> Ubuntu you also need other packages: libsqlite3, libsqlite3-dev,
> please check all libsqlite in Synaptic.
>
> (I think it's installed by default with Ruby1.9 and on MacOS, and OSX
> or Win you may need other packages installed, I'm not sure about
> these, sorry.)
>
> If you still can't see it after install, then you must have gem
> version problems. It's wise to have Ruby 1.9+Gem1.3.7 or
> Ruby1.8+Gem1.3.5, I suggest updated. Before on mailing list others
> solved it by completely reinstalling Rubygems, since they upgraded
> Ruby, but gem dependencies remained.
>
> If you have right Ruby, Gem, Sqlite3 gem installed, then you can run
> bundle install.
>
> Also check:http://stackoverflow.com/search?q=sqlite3+gem
>
> If you still have problems, ask me in private, and if you could solve
> your problem, list it here, because others may be interested later.
> cheers,
> Zoli
>
> On dec. 29, 12:48, Frederick Cheung <frederick.che...@gmail.com>
> wrote:
>
>
>
> > On Dec 29, 5:50 am, Richard Myers <movesmy...@gmail.com> wrote:> in on mac os 10.5  - when i run sqlite3 -version i get 3.4.0 - so i
> > > guess i thought i updated, but maybe not.
> > > should i be concerned about this version or the sqlite3-ruby version?
> > > i cant seem to figure out my sqlite3-ruby version, anyone know how on
> > > mac os?
> > > i also have libsqlite3 in my bin, this didnt seem to resolve anything.
> > > another problem may be that i dont think sqlite3 was updated for PPC
> > > machines, but again, this was working before, so i am perplexed.
>
> > Older versions of sqlite-ruby didn't require 3.6.16. You could try
> > installing an older version of the gem (with the --version option) or
> > install a newer version of sqlite yourself.
>
> > Fred
>
> > > On Dec 28, 3:29 pm, Peter Vandenabeele <li...@ruby-forum.com> wrote:
>
> > > > Frederick Cheung wrote in post #971035:
>
> > > > > On Dec 28, 1:24am, Richard Myers <movesmy...@gmail.com> wrote:
> > > > >> hello all,
> > > > >> this is driving me crazy, and i have tried everything and looked
> > > > >> everywhere and i cannot resolve this problem.
>
> > > > >> when i do bundle install in a rails app, i get an error "Failed to
> > > > >> build gem native extension" during sqlite3. i have included the entire
> > > > >> error below.
> > > > >> i have rails 3.0.3, ruby 1.8.7, and sqlite3 installed (although i cant
>
> > > > > Do you have sqlite3 3.6.16 as the error message asks? If you aren't
> > > > > fussy you could install an earlier version of sqlite3-ruby (that is
> > > > > happy with the version you do have)
>
> > > > As an indication, this is the version I see on Ubuntu 10.04
> > > > (version 3.6.22 which is higher than the required 3.6.16).
>
> > > > peterv@ASUS:~$ dpkg -l 'sqlite*'
> > > > Desired=Unknown/Install/Remove/Purge/Hold
> > > > | Status=Not/Inst/Cfg-files/Unpacked/Failed-cfg/Half-inst/trig-aWait/Trig-pen d
> > > > |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
> > > > ||/ Name           Version        Description
> > > > +++-==============-==============-========================================= ===
> > > > ii  sqlite3        3.6.22-1       A command line interface for SQLite 3
> > > > un  sqlite3-doc    <none>         (no description available)
>
> > > > What do you see when you try this ?
>
> > > > HTH,
>
> > > > Peter
>
> > > > --
> > > > Posted viahttp://www.ruby-forum.com/.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

No comments:

Post a Comment