|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
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- |
|
#2
|
|||
|
|||
|
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) |
|
#3
|
|||
|
|||
|
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- |
|
#4
|
|||
|
|||
|
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.
------------------ |
|
#5
|
|||
|
|||
|
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- |
|
#6
|
|||
|
|||
|
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. |
|
#7
|
|||
|
|||
|
Thank you all...
I found out myself "--with-mysql=/usr/local/mysql/" this did the trick... ------------------ -ulrik- |
![]() |
| Viewing: Dev Shed Forums > Programming Languages > PHP Development > configure error |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|