Discussion:
[PHP-INSTALL] Failed to compile x86_64 version of php5
ZelluX
2009-09-25 11:46:25 UTC
Permalink
Hi, all

I'm trying to compile php5 on dreamhost, after doing what
http://wiki.dreamhost.com/index.php/Installing_PHP5<http://wiki.dreamhost.com/index.php/Installing%5FPHP5>says,
I have compiled all the components except php5 itself.

When running $ ./configure ${PHPFEATURES}, it reports an error

configure: error: Cannot find libmysqlclient under /usr.
Note that the MySQL client library is not bundled anymore!

But actually I find that /usr/lib64/lib64/libmysqlclient.so.15.0.0 exists.
After some googling I added a --with-libdir=lib64 to the configure
parameters. But this time another error appears

checking for pkg-config... /usr/bin/pkg-config
configure: error: Cannot find OpenSSL's li

I don't know how to make configure find both libraries. Many thanks for your
replies.
Steven Cruz
2009-09-25 11:55:59 UTC
Permalink
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Hello;<br>
<br>
&nbsp;&nbsp;&nbsp; I justed faced a similar problem earlier this week. I was able to
get PHP to compile with Sybase and MySQLi but not MySQL.&nbsp; Either it
could not find the header files, or the file you listed below, or
something else. I made symbolic links from lib directories to the
/usr/local/mysq/lib used with --mysql=/usr/local/mysql&nbsp; and installed
the mysql dev library by running&nbsp; <br>
<br>
&gt; <span style="font-size: 12pt; font-family: &quot;Times New Roman&quot;;">yum
install mysql-devel.<br>
(Any RPM based install should work)<br>
<br>
Installing the development library is what work for me, and few other
people I read about on line. Seems like PHP is expected something
different and this seems common in some 64 bit setups. <br>
<br>
Hope it helps<br>
<br>
Steven<br>
</span><br>
ZelluX wrote:<br>
<blockquote
cite="mid:***@mail.gmail.com"
type="cite">
<p>Hi, all<br>
</p>
<p>I'm trying to compile php5 on dreamhost, after doing what <a
moz-do-not-send="true"
href="http://wiki.dreamhost.com/index.php/Installing%5FPHP5"
rel="nofollow">http://wiki.dreamhost.com/index.php/Installing_PHP5</a>
says, I have compiled all the components except php5 itself.</p>
<p>When running $ ./configure ${PHPFEATURES}, it reports an error&nbsp; <br>
</p>
<p>configure: error: Cannot find libmysqlclient under /usr.<br>
Note that the MySQL client library is not bundled anymore!<br>
</p>
<p>But actually I find that /usr/lib64/lib64/libmysqlclient.so.15.0.0
exists. After some googling I added a&nbsp; --with-libdir=lib64 to the
configure parameters. But this time another error appears</p>
<p>checking for pkg-config... /usr/bin/pkg-config<br>
configure: error: Cannot find OpenSSL's li</p>
<p>I don't know how to make configure find both libraries. Many
thanks for your replies.<br>
</p>
</blockquote>
<br>
</body>
</html>
ZelluX
2009-09-25 18:27:49 UTC
Permalink
But I don't have root privilege since I'm on dreamhost, is there any
workaround?
Post by Steven Cruz
Hello;
I justed faced a similar problem earlier this week. I was able to get
PHP to compile with Sybase and MySQLi but not MySQL. Either it could not
find the header files, or the file you listed below, or something else. I
made symbolic links from lib directories to the /usr/local/mysq/lib used
with --mysql=/usr/local/mysql and installed the mysql dev library by
running
yum install mysql-devel.
(Any RPM based install should work)
Installing the development library is what work for me, and few other
people I read about on line. Seems like PHP is expected something different
and this seems common in some 64 bit setups.
Hope it helps
Steven
Hi, all
I'm trying to compile php5 on dreamhost, after doing what
http://wiki.dreamhost.com/index.php/Installing_PHP5<http://wiki.dreamhost.com/index.php/Installing%5FPHP5>says, I have compiled all the components except php5 itself.
When running $ ./configure ${PHPFEATURES}, it reports an error
configure: error: Cannot find libmysqlclient under /usr.
Note that the MySQL client library is not bundled anymore!
But actually I find that /usr/lib64/lib64/libmysqlclient.so.15.0.0 exists.
After some googling I added a --with-libdir=lib64 to the configure
parameters. But this time another error appears
checking for pkg-config... /usr/bin/pkg-config
configure: error: Cannot find OpenSSL's li
I don't know how to make configure find both libraries. Many thanks for
your replies.
Loading...