I installed Rails 1.8.6 on a Panther system. Everything is ok but I can''t install sqlite3-ruby gem. This is the terminal result: ----------- $ sudo gem install --local sqlite3-ruby-1.2.1.gem Building native extensions. This could take a while... ERROR: Error installing sqlite3-ruby-1.2.1.gem: ERROR: Failed to build gem native extension. /usr/local/bin/ruby extconf.rb install --local sqlite3-ruby-1.2.1.gem checking for sqlite3.h... yes checking for sqlite3_open() in -lsqlite3... no make make: *** No rule to make target `ruby.h'', needed by `sqlite3_api_wrap.o''. Stop. Gem files will remain installed in /usr/local/lib/ruby/gems/1.8/gems/ sqlite3-ruby-1.2.1 for inspection. Results logged to /usr/local/lib/ruby/gems/1.8/gems/sqlite3-ruby-1.2.1/ ext/sqlite3_api/gem_make.out ----------- I try to solve the problem today looking for something similar in newsgroups but I did''t find anything useful. Any suggestions? G. --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
On 14 Mag, 18:23, pReload <gabriele.anton...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> I installed Rails 1.8.6 on a Panther system. Everything is ok but I > can''t install sqlite3-ruby gem. This is the terminal result: >I solved the problem using this command line: sudo gem install sqlite3-ruby -- --with-sqlite3-include=/opt/local/ include --with-sqlite3-lib=/opt/local/lib the problem was that the sqlite3 was not installed in the default locations. Thanks again, G. --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Anatoly Mikhailov
2009-Mar-03 02:19 UTC
Re: sqlite3-ruby gem installation is driving me crazy
I see the problem with install gem sqlite3-ruby. This way help me to fix it! Just install developer headers for provide compile the library from sources. SQLite3: Without the -d option, rails will default to sqlite. To install SQLite3: ~$ sudo apt-get install libsqlite3-0 libsqlite3-dev ~$ sudo gem install sqlite3-ruby pReload wrote:> On 14 Mag, 18:23, pReload <gabriele.anton...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: >> I installed Rails 1.8.6 on a Panther system. Everything is ok but I >> can''t install sqlite3-ruby gem. This is the terminal result: >> > > I solved the problem using this command line: > sudo gem install sqlite3-ruby -- --with-sqlite3-include=/opt/local/ > include --with-sqlite3-lib=/opt/local/lib > the problem was that the sqlite3 was not installed in the default > locations. > > Thanks again, > G.-- Posted via http://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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---