Re: Configuration issues w/PHP4, MySQL, Apache on RH7.1

From: Date: Sun, 08 Jul 2001 04:09:38 +0000
Subject: Re: Configuration issues w/PHP4, MySQL, Apache on RH7.1
References: 1  Groups: php.install 
Request: Send a blank email to php-install+get-3439@lists.php.net to get a copy of this message
Ok, it seems that either your /usr/lib/mysql or your /var/lib/mysql has the libraries in them. cd to both of them and find out which has libmysqlclient.so.10 and other similarly named libraries... I am 99% sure it will be the /usr/lib/mysql. Edit your /etc/ld.so.conf file, and add this line: /usr/lib/mysql Or whatever the directory the files were in. (like I said, /usr/lib/mysql seems the logical place) Do a "make clean" on php. Run ldconfig (optionally, you can add a -v for verbose mode) Go back to php, and "./configure --with-mysql=/usr/lib/mysql --with-apxs=/path/to/apache/bin/apxs" make, make install and you should be good. As it was apparent earlier, I am not sure how the RedHat ldcondif works. Optimally, you should just be able to merge the /usr/lib/mysql in with already cached shared libraries (hence the -m), but you may have to reload all the paths. As long as you have the path correct in the PHP configure script, just mess around with ldconfig and get that path linked... Leave it to RedHat to butcher ldconfig :) If you can't get it right after messing with ldconfig, remove the RPM and install from source (It's much easier and hassle free in the long run, IMHO) Best of luck, Derek "McAtee, Gabriel" wrote: > Actually, I'm not sure what my base director is... I did the RPM install, > and there is MySQL stuff all over the hard drive now!!!! I did a "locate > mysql | grep "/lib/mysql", and /var/lib/mysql and /user/lib/mysql show up. > I tried the configure with both of those locations, and both times I get the > error "configure: error: Cannot find header files under /usr/lib/mysql". > Also, an attempt to run ldconfig -m fails, no such option as -m on RH7.1. > Thanks, though... I'll keep plugging away... :) > > "Derek Steinkamp" <heyitsme@voyager.net> wrote in message > news:<3B452654.EE3FEEA2@voyager.net>... > > I am going to assume that /usr/bin/mysql is your base directory. That > would > > make the shared libraries in the directory /usr/bin/mysql/lib/mysql. A > simple: > > > > # ldconfig -m /usr/bin/mysql/lib/mysql > > > > Should fix all your woes. Depending on your flavor of Unix you run, you > will > > want to add the above directory line to your /etc/ld.so.conf file or > similar > > hints file. > > > > One other thing... you should be configuring PHP with apxs.. looking > something > > like: > > > > # ./config --with-mysql=/path/to/MySQL > --with-apxs=/path/to/apache/bin/apxs > > > > Hope this helps. > > > > Derek Steinkamp > > > > > > > > > > Gabriel McAtee wrote: > > > > > So.... I have MySQL up and working, Apache up and working, and PHP4 up > and > > > working... but not connecting to MySQL. I ran > > > "configure --with-mysql=/usr/bin/mysql" which apparently is not > correct... > > > it returned an error stating that it could not find the MySQL libraries > in > > > the indicated path. Could someone give me a pointer here? I've been > > > struggling with this for a week and a half now, and not making any > progress > > > to speak of... :( > > > > > > -- > > > _______________________________________ > > > _______________________________________ > > > _______________________________________ > > > Gabriel K. McAtee > > > Consultant > > > Project Leadership Associates > > > 250 S. Wacker Dr., Suite 345 > > > Chicago, IL 60606 > > > _______________________________________ > > > _______________________________________ > > > _______________________________________ > > > > > > -- > > > PHP Install Mailing List (http://www.php.net/) > > > To unsubscribe, e-mail: php-install-unsubscribe@lists.php.net > > > For additional commands, e-mail: php-install-help@lists.php.net > > > To contact the list administrators, e-mail: php-list-admin@lists.php.net > >

« previous php.install (#3439) next »