Forum: Ruby How to install sqlite3 in linux?

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
7fbd0e99b27064b14793f028022974e5?d=identicon&s=25 Zhao Yi (youhaodeyi)
on 2008-12-02 09:06
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 by
`sqlite3_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?
F5befe9c4fb97baf91870045d4ac922e?d=identicon&s=25 Eddie Catflap (Guest)
on 2008-12-02 12:34
(Received via mailing list)
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
7fbd0e99b27064b14793f028022974e5?d=identicon&s=25 Zhao Yi (youhaodeyi)
on 2008-12-03 01:52
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?
7fbd0e99b27064b14793f028022974e5?d=identicon&s=25 Zhao Yi (youhaodeyi)
on 2008-12-08 09:07
Does anyone help me on this?
thanks.
D1f1c20467562fc1d8c8aa0d328def62?d=identicon&s=25 Florian Gilcher (skade)
on 2008-12-08 10:54
(Received via mailing list)
-----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 Gilcher

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-----
7fbd0e99b27064b14793f028022974e5?d=identicon&s=25 Zhao Yi (youhaodeyi)
on 2008-12-09 02:53
I installed ruby-1.8.1 in Linux 2.6.9-1. I built the ruby by the
following steps:

./configure
make
make install
This topic is locked and can not be replied to.