LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 06-15-2007, 09:50 PM   #1
Kupo
Member
 
Registered: Nov 2003
Location: Hell (AZ, USA)
Distribution: FC6/Centos
Posts: 87

Rep: Reputation: 15
Compiling PHP +mysql + apache


Im compiling php to work with apache 1.3 via apxs with this
./configure --with-apxs=/usr/local/httpd/bin/apxs --with-config-file-path=/usr/local/httpd/conf/ --with-mysql --enable-debug=no --enable-track-vars
but i have mysql (compiled from source) installed in /usr/local/mysql/
ive already installed the mysql-devel rpm (generic linux x86 off mysql site)
but i get this when i try to run make
gcc: /usr/lib/mysql/libmysqlclient.so: No such file or directory
make: *** [libphp5.la] Error 1

how can i get this file? or can i direct the configure to my mysql installation?
Thanks for the help
 
Old 06-16-2007, 02:35 AM   #2
j-ray
Senior Member
 
Registered: Jan 2002
Location: germany
Distribution: ubuntu, mint, suse
Posts: 1,591

Rep: Reputation: 145Reputation: 145
i wouldnt install the devel-packages by rpm if the server is compiled from source. But you can type
locate libmysqlclient.so
and find the real path to the lib this way. Then create a symlink
ln -s /path/to/libmysqlclient.so /usr/lib/mysql/libmysqlclient.so
as root but probably the rpm will still be missing sth.
cheers,j
 
Old 06-16-2007, 03:46 AM   #3
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
If you have compiled mysql from source, then you need to point the configure script to the mysql installation e.g.
Code:
$./configure --with-apxs=/usr/local/httpd/bin/apxs --with-config-file-path=/usr/local/httpd/conf/ --with-mysql=/usr/local/mysql --enable-debug=no --enable-track-vars
 
  


Reply



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
php/shell script to install mysql,apache and php automatically stranger_6_7 Linux - General 2 08-11-2009 02:07 AM
Apache Mysql Php: mysql with php doesn't work breakerfall Linux - Networking 6 12-27-2003 08:59 PM
Compiling Apache, MySQL, Perl & PHP jeucken Linux - Software 1 12-15-2003 01:56 PM
Error when compiling PHP 4.3.3 w/ MySQL on RH9 Shaolyen Linux - Software 1 10-21-2003 03:26 PM
php-nuke with apache php mysql c0c0deuz Linux - Software 0 03-30-2003 06:23 AM

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

All times are GMT -5. The time now is 10:50 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
Open Source Consulting | Domain Registration