ruby - I can't install sqlite3 gem -


possible duplicate:
sqlite3-ruby install error on ubuntu

hey guys use apt-get install sqlite3 in vps running ubuntu 10,i can run sqlite3 no problem. when try use gem install sqlite3, got error:

root@makserver:/# gem install sqlite3 building native extensions.  take while... error:  error installing sqlite3:     error: failed build gem native extension.          /usr/local/bin/ruby extconf.rb checking sqlite3.h... no sqlite3.h missing. try 'port install sqlite3 +universal' or 'yum install sqlite3-devel' , check shared library search path (the location sqlite3 shared library located). *** extconf.rb failed *** not create makefile due reason, lack of necessary libraries and/or headers.  check mkmf.log file more details.  may need configuration options.  provided configuration options:     --with-opt-dir     --without-opt-dir     --with-opt-include     --without-opt-include=${opt-dir}/include     --with-opt-lib     --without-opt-lib=${opt-dir}/lib     --with-make-prog     --without-make-prog     --srcdir=.     --curdir     --ruby=/usr/local/bin/ruby     --with-sqlite3-dir     --without-sqlite3-dir     --with-sqlite3-include     --without-sqlite3-include=${sqlite3-dir}/include     --with-sqlite3-lib     --without-sqlite3-lib=${sqlite3-dir}/lib   gem files remain installed in /usr/local/lib/ruby/gems/1.9.1/gems/sqlite3-1.3.3 inspection. results logged /usr/local/lib/ruby/gems/1.9.1/gems/sqlite3-1.3.3/ext/sqlite3/gem_make.out 

any advice?

you need first install sqlite development headers can compile gem against them:

sudo apt-get install libsqlite3-dev 

then try installing gem.


Comments

Popular posts from this blog

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -