473,320 Members | 1,922 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

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

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
5 3944
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
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
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Michael J. Astrauskas | last post by:
I have a site where a user logs in and a session variable I created is used to keep track of the fact that the user is logged in. This various pages query a MySQL database to get information...
8
by: baustin75 | last post by:
Posted: Mon Oct 03, 2005 1:41 pm Post subject: cannot mail() in ie only when debugging in php designer 2005 -------------------------------------------------------------------------------- ...
33
by: Joshua D. Drake | last post by:
Hello, I think the below just about says it all: http://www.commandprompt.com/images/mammoth_versus_dolphin_500.jpg Sincerely, Joshua Drake
74
by: John Wells | last post by:
Yes, I know you've seen the above subject before, so please be gentle with the flamethrowers. I'm preparing to enter a discussion with management at my company regarding going forward as either...
175
by: Sai Hertz And Control Systems | last post by:
Dear all, Their was a huge rore about MySQL recently for something in java functions now theirs one more http://www.mysql.com/doc/en/News-5.0.x.html Does this concern anyone. What I...
10
by: Jean-David Beyer | last post by:
I have some programs running on Red Hat Linux 7.3 working with IBM DB2 V6.1 (with all the FixPacks) on my old machine. I have just installed IBM DB2 V8.1 on this (new) machine running Red Hat...
1
by: marknewbery | last post by:
Hi, I have been trying to get a php, mySQL install to work and talk together on Windows XP SP2 with IIS. So far I installed and received a responce from php(V5 - manual install) though the ...
45
by: Zytan | last post by:
This returns the following error: "Cannot modify the return value of 'System.Collections.Generic.List<MyStruct>.this' because it is not a variable" and I have no idea why! Do lists return copies...
30
by: Einstein30000 | last post by:
Hi, in one of my php-scripts is the following query (with an already open db-connection): $q = "INSERT INTO main (name, img, descr, from, size, format, cat, host, link, date) VALUES ('$name',...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.