This forum is no longer active. Please post your questions to our new community site
Error installing sqlite3-ruby
|
|
I tried to install sqlite3-ruby in mu bitnami rubystack. It gives me the following error. My rubystack is in folder /home/ramya/bloglearn/deployment /home/ramya/bloglearn/deployment/rubystack-2.1-0/ruby/bin/ruby extconf.rb
Provided configuration options: Gem files will remain installed in /home/ramya/bloglearn/deployment/rubystack-2.1-0/ruby/lib/ruby/gems/1.8/gems/sqlite3-ruby-1.3.1 for inspection. bash-4.1$ gem install sqlite3-ruby /home/ramya/bloglearn/deployment/rubystack-2.1-0/ruby/bin/ruby extconf.rb
Provided configuration options: Gem files will remain installed in /home/ramya/bloglearn/deployment/rubystack-2.1-0/ruby/lib/ruby/gems/1.8/gems/sqlite3-ruby-1.3.1 for inspection. How to resove this error? |
|
|
Hi, RubyStack 2.1-0 already includes version 1.2.5 of sqlite3-ruby gem. In case you need to install a different version, you should specify where sqlite3 files are located:
I hope it helps |
|
|
I tried to install like this……. so it is giving me the following error. bash-4.1$ gem install sqlite3-ruby — —with-sqlite3-dir=/home/ramya/bloglearn/deployment/rubystack/sqlite /home/ramya/bloglearn/deployment/rubystack-2.1-0/ruby/bin/ruby extconf.rb —with-sqlite3-dir=/home/ramya/bloglearn/deployment/rubystack/sqlite -E
I think…. i need to upgrade it. How to do that? if not to upgrade how this problem will be solved |
|
|
Do you require latest gem version (1.3.1) ? If it fits your needs, I would recommend using the previous one (1.3.0) which supports the sqlite version included in rubystack 2.1:
Otherwise you may try to download and compile sqlite manually before installing the gem:
Let us know if you find any issues |
|
|
I have installed the sqlite3-ruby like above. then when i run the project it gives these errors why is this type of error coming? |
|
|
Hi, It seems people have similar problems with sqlite3-ruby 1.3.0. I was able to reproduce this issue and probably sqlite-ruby 1.3.0 does not work well with sqlite 3.5.1 bundled with RubyStack by default. Can you please try to follow the steps above compiling sqlite 3.7.0.1 ? Danoo |
|
|
I tried to install using the above steps, but the gem is not installed in the system. It still gives me the error Building native extensions. This could take a while… /home/karthik/Desktop/bloglearn/deployment/rubystack-2.1-0/ruby/bin/ruby extconf.rb —with-sqlite3-dir=/home/karthik/Desktop/bloglearn/deployment/rubystack-2.1-0/sqlite/ -E
Actually earlier i tried on i386 32 bit machine, it is working successfully. |
|
|
Hi, on amd64 machine try to change the previous instructions from: $ cd sqlite-3.7.0.1/ to $ cd sqlite-3.7.0.1/ If it does not help, you could try to add also: $ export CXXFLAGS=-m32 Please let me know if it helps. |

