By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
425,719 Members | 1,036 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 425,719 IT Pros & Developers. It's quick & easy.

Cannot compile php and mysql together, looked around quite a while

P: n/a
Alright i've looked a ton of topics and most of them are unresolved...

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

I gunzipped mysql, did tar -xvf to the resulting tar, moved the mysql
folder to usr/local/... and I been able to log into mysql and all that
good stuff so I guess its installed. just when I try to configure php
with mysql it gives me that error when trying to fetch mysql!!

inside my php-5.1.1 folder I typed this from tutorials

../configure --with-apxs2=/usr/local/apache2/bin/apxs
--with-mysql=usr/local/mysql

apache is fine just cannot do it "with" mysql...

BTW i'm a noob, I might just go to a younger php since it includes
mysql with it!

Thanks in advance

Dec 18 '05 #1
Share this Question
Share on Google+
5 Replies


P: n/a
go***********@gmail.com wrote:
Alright i've looked a ton of topics and most of them are unresolved...

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

I gunzipped mysql, did tar -xvf to the resulting tar, moved the mysql
folder to usr/local/... and I been able to log into mysql and all that
good stuff so I guess its installed. just when I try to configure php
with mysql it gives me that error when trying to fetch mysql!!

inside my php-5.1.1 folder I typed this from tutorials

./configure --with-apxs2=/usr/local/apache2/bin/apxs
--with-mysql=usr/local/mysql

apache is fine just cannot do it "with" mysql...

BTW i'm a noob, I might just go to a younger php since it includes
mysql with it!

Thanks in advance


Is mysql actually installed in /usr/local/mysql? And do you have the
development version or the runtime version? Where's your mysql.h file?

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================
Dec 18 '05 #2

P: n/a
On 18 Dec 2005 07:30:08 -0800, go***********@gmail.com wrote:
configure: error: Cannot find MySQL header files under usr/local/mysql.
Note that the MySQL client library is not bundled anymore!
That's a relative path.
I gunzipped mysql, did tar -xvf to the resulting tar, moved the mysql
folder to usr/local/... and I been able to log into mysql and all that
good stuff so I guess its installed. just when I try to configure php
with mysql it gives me that error when trying to fetch mysql!!
That was using the binary distribution of MySQL presumably?
Where did you move it to - "usr/local" is a relative path, but relative to
where? Did you in fact move it to the expected "/usr/local" directory?
inside my php-5.1.1 folder I typed this from tutorials

./configure --with-apxs2=/usr/local/apache2/bin/apxs
--with-mysql=usr/local/mysql


Relative path again, you most likely want --with-mysql=/usr/local/mysql

--
Andy Hassall :: an**@andyh.co.uk :: http://www.andyh.co.uk
http://www.andyhsoftware.co.uk/space :: disk and FTP usage analysis tool
Dec 18 '05 #3

P: n/a
In article <11**********************@g49g2000cwa.googlegroups .com>,
go***********@gmail.com wrote:
configure: error: Cannot find MySQL header files under usr/local/mysql.
Note that the MySQL client library is not bundled anymore!

I gunzipped mysql, did tar -xvf to the resulting tar, moved the mysql
folder to usr/local/... and I been able to log into mysql and all that
good stuff so I guess its installed. just when I try to configure php
with mysql it gives me that error when trying to fetch mysql!!

inside my php-5.1.1 folder I typed this from tutorials

./configure --with-apxs2=/usr/local/apache2/bin/apxs
--with-mysql=usr/local/mysql


Try "--with-mysql=/usr/local"

JP
Dec 18 '05 #4

P: n/a
Yes I "moved" it to "/usr/local" ... thats where it is..

And as I said i've gotten into mysql... made a table, deleted tables,
created accounts, its just not recognized when php code tries to call
mysql which I attempted to compile.

Thanks anyhow

Dec 19 '05 #5

P: n/a
oops =/usr/local/mysql/

forget that last last slash! Sorry guys but you were right,...

I happened to put usr/local/ but that wasn't the right directory
anyhow and didn't do the slash when mysql folder ... doh

Dec 19 '05 #6

This discussion thread is closed

Replies have been disabled for this discussion.