RE: [PECL-DEV] Help W/ SQLite & PHP
| From: | JR | Date: | Mon, 03 Nov 2003 16:32:21 +0000 |
| Subject: | RE: [PECL-DEV] Help W/ SQLite & PHP | ||
| References: | 1 | Groups: | php.pecl.dev |
| Request: | Send a blank email to pecl-dev+get-179@lists.php.net to get a copy of this message | ||
Hi all,
I tried doing this manually.
>From the SQLite-1.0 directory, I ran phpize which gave:
Configuring for:
PHP Api Version: 20020918
Zend Module Api No: 20020429
Zend Extension Api No: 20021010
Then I ran ./configure which returned no errors. Full output is below.
Then when running make I get the below error:
[root@cam SQLite-1.0]# make
/bin/sh /home/jr/SQLite-1.0/libtool --mode=compile gcc
-I/home/jr/SQLite-1.0/libsqlite/src -I. -I/home/jr/SQLite-1.0
-DPHP_ATOM_INC -I/home/jr/SQLite-1.0/include -I/home/jr/SQLite-1.0/main
-I/home/jr/SQLite-1.0 -Idir=/usr/include/php -Idir=/usr/include/php/main
-Idir=/usr/include/php/Zend -Idir=/usr/include/php/TSRM -DHAVE_CONFIG_H
-g -O2 -prefer-pic -c /home/jr/SQLite-1.0/sqlite.c -o sqlite.lo
gcc -I/home/jr/SQLite-1.0/libsqlite/src -I. -I/home/jr/SQLite-1.0
-DPHP_ATOM_INC -I/home/jr/SQLite-1.0/include -I/home/jr/SQLite-1.0/main
-I/home/jr/SQLite-1.0 -Idir=/usr/include/php -Idir=/usr/include/php/main
-Idir=/usr/include/php/Zend -Idir=/usr/include/php/TSRM -DHAVE_CONFIG_H
-g -O2 -c /home/jr/SQLite-1.0/sqlite.c -fPIC -DPIC -o sqlite.lo
/home/jr/SQLite-1.0/sqlite.c:29:17: php.h: No such file or directory
/home/jr/SQLite-1.0/sqlite.c:30:21: php_ini.h: No such file or directory
/home/jr/SQLite-1.0/sqlite.c:31:31: ext/standard/info.h: No such file or
directory
make: *** [sqlite.lo] Error 1
Thanks in advance for your help.
JR
[root@cam SQLite-1.0]# ./configure
loading cache ./config.cache
checking host system type... i686-pc-linux-gnu
checking for gcc... (cached) gcc
checking whether the C compiler (gcc ) works... yes
checking whether the C compiler (gcc ) is a cross-compiler... no
checking whether we are using GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking whether gcc and cc understand -c and -o together... (cached)
yes
checking if compiler supports -R... (cached) no
checking if compiler supports -Wl,-rpath,... (cached) yes
checking for PHP prefix... /usr
checking for PHP includes... -Idir=/usr/include/php
-Idir=/usr/include/php/main -Idir=/usr/include/php/Zend
-Idir=/usr/include/php/TSRM
checking for PHP extension directory... /usr/lib/20020429
checking how to run the C preprocessor... (cached) gcc -E
checking for gawk... (cached) gawk
checking for sqlite support... yes, shared
checking size of char *... (cached) 4
checking for lemon... (cached) no
checking for usleep... (cached) yes
checking for nanosleep... (cached) yes
checking for time.h... (cached) yes
checking for Cygwin environment... (cached) no
checking for mingw32 environment... (cached) no
checking build system type... i686-pc-linux-gnu
checking for ld used by GCC... (cached) /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... (cached) yes
checking for /usr/bin/ld option to reload object files... (cached) -r
checking for BSD-compatible nm... (cached) /usr/bin/nm -B
checking whether ln -s works... (cached) yes
checking how to recognise dependant libraries... (cached) pass_all
checking for object suffix... (cached) o
checking for executable suffix... (cached) no
checking command to parse /usr/bin/nm -B output... (cached) ok
checking for dlfcn.h... (cached) yes
checking for ranlib... (cached) ranlib
checking for strip... (cached) strip
checking for objdir... .libs
checking for gcc option to produce PIC... (cached) -fPIC
checking if gcc PIC flag -fPIC works... (cached) yes
checking if gcc static flag -static works... (cached) yes
checking if gcc supports -c -o file.o... (cached) yes
checking if gcc supports -c -o file.lo... (cached) yes
checking if gcc supports -fno-rtti -fno-exceptions... yes
checking whether the linker (/usr/bin/ld) supports shared libraries...
yes
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking if libtool supports shared libraries... yes
checking whether -lc should be explicitly linked in... (cached) no
creating libtool
updating cache ./config.cache
creating ./config.status
creating config.h
config.h is unchanged
-----Original Message-----
From: Bertrand Mansion [mailto:bmansion@mamasam.com]
Sent: Monday, November 03, 2003 9:54 AM
To: jr@JohnRudnick.com
Cc: pecl-dev@lists.php.net
Subject: Re: [PECL-DEV] Help W/ SQLite & PHP
<jr@JohnRudnick.com> wrote :
> Hi Wes,
>
> I have tried both with no no success.
>
> Pear tries to do the install but is falling with an error of:
>
> Then I run: pear install SQLite-1.0.tgz and get a make error of:
> /tmp/tmpACnhIu/SQLite-1.0/sqlite.c:29:17: php.h: No such file or
> directory
> /tmp/tmpACnhIu/SQLite-1.0/sqlite.c:30:21: php_ini.h: No such file or
> directory
> /tmp/tmpACnhIu/SQLite-1.0/sqlite.c:31:31: ext/standard/info.h: No such
> file or directory
> make: *** [sqlite.lo] Error 1
> `make' failed
>
> The full screen dump of what happens is below.
>
> I have been fighting with this for hours, have search google intensly,
> have posted to the PHP db, install and general lists, as well as this
> one to no avail.
>
> Any advice you or anyone else can five me would be greatly
> appreciated.
You can try to install it manually, without the pear installer. You can
follow these instructions for Xdebug, just follow them for sqlite
instead : http://www.xdebug.org/install.php
Sqlite is not a zend extension, so don't use zend_extension=... In your
php.ini file.
HTH
Bertrand Mansion
Mamasam