php install problem



I'm trying to install apache2, php4.4 and mysql5 on a fedora core 4
box.

Apache2 and Mysql rpm installs worked fine.

Now I am trying to compile php with mysql5 headers (mysql libraries are
located in /usr/lib/mysql/):

../configure --with-zlib-dir=/usr/lib/ --with-mysql=/usr/lib/mysql/
--enable-track-vars --with-config-file-path=/etc/httpd/conf/

and I get:

configure: error: Cannot find MySQL header files under /usr/lib/mysql/

Same happens when I try --with-mysql=/usr/lib

Then I've copied the content of /usr/lib/mysql into /usr/lib and I've
tried:

./configure --with-zlib-dir=/usr/lib/ --with-mysql=/usr/
--enable-track-vars --with-config-file-path=/etc/httpd/conf/

which worked but I got:

ext/mysql/php_mysql.o(.text+0x2095): In function `zif_mysql_create_db':
/root/rpms/php-4.4.0/ext/mysql/php_mysql.c:1163: undefined reference to
`mysql_create_db'
ext/mysql/php_mysql.o(.text+0x22cb): In function `zif_mysql_drop_db':
/root/rpms/php-4.4.0/ext/mysql/php_mysql.c:1205: undefined reference to
`mysql_drop_db'
collect2: ld returned 1 exit status
make: *** [sapi/cgi/php] Error 1


Looks like php is still looking into /root/rpms/php-4.4.0/ext/mysql/
for the mysql extension.

Any advice will be appreciated.

Thank you,

Paul

.



Relevant Pages

  • Re: Compiling PHP with mysql
    ... Jagadish Kumar, Maripi wrote: ... I got the following error while trying to compile php with mysql. ...
    (comp.lang.php)
  • Re: Mysql connect error
    ... A workaround is: ... > I recently installed apache,php,and mysql from ports. ... > compile php with mysql support. ...
    (comp.unix.bsd.freebsd.misc)
  • Re: How to compile php with mysql and fast-cgi?
    ... I think I have php 4.4, mysql 5 and fast-cgi from curl -O ... Compile php as a fast-cgi binary The main thing here is the following ...
    (comp.lang.php)
  • Mysql connect error
    ... I recently installed apache,php,and mysql from ports. ... compile php with mysql support. ...
    (comp.unix.bsd.freebsd.misc)
  • Re: PHP not seeing Mysql.
    ... >> Did you compile PHP with mysql enabled? ... - install MySQL ... Whether you have this option with your PHP package where you could specify ...
    (comp.lang.php)