LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   php5 + mysql problem (https://www.linuxquestions.org/questions/linux-software-2/php5-mysql-problem-459975/)

fnoyan 07-01-2006 05:54 AM

php5 + mysql problem
 
Hi

I am trying to install PHP5 with MySQL support but it fails when i run configure script of PHP. I Installed Apache 1.3.x and MySQL on the system. They work fine. And also PHP works fine without MySQL support. But when I try to recomğile PHP5 with MySQL support it fails.

I am using SuSE 10.0 but I install Apache, MySQL and PHP from tarballs. I have the libmysqlclient library and header files. I run updatedb after copying the lib files to proper locations (/usr/lib).

But i think i have a problem with the linker. It says -lmysqlclient : no!

I use
Code:

configure --prefix=/usr/local/php
--with-apxs=/usr/local/apache/bin/apxs
--with-mysql=/usr/local/mysql
--with-mysqli=/usr/local/mysql/bin/mysql_config
--with-gettext
--with-zlib --with-zlib-dir=/usr/lib
--enable-track-vars

Thanks...

fedora4002 07-02-2006 12:02 AM

Can you post the errors of configuration result? It is possible to find what's wrong using that information.

fnoyan 07-02-2006 05:54 AM

Actually they are gcc related errors i think. Because it cannot link to libmysqlclient. I also cannot compile my C sources using mysql C API functions!

I tried postgresql, it works fine! I don't know what's wrong with MySQL libraries. The way i followed was ok in Slackware!


All times are GMT -5. The time now is 10:44 PM.