LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-01-2006, 06:54 AM   #1
fnoyan
LQ Newbie
 
Registered: Sep 2004
Posts: 23

Rep: Reputation: 15
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...
 
Old 07-02-2006, 01:02 AM   #2
fedora4002
Member
 
Registered: Mar 2004
Posts: 135

Rep: Reputation: 15
Can you post the errors of configuration result? It is possible to find what's wrong using that information.
 
Old 07-02-2006, 06:54 AM   #3
fnoyan
LQ Newbie
 
Registered: Sep 2004
Posts: 23

Original Poster
Rep: Reputation: 15
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!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
php5 and mysql eric_f Slackware 2 10-05-2006 09:19 AM
apache + php5 + mysql dejan_su Debian 2 05-23-2006 02:55 PM
Strange problem with PHP5/MySQL update function gabebster Programming 9 04-07-2006 12:48 AM
php5 and MySQL 4.1 under Fedora C2 cidrolin Linux - Software 1 12-26-2004 04:06 AM
MySQL - PHP5 - phpMyAdmin 2.6.0 Fuel Linux - Software 2 07-25-2004 02:39 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:26 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration