SQLite

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I am trying to get the SQLite package to work with PHP and I am failing
miserably.

I have run: pear download http://pecl.php.net/get/SQLite-1.0.tgz, no
problem here.

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 entire output is below. 

I am running Red Hat ES 2.1 with PHP 4.3.3. The configure statement I
used to compile PHP is below.

Thank you in advance for any advice you can provide!

JR






./configure --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin
--sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share  --include
dir=/usr/include --libdir=/usr/lib --libexecdir=/usr/libexec
--localstatedir=/var --sharedstatedir=/usr/com --mandir=/usr/share/man
--infodir=/usr/share/info --prefix=/usr --with-config-file-path=/etc
--enable-force-cgi-redirect --disable-debug --enable-pic --dis
able-rpath --enable-inline-optimization --with-bz2 --with-db3
--with-exec-dir=/usr/bin --with-freetype-dir=/usr --with-png-dir=/usr 
--with-gd --enable-gd-native-ttf --with-ttf --with-gdbm --with-gettext
--with-ncurses --with-gmp --with-iconv --with-jpeg-dir=/usr - -with-mm
--with-openssl --with-png --with-regex=system --with-xml
--with-expat-dir=/usr --with-zlib --with-layout=GNU --enable-bcmat h
--enable-debugger --enable-exif --enable-ftp --with-pear=/usr/share/pear
--enable-magic-quotes --enable-safe-mode --enable-sockets
--enable-sysvsem --enable-sysvshm --enable-discard-path
--enable-track-vars --enable-trans-sid --enable-yp --enable-wddx
--without-
oci8 --with-mysql --enable-memory-limit --enable-bcmath --enable-shmop
--enable-versioning --enable-calendar --enable-dbx --enable-d io
--enable-mbstring --enable-mbstr-enc-trans --with-apxs=/usr/sbin/apxs
--with-sqlite=shared



[root@cam html]# pear install SQLite-1.0.tgz
48 source files, building
running: phpize
You should update your `aclocal.m4' by running aclocal. Configuring for:
  PHP Api Version:   20020918
  Zend Module Api No:   20020429
  Zend Extension Api No:   20021010
building in /var/tmp/pear-build-root/SQLite-1.0
running: /tmp/tmpACnhIu/SQLite-1.0/configure
creating cache ./config.cache
checking host system type... i686-pc-linux-gnu
checking for gcc... 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... yes checking whether gcc accepts
-g... yes checking whether gcc and cc understand -c and -o together...
yes checking if compiler supports -R... no checking if compiler supports
-Wl,-rpath,... 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... gcc -E checking for gawk... gawk checking for sqlite
support... yes, shared checking size of char *... 4 checking for
lemon... no checking for usleep... yes checking for nanosleep... yes
checking for time.h... yes checking for Cygwin environment... no
checking for mingw32 environment... no checking build system type...
i686-pc-linux-gnu checking for ld used by GCC... /usr/bin/ld checking if
the linker (/usr/bin/ld) is GNU ld... yes checking for /usr/bin/ld
option to reload object files... -r checking for BSD-compatible nm...
/usr/bin/nm -B checking whether ln -s works... yes checking how to
recognise dependant libraries... pass_all checking for object suffix...
o checking for executable suffix... no checking command to parse
/usr/bin/nm -B output... ok checking for dlfcn.h... yes checking for
ranlib... ranlib checking for strip... strip checking for objdir...
.libs checking for gcc option to produce PIC... -fPIC checking if gcc
PIC flag -fPIC works... yes checking if gcc static flag -static works...
yes checking if gcc supports -c -o file.o... yes checking if gcc
supports -c -o file.lo... 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... no creating libtool
updating cache ./config.cache creating ./config.status creating config.h
running: make
sed -e s/--VERS--/2.8.3/ -e s/--ENCODING--/ISO8859/
/tmp/tmpACnhIu/SQLite-1.0/libsqlite/src/sqlite.h.in
>/tmp/tmpACnhIu/SQLite-1.0/libsqlite/src/sqlite.h
/bin/sh /var/tmp/pear-build-root/SQLite-1.0/libtool --mode=compile gcc
-I/tmp/tmpACnhIu/SQLite-1.0/libsqlite/src -I.
-I/tmp/tmpACnhIu/SQLite-1.0 -DPHP_ATOM_INC
-I/var/tmp/pear-build-root/SQLite-1.0/include
-I/var/tmp/pear-build-root/SQLite-1.0/main -I/tmp/tmpACnhIu/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 /tmp/tmpACnhIu/SQLite-1.0/sqlite.c -o sqlite.lo
gcc -I/tmp/tmpACnhIu/SQLite-1.0/libsqlite/src -I.
-I/tmp/tmpACnhIu/SQLite-1.0 -DPHP_ATOM_INC
-I/var/tmp/pear-build-root/SQLite-1.0/include
-I/var/tmp/pear-build-root/SQLite-1.0/main -I/tmp/tmpACnhIu/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 /tmp/tmpACnhIu/SQLite-1.0/sqlite.c  -fPIC -DPIC -o sqlite.lo
/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

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux