-
-
Save CharlyJazz/8227adfd9ffebdb4bda0b884f24afd90 to your computer and use it in GitHub Desktop.
Installing sqlite3 in CentOS for use with ruby-sqlite3
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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