RE: [PHP-INST] compiling php

From: Date: Thu, 11 Jan 2001 18:30:25 +0000
Subject: RE: [PHP-INST] compiling php
References: 1  Groups: php.install 
Request: Send a blank email to php-install+get-1555@lists.php.net to get a copy of this message
Good point. And it reminds me of something else: I don't think the PHP configure script >>dies<< if it can't find the mysql libraries. It just prints out a warning message, which you can miss if you don't scan the output from configure. That probably ought to be changed. When everything is okay, the PHP configure script prints out an "okay to proceed" message. If you don't see that, you've got a problem with mysql. - Mark -----Original Message----- From: Student7 SNT [mailto:stude7@nortelnetworks.com] Sent: Thursday, January 11, 2001 2:32 AM To: mark@arcabama.com; php-install@lists.php.net Subject: RE: [PHP-INST] compiling php Hi, Well, if MySQL wasn't running, you'd get a different error (like "can't connect to....."). The actual error indicates that the MySQL function have not been installed in the binary, most probably because it failed to find the relevant libraries. I'm pretty sure the configure script ought to die if you run it with misleading parameters, but I'm not sure. Try running Configure --with-mysql make clean make make install or Configure --with-msql=/usr/local make clean make make install Either of those should sort your problem out. Thanks, C.Davies At 09:28 PM 1/10/01 -0800, you wrote: >Excuse if this sort of obvious thing, but is mysql running on your system? >PHP can't bring it up if it isn't already running. > >- Mark > >-----Original Message----- >From: Bert Goodman [mailto:bert@americanabooks.com] >Sent: Wednesday, January 10, 2001 6:43 PM >To: php-install@lists.php.net >Subject: [PHP-INST] compiling php > > >Hi, I've been playing around trying to get php and mysql to work together. >I've been trying to compile php as a CGI so that I can alter large databases >directly. I'm using PHP4.0.4, MySQL 3.23.30-gamma, RedHat7.0, Intel Celery >633. I've compiled both of the packages. I configured php with >the --with-mysql tag pointing to my mysql install >directory(/usr/local/mysql). Once a make is done I believe it defaults to >putting php in the /usr/local/bin directory. I write a script including >"#!/usr/local/bin/php -q" at the top. Next I open my php tags "<?php". >I >write a simple script to connect to my mysql deamon, queary the database, >and return the results. When I run the script it keeps claiming >"mysql_connect is undefined". I compiled correctly, why is this happening? > >Bert -- 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 (#1555) next »