How to install sqlite3 in linux?


#1

I used this command to install sqlite3:
gem install -p http://3.36.140.1 sqlite3-ruby

but got this error:
make: *** No rule to make target ruby.h', needed bysqlite3_api_wrap.o’. Stop.

Gem files will remain installed in
/usr/local/lib/ruby/gems/1.8/gems/sqlite3-ruby-1.2.4 for inspection.
Results logged to
/usr/local/lib/ruby/gems/1.8/gems/sqlite3-ruby-1.2.4/ext/sqlite3_api/gem_make.out

How can I install sqlite3 in Linux?


#2

Hi

You’re probably missing the ruby development libraries I think.

On fedora for example you’d need to install the ruby-devel package

(sudo yum install ruby-devel).

The package may be differently named depending on which distro you’re
using.

Cheers

Eddie_Catflap


#3

Hi,

I install ruby from source code instead of yum. There is no ruby-devel
installation step in the install guide. Did I miss anything?


#4

Does anyone help me on this?
thanks.


#5

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Sorry, you didn’t even tell us which distribution you are using.

So Eddie Catflaps hint is as far as we can help you: probably you miss
the Ruby development libraries or the sqlite-development libs.

Regards,
Florian G.

On Dec 8, 2008, at 9:00 AM, Zhao Yi wrote:

Does anyone help me on this?
thanks.

Posted via http://www.ruby-forum.com/.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.8 (Darwin)

iEYEARECAAYFAkk87ogACgkQyLKU2FMxSOJHKACgg8VT+C1WDHqcFtxiPJGaDM5Z
V7EAoJ0er4jEC5IcMA1Ez+YUTJJ278d2
=4Ru0
-----END PGP SIGNATURE-----


#6

I installed ruby-1.8.1 in Linux 2.6.9-1. I built the ruby by the
following steps:

./configure
make
make install