cancel
Showing results for 
Search instead for 
Did you mean: 

install program

 
desmondt
Occasional Visitor

install program

I have a debian server and want to compile the apache source , it pop the below error , if the gcc is installed and its path is set , the libc6-dev is also installed but still have the same error , what is the possible reason of the error ? thx


Apache requires an ANSI C compiler , such as gcc
error output for sanity check
....
/usr/bin/ld: cannot find -lmysqlclient
collect2: ld returned 1 exit status
make ***dummy Error 1
4 REPLIES
Steven E. Protter
Exalted Contributor

Re: install program

Shalom,

check the environment

LD_LIBRARY_PATH
PATH

Things like this can cause this problem.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Ivan Krastev
Honored Contributor

Re: install program

Install the following libraries and headers:

#apt-cache search mysqlclient
libmysqlclient15-dev - mysql database development files
libmysqlclient15off - mysql database client library
libmysqlclient12 - mysql database client library


regards,
ivan
haeman
Frequent Advisor

Re: install program

thx reply

I try to run apt-get search , the below is the result , it means all installed , but I install compile the program , can advise what is wrong ? thx

apt-cache search mysqlclient
libmysqlclient12 - mysql database client library
libmysqlclient10 - LGPL-licensed client library for MySQL databases
libmysqlclient10-dev - LGPL-licensed client development files for MySQL database
s
libmysqlclient14 - mysql database client library
libmysqlclient14-dev - mysql database development files
libmysqlclient12-dev - mysql database development files
dirk dierickx
Honored Contributor

Re: install program

'apt-cache search' output doesn't list all installed packages! it generates a list of _available_ packages, big difference.

is there something wrong with apache included with debian? unless some very very specific uses you shouldn't bother with recompiling it again (and as it appears, you're not familiar with apt this could result in some hair-pulling situations).