PHP Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsProgramming LanguagesPHP Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old October 13th, 1999, 04:08 PM
Ulrik N
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
err..

When I do the;
./configure --with-apxs=/usr/local/apache/bin/apxs --with-config-file-path=/etc/httpd --with-mysql --with-system-regex

I get this error:
"configure: error: Invalid MySql directory - unable to find mysql.h"

What do I have to do??
the "mysql.h" file is locatet here: "/usr/local/mysql/include/mysql.h"

------------------
-ulrik-

Reply With Quote
  #2  
Old October 13th, 1999, 04:33 PM
jpenix
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
The problem is that Linux doesn't know to look in that directory for add-on libraries such as MySQL.

Edit /etc/ld.so.conf and add this line:

/usr/local/mysql/include

Then run 'ldconfig' to commit the changes to the system.

Recompile and you should be okay!

(BTW: All of the above will have to be done as root)

Reply With Quote
  #3  
Old October 14th, 1999, 04:39 PM
Ulrik N
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Thanks, but it still don't work!

If you need nore info:
I'm using RedHat6.0
I have installed MySql with no problems,
the same goes for Apache....

Anything else I need to do.?

------------------
-ulrik-

Reply With Quote
  #4  
Old October 15th, 1999, 10:51 AM
Falcula
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
If you are using RedHat RPM's it could be that you are missing the source for MySQL. The INSTALL.REDHAT file that came with PHP tar file has more information on it. I installed the source and development RPM's and it solved the problem.

------------------

Reply With Quote
  #5  
Old October 15th, 1999, 04:58 PM
Ulrik N
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
No I'm not using RPM's. I was told that the best way to doo this was to compile the binary distribution.
I was following the tutorial found at devshed.com called "Setting Up Database Driven Websites"
With one exeption, I was using the latest versions of php3, mysql and apache!

Other suggestions?


------------------
-ulrik-

Reply With Quote
  #6  
Old October 18th, 1999, 02:37 PM
jpenix
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
These instructions blow by when you run 'make install' during the MySQL installation. Perhaps they hold the key to your problems:

Libraries have been installed in:
/usr/local/mysql/lib/mysql

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use `-LLIBDIR'
flag during linking and do at least one of the following:
- add LIBDIR to the `LD_LIBRARY_PATH' environment variable
during execution
- add LIBDIR to the `LD_RUN_PATH' environment variable
during linking
- use the `-Wl,--rpath -Wl,LIBDIR' linker flag
- have your system administrator add LIBDIR to `/etc/ld.so.conf'

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.

Reply With Quote
  #7  
Old October 20th, 1999, 10:03 AM
Ulrik N
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Thank you all...

I found out myself
"--with-mysql=/usr/local/mysql/"

this did the trick...




------------------
-ulrik-

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesPHP Development > configure error

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap