sqlite3-ruby gem can't find sqlite3.h on ubuntu -


Trying to get tracks on Ubuntu, and I'm having trouble installing Socket 3-Ruby - it Can not get apparently sqlite3.h . For all errors, I can find all reference problems that I might find: sqlite3 headers are not installed, or they can not be found. It seems like I have solved those two problems and I still see the same problem.

No real idea what's happening here may be the mismatch, version? It is Ruby 1.8.7, Slit 3.6.22-1, Mani 1.3.5 and Skeleton 3-Ruby 1.3.1 at Ubuntu 10.04.1.

  David @ Lee 88-188: ~ $ Sudo apt-get sqlite3 install [... successful installation ...]  
  sqlite3 (3.6. 22-1) ... David @ Lee 88-188: ~ $ sudo apt-get install libsqlite3-dev  

[... successful installation ...]

  Set LibsecLight 3 -dev (3.6.22-1) ... David @ li88-188: ~ $ sudo gem install sqlite3-ruby The original extension building. This may take a while ... Error: Error installing sqlite3-ruby: Error: Failed to create gem native extension Check for /usr/bin/ruby1.8 extconf.rb sqlite3.h ... no sqlite3.h is missing 'port install sqlite3 + universal' or 'yum install sqlite3-devel' *** Try it; Extconf.rb failed *** Could not make Makefile due to some reason, maybe there is a lack of necessary libraries and / or headers Check the mkmf.log file for more information. You may need configuration options.  

[... configuration options etc. ...]

  David @ Lee 88-188: ~ $ cat / var / lib / gems / 1.8 /gems/sqlite3-ruby-1.3.1/ext/sqlite3/mkmf.log find_header: checking for sqlite3.h ... -------------------- No "GCC-AI-I / USR / Lib / Ruby / 1.8 / I486-Linux-i-I / USR / Local / Ad-i / Opt / Local / In-Eye / USR / In-D_ FILE_OFFSET_BITS = 64 - Fno-strict-aliasing -g -g -O2 -fPIC -O3 -Wall -Wcast-qual -Wwrite-strings -Wconversion -Wmissing-noreturn -Winline conftest.c -o conftest.i "The check program was: / * Start * / 1: # Include & lt; Sqlite3.h & gt; / * End * / --------------------  

Note that / usr / include In the list of arguments.

  David @ Lee 88-188: ~ $ ls -l /usr/include/sqlite3.h -rw-r - r-- 1 root route 268351 2010-02-08 03:59 /usr/include/sqlite3.h  

And note that the file is there. In my case I had to install libsqlite3-dev

  sudo apt-get install libsqlite3-dev  

div>

Comments