Skip to content

Instantly share code, notes, and snippets.

@vtypal
Forked from fabrizioc1/install-sqlite.sh
Created April 11, 2012 13:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vtypal/2359308 to your computer and use it in GitHub Desktop.
Save vtypal/2359308 to your computer and use it in GitHub Desktop.
Installing sqlite3 in CentOS for use with ruby-sqlite3
# The YUM package is too old for use with ruby-sqlite3, use the autoconf package from www.sqlite.org
cd /opt
wget http://www.sqlite.org/sqlite-autoconf-3070701.tar.gz
tar xvzf sqlite-autoconf-3070701.tar.gz
ln -s /opt/sqlite-autoconf-3070701 /opt/sqlite3
cd /opt/sqlite3
./configure --prefix=/opt/sqlite3
make
make install
# Shared library will be installed in /usr/local/lib.
# Make sure you it first in your LD_LIBRARY_PATH
# Make sure to add it to your start-up files, like .bashrc
export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH
# Now it should work
gem install sqlite3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment