|
Posted by Michael Fesser on 09/28/33 12:01
..oO(Gilles Ganault)
>On Mon, 28 Jan 2008 23:31:29 -0500, Jerry Stuckle
><jstucklex@attglobal.net> wrote:
>>The default is to include sqlite support. If you need to add it, just
>>use --with-sqlite=/path/to/files.
>
>Unfortunately, while the former did work...
>
>==========
> PHP5_SQLITE+=--disable-pdo --without-pdo-sqlite --with-sqlite
>==========
>
>... tthe latter doesn't:
>
>==========
> PHP5_SQLITE+=--disable-pdo --without-pdo-sqlite
>--with-sqlite=/usr/local/lib/libsqlite3.a
>==========
Usually you don't point directly to a library, but to the base directory
where it's installed. Or just leave it empty, in many cases the DIR
value is optional.
Additionally you need the header files if you want to use a lib in PHP.
On a Debian system for example there are usually a "libfoo" package and
a "libfoo-dev" package, which is required if you want to link against
that lib in your application.
Another note: The PHP manual says that in recent versions SQLite depends
on PDO:
| Moreover, since PHP 5.1.0 SQLite depends on PDO it must be enabled too
and
| SQLite 3 is supported through PDO SQLite.
So I don't know if you can embed and use it without the PDO framework.
>>But your PHP5_SQLITE is not a valid configure option. You shouldn't be
>>using it.
>
>Probably, but it's part of a distro, and I don't have the skills to
>make changes. I just wanted to tell make to use the external, more
>modern version of SQLite.
The typical way to compile something is
../configure [--options]
make
make install
That's it. There's no need to edit scripts or makefiles. The only thing
that I use on my box is a little script that calls ./configure with all
the required options, so I don't have to type them again and again.
Then, if you change a settting, call ./configure and make again.
Of course that's just how it works on a normal desktop box. There might
be differences on other distros or special systems like embedded
machines.
Micha
Navigation:
[Reply to this message]
|