configure/make error installing PHP5
Posted: Mon Mar 22, 2004 10:43 pm
I am attempting to install PHP5 on RH 9
I currently have Apache 2.0.48, PHP 4.3.4, and MySQL4.0.18
I needed to update some rpms, so i did:
# rpm --upgrade libxml2-python-2.5.10-1.i386.rpm libxml2-devel-2.5.10-1.i386.rpm libxml2-2.5.10-1.i386.rpm
warning: libxml2-python-2.5.10-1.i386.rpm: V3 DSA signature: NOKEY, key ID de95bc1f
(I'm not sure what the warning means)
After extracting php5 to /usr/local/php5.0.0RC1, i do this command:
# ./configure --with-apxs2=/usr/local/apache/bin/apxs --with-mysql=/usr/local/mysql
loading cache ./config.cache
checking host system type... i686-pc-linux-gnu
checking for gcc... gcc
checking whether the C compiler (gcc ) works... yes
...
lots of checking, some yes some no
...
checking for specified location of the MySQL UNIX socket... no
checking for MySQL UNIX socket location... no
configure: error: Cannot find MySQL header files under /usr/local/mysql.
Note that the MySQL client library is not bundled anymore.
I don't know where the mysql header files are.
If i look for mysql.h, i get this:
# locate mysql.h
/root/Desktop/Trash/oldmysql-standard-4.0.18-pc-linux-i686/include/mysql.h
/usr/local/src/PHP/php-4.3.4/ext/dbx/dbx_mysql.h
/usr/local/src/PHP/php-4.3.4/ext/mysql/libmysql/mysql.h
/usr/local/src/PHP/php-4.3.4/ext/mysql/php_mysql.h
/usr/local/php-4.3.4/php/ext/dbx/dbx_mysql.h
/usr/local/php-4.3.4/php/ext/mysql/libmysql/mysql.h
/usr/local/php-4.3.4/php/ext/mysql/php_mysql.h
/usr/local/php-5.0.0RC1/ext/dbx/dbx_mysql.h
/usr/local/php-5.0.0RC1/ext/mysql/php_mysql.h
The instructions then say to make, but there is no makefile:
# make
make: *** No targets specified and no makefile found. Stop.
Is this because of a problem with the ./configure?
Contents of the directory /usr/local/php-5.0.0RC1:
acconfig.h mkinstalldirs
acconfig.h.in netware
acinclude.m4 NEWS
aclocal.m4 pear
build php5.spec.in
buildconf php.gif
buildconf.bat php.ini-dist
CODING_STANDARDS php.ini-recommended
confdefs.h README.CVS-RULES
config.cache README.EXTENSIONS
config.guess README.EXT_SKEL
config.log README.input_filter
config.nice README.PARAMETER_PARSING_API
config.sub README.PHP4-TO-PHP5-THIN-CHANGES
configure README.QNX
configure.in README.SELF-CONTAINED-EXTENSIONS
CREDITS README.STREAMS
cvsclean README.SUBMITTING_PATCH
cvsclean.bat README.TESTING
ext README.TESTING2
EXTENSIONS README.UNIX-BUILD-SYSTEM
footer README.WIN32-BUILD-SYSTEM
generated_lists README.Zeus
genfiles regex
header run-tests2.php
include run-tests-config.php
INSTALL run-tests.php
install-sh sapi
libs scripts
LICENSE snapshot
ltmain.sh stamp-h.in
main stub.c
makedist tests
Makefile.frag TODO
Makefile.fragments TODO.BUILDv5
Makefile.global TODO-PHP5
Makefile.objects TSRM
makerpm win32
missing Zend
I currently have Apache 2.0.48, PHP 4.3.4, and MySQL4.0.18
I needed to update some rpms, so i did:
# rpm --upgrade libxml2-python-2.5.10-1.i386.rpm libxml2-devel-2.5.10-1.i386.rpm libxml2-2.5.10-1.i386.rpm
warning: libxml2-python-2.5.10-1.i386.rpm: V3 DSA signature: NOKEY, key ID de95bc1f
(I'm not sure what the warning means)
After extracting php5 to /usr/local/php5.0.0RC1, i do this command:
# ./configure --with-apxs2=/usr/local/apache/bin/apxs --with-mysql=/usr/local/mysql
loading cache ./config.cache
checking host system type... i686-pc-linux-gnu
checking for gcc... gcc
checking whether the C compiler (gcc ) works... yes
...
lots of checking, some yes some no
...
checking for specified location of the MySQL UNIX socket... no
checking for MySQL UNIX socket location... no
configure: error: Cannot find MySQL header files under /usr/local/mysql.
Note that the MySQL client library is not bundled anymore.
I don't know where the mysql header files are.
If i look for mysql.h, i get this:
# locate mysql.h
/root/Desktop/Trash/oldmysql-standard-4.0.18-pc-linux-i686/include/mysql.h
/usr/local/src/PHP/php-4.3.4/ext/dbx/dbx_mysql.h
/usr/local/src/PHP/php-4.3.4/ext/mysql/libmysql/mysql.h
/usr/local/src/PHP/php-4.3.4/ext/mysql/php_mysql.h
/usr/local/php-4.3.4/php/ext/dbx/dbx_mysql.h
/usr/local/php-4.3.4/php/ext/mysql/libmysql/mysql.h
/usr/local/php-4.3.4/php/ext/mysql/php_mysql.h
/usr/local/php-5.0.0RC1/ext/dbx/dbx_mysql.h
/usr/local/php-5.0.0RC1/ext/mysql/php_mysql.h
The instructions then say to make, but there is no makefile:
# make
make: *** No targets specified and no makefile found. Stop.
Is this because of a problem with the ./configure?
Contents of the directory /usr/local/php-5.0.0RC1:
acconfig.h mkinstalldirs
acconfig.h.in netware
acinclude.m4 NEWS
aclocal.m4 pear
build php5.spec.in
buildconf php.gif
buildconf.bat php.ini-dist
CODING_STANDARDS php.ini-recommended
confdefs.h README.CVS-RULES
config.cache README.EXTENSIONS
config.guess README.EXT_SKEL
config.log README.input_filter
config.nice README.PARAMETER_PARSING_API
config.sub README.PHP4-TO-PHP5-THIN-CHANGES
configure README.QNX
configure.in README.SELF-CONTAINED-EXTENSIONS
CREDITS README.STREAMS
cvsclean README.SUBMITTING_PATCH
cvsclean.bat README.TESTING
ext README.TESTING2
EXTENSIONS README.UNIX-BUILD-SYSTEM
footer README.WIN32-BUILD-SYSTEM
generated_lists README.Zeus
genfiles regex
header run-tests2.php
include run-tests-config.php
INSTALL run-tests.php
install-sh sapi
libs scripts
LICENSE snapshot
ltmain.sh stamp-h.in
main stub.c
makedist tests
Makefile.frag TODO
Makefile.fragments TODO.BUILDv5
Makefile.global TODO-PHP5
Makefile.objects TSRM
makerpm win32
missing Zend