Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to install sqlite3 gem on EC2?

When I tried to:

 sudo yum install ruby-devel sqlite3-devel

Amazon EC2 returns:

 Loaded plugins: fastestmirror, priorities, security
 Loading mirror speeds from cached hostfile
 Setting up Install Process
 Package ruby-devel-1.8.7.330-1.5.amzn1.i686 already installed and latest version
 No package sqlite3-devel available.
 Nothing to do

Any help will be appreciated.

UPDATE:

sudo gem install sqlite3-ruby

returns

Building native extensions.  This could take a while...
ERROR:  Error installing sqlite3-ruby:
    ERROR: Failed to build gem native extension.

        /usr/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.
like image 980
ohho Avatar asked Apr 26 '11 11:04

ohho


1 Answers

sudo yum install sqlite3-devel should be:

sudo yum install sqlite-devel
like image 60
ohho Avatar answered Sep 20 '22 12:09

ohho