473,769 Members | 2,359 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 3963
go***********@g mail.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*******@attgl obal.net
=============== ===
Dec 18 '05 #2
On 18 Dec 2005 07:30:08 -0800, go***********@g mail.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.u k :: http://www.andyh.co.uk
http://www.andyhsoftware.co.uk/space :: disk and FTP usage analysis tool
Dec 18 '05 #3
In article <11************ **********@g49g 2000cwa.googleg roups.com>,
go***********@g mail.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
2088
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 (mostly to generate a catalogue and news page). Occasionally when loading a page I simply get the error "No database selected" when the PHP script attempts to run the query. Usually I can press reload in my browser (Netscape, IE, and Opera) and the...
8
5481
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 -------------------------------------------------------------------------------- Hello, I have a very simple problem but cannot seem to figure it out. I have a very simple php script that sends a test email to myself. When I debug it in PHP designer, it works with no problems, I get the test email. If
33
5595
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
8051
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 a MySql shop or a Postgresql shop. It's my opinion that we should be using PG, because of the full ACID support, and the license involved. A consultant my company hired before bringing me in is pushing hard for MySql, citing speed and community...
175
11508
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 think is PostgreSQL would have less USP's (Uniqe Selling Points
10
4471
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 Enterplise Linux 3 ES, and applied FixPack fp5_mi00069.tar to it. After creating an instance, starting the database, creating a database, and entering the table definitions, all of which seems to work OK, I entered a tiny 8-row table and can do...
1
6113
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 <?php phpinfo(); ?> command which prints out the current settings of the php install. I then installed mySQL complete setup (V5) and ran the server instance
45
18901
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 of their elements? Why can't I change the element itself? class Program { private struct MyStruct
30
2840
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', '$img', '$descr', '$user', '$size', '$format', '$cat', '$host', '$link', '$date')" or die(mysql_error()); And when the query gets executed i get back the following error:
0
9423
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10210
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10043
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8869
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7406
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6672
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
3956
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3561
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2814
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.