Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


  Search this Thread
Old 06-15-2007, 09:50 PM   #1
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/ No such file or directory
make: *** [] 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
Senior Member
Registered: Jan 2002
Location: germany
Distribution: ubuntu, mint, suse
Posts: 1,589

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

Rep: Reputation: 75
If you have compiled mysql from source, then you need to point the configure script to the mysql installation e.g.
$./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


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
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 > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:05 AM.

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