October 13th, 1999, 04:08 PM
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"
October 13th, 1999, 04:33 PM
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:
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)
October 14th, 1999, 04:39 PM
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.?
October 15th, 1999, 10:51 AM
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.
October 15th, 1999, 04:58 PM
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!
October 18th, 1999, 02:37 PM
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:
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
- add LIBDIR to the `LD_RUN_PATH' environment variable
- 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.
October 20th, 1999, 10:03 AM
Thank you all...
I found out myself
this did the trick...