Robert L Cochran wrote:

How do I fix my sqlite version mess so that I can have multiple
installed versions: the one used by yum (and possibly other modules) and
the latest and greatest release, which I want to link into PHP for my
own purposes. (Yes I compile PHP on my own.)

With an up to date yum install, FC5 default SQlite is 3.3.3
You can clean up thethings in the following way.

Instaed of using /usr/local for prefix when configuring a sqlite build
you could pass:
./configure --prefix=/usr/local/sqlite-3.3.6 (for 3.3.6 version)
This will install each of your multiple sqlite versions (except de
default used by yum) in its own envronment.

To build an application with a particular sqlite build, you'll have to
add, ie for PHP 5.1.4:

--with-sqlite=/usr/local/sqlite-3.3.6
--with-pdo-sqlite=/usr/local/sqlite-3.3.6

As PHP configuration system uses the --rpath which tells the binaries
the full path of used libraries, this will work.
For applications where you're not sure --rpath is used, you can add it
to configure options.

I have one more question about this. If I specify --with-tcl in this configuration, won't the tcl installer script wipe out the Fedora Core installed system TCL configuration (for sqlite 3.3.3) and replace it with my customized configuration (for 3.3.6?) Wouldn't this be an unintended (and perhaps unwanted) effect of compiling with TCL support? To preserve the current, system-installed TCL support for sqlite 3.3.3 I'm passing --disable-tcl to configure.

Bob Cochran



Reply via email to