Document Actions

Building SQLite with readline on Solaris 10

by Chris Miles last modified 2007-04-20 12:47

These are the steps I use to build sqlite (3) on Solaris 10 with readline support.

(Procedure tested on sqlite 3.3.16)

Install the readline package from the Sun Freeware collection, SFWrline. You will find this on the Solaris Companion Disc or download it from http://www.sun.com/software/solaris/freeware/s10pkgs_download.xml

The important additions to configure are --with-readline-lib and --with-readline-inc values, as shown below. The other parameters are what I use in my environment, so adjust them as necessary:

./configure --prefix=/opt/sqlite3 --enable-threadsafe --disable-tcl --with-readline-lib="-L/opt/sfw/lib -R/opt/sfw/lib -lreadline -ltermcap" --with-readline-inc=-I/opt/sfw/include

configure, make and make install should all work without a problem.


As a bonus tip, if you install sqlite into a custom directory (like I do, installing it into /opt/sqlite3) and want to install Python's pysqlite module using easy_install, you can simply use:

CFLAGS=-I/opt/sqlite3/include LDFLAGS="-L/opt/sqlite3/lib -R/opt/sqlite3/lib" sudo /opt/python-2.4.4/bin/easy_install pysqlite