php install problem
- From: "Paul" <pardel@xxxxxxxxx>
- Date: 28 Oct 2005 02:39:48 -0700
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
.
- Follow-Ups:
- Re: php install problem
- From: Paul
- Re: php install problem
- Prev by Date: Re: file() works in Windows not on Linux
- Next by Date: Re: php install problem
- Previous by thread: GD broken image problem
- Next by thread: Re: php install problem
- Index(es):
Relevant Pages
|