Rail Shafigulin wrote in post #970103:
...
> Building native extensions.  This could take a while...
> ERROR:  Error installing sqlite3-ruby:
>         ERROR: Failed to build gem native extension.
>
> /home/cyboman/.rvm/rubies/ruby-1.8.7-p302/bin/ruby extconf.rb
> checking for sqlite3.h... no
> sqlite3.h is missing. Try 'port install sqlite3 +universal'
> or 'yum install sqlite3-devel' and check your shared library search path
> (the
> location where your sqlite3 shared library is located).
> *** extconf.rb failed ***
> Could not create Makefile due to some reason, probably lack of
> necessary libraries and/or headers.  Check the mkmf.log file for more
> details.  You may need configuration options.

On which Operating System are you working? Useful to mention
in such cases of OS dependent installation problems.

In case it would be a Debian derived GNU/Linux box (e.g. Ubuntu),
my standard approach is this:
* almost always, it is the xxxx-dev package you are missing
* find the context with apt-cache search 'xxxx*' | grep dev
* then check if installed (with dpkg -l 'xxxx*')
* then check which files are in there (with dpkg -L <package name>)

So I found quickly that the sqlite3.h file (that you seem to
be missing), is in the package libsqlite3-dev (as expected actually).

The log of that is:

pet...@asus:/usr/lib$ apt-cache search 'sqlite3*' | grep dev
libsqlite0-dev - SQLite development files
libsqlite3-dev - SQLite 3 development files
libghc6-haskelldb-hdbc-sqlite3-dev - HaskellDB support for the HDBC 
SQLite driver
libghc6-hdbc-sqlite3-dev - Sqlite v3 HDBC (Haskell Database 
Connectivity) Driver for GHC
libghc6-hsql-dev - Multi-Database Interface System library for GHC6
libghc6-hsql-odbc-dev - UnixODBC driver of the HSQL library for GHC6
libghc6-hsql-sqlite3-dev - SQLite driver of the HSQL library for GHC6
libgnadecommon1-dev - GNat Ada Database Environment - subprograms common 
to other GNADE packages
libgnadeodbc1-dev - GNat Ada Database Environment - ODBC programming 
interface
libgnadesqlite3-1-dev - GNat Ada Database Environment - SQLite3 
programming interface
libgopersist-1-dev - Serialisation and deserialisation of GObjects 
(development files)
libhyena-cil-dev - set of utility libraries for the CLI - development 
files
libkaya-sqlite3-dev - SQLite binding for kaya
liblua5.1-sql-sqlite3-dev - luasql development files for the Lua 
language version 5.1
libpoco-dev - Development files for POCO - The C++ Portable Components
libspatialite-dev - Geospatial extension for SQLite - development files
libsqlite3-ocaml-dev - Embeddable SQL Database for OCaml Programs
libtntdb-dev - Development headers for tntdb
libvalhalla-dev - a tiny media scanner library -- development files
libvalhalla-doc - developer documentation for libvalhalla
monodevelop-database - Database plugin for MonoDevelop
sqliteman - GUI tool for SQLite3 admin and developers alike
sqliteman-doc - GUI tool for SQLite3 admin and developers alike
sqlrelay-dev - SQL Relay C and C++ APIs

pet...@asus:/usr/lib$ dpkg -l libsqlite3-dev
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Cfg-files/Unpacked/Failed-cfg/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name                Version             Description
+++-===================-===================-======================================================
ii  libsqlite3-dev      3.6.22-1            SQLite 3 development files

pet...@asus:/usr/lib$ dpkg -L libsqlite3-dev
/.
/usr
/usr/include
/usr/include/sqlite3.h   #### here it is :-)
/usr/include/sqlite3ext.h
/usr/lib
/usr/lib/libsqlite3.a
/usr/lib/libsqlite3.la
/usr/lib/pkgconfig
/usr/lib/pkgconfig/sqlite3.pc
/usr/share
/usr/share/doc
/usr/share/doc/libsqlite3-dev
/usr/share/doc/libsqlite3-dev/copyright
/usr/lib/libsqlite3.so
/usr/share/doc/libsqlite3-dev/README
/usr/share/doc/libsqlite3-dev/changelog.Debian.gz


HTH,

Peter

-- 
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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to