Thanks Rasmus. I think at this point I would like to start with a clean 
slate. I just tried to make the dynamic module by explicitly following the 
INSTALL file (after a make clean). That still did not clear up the problem. 
What is the best way to wipe the slate clean and start over?

jce

Rasmus Lerdorf wrote:

> No, but as per the INSTALL docs, you should be using --with-mysql=/usr
> PHP needs to find both the library and the header files and there are no
> library files anywhere under /usr/include
> 
> On Sun, 2 Dec 2001, Joe wrote:
> 
>> Additionally, I just noticed that although I installed the dev packages
>> for both Apache and MySQL, I was not giving the MySQL path. If I attempt
>> to give a path, the configuration still fails. The header files are in
>> /usr/include/mysql. I've tried that path as well as /usr/include. Am I
>> still missing a package?
>> 
>> jce
>> 
>> Joe wrote:
>> 
>> > Ultimately, I am trying to use PHP from Apache. You've almost
>> > definitely hit on my problem because I am not sure how to answer your
>> > question. If I call a script from the web server, I get the same error
>> > about undefined function. Is this a case of not giving the right switch
>> > to the PHP configuration script? Is there a library file I can simply
>> > move? I would like to use a module in the end.
>> > 
>> > jce
>> > 
>> > 
>> > 
>> > Fred wrote:
>> > 
>> >> Are you installing php as cgi or as an apache module?  What happens
>> >> when you call a script via the web server?
>> >> 
>> >> Fred
>> >> 
>> >> Joe <[EMAIL PROTECTED]> wrote in message
>> >> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
>> >>> Good Call. I installed the development packages and php configured,
>> >>> compiled and installed properly. I am now left with what seems like a
>> >>> simple problem, which I have not successfully tackled. If I run my
>> >>> program by typing: php test.php, it does not work. If I do: ./php
>> >>> test.php it does work. I am assuming the "make install" didn't do
>> >>> what I expected, but I haven't found the problem yet. Any ideas?
>> >>>
>> >>> (Still getting the same error: Undefined function as described below.
>> >>> I checked for copies all over the filesystem and compared them using
>> >>> md5sum. All appear to be the same. I am puzzled.)
>> >>>
>> >>> jce
>> >>>
>> >>>
>> >>> Fred wrote:
>> >>>
>> >>> > I would venture to guess that mysql is installed as a binary
>> >> distribution.
>> >>> > PHP needs the sources in order to compile with mysql support.  Try
>> >>> > installing mysql from source or installing the source rpm.
>> >>> >
>> >>> > Fred
>> >>> >
>> >>> > Joe <[EMAIL PROTECTED]> wrote in message
>> >>> > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
>> >>> >> Hi All,
>> >>> >>
>> >>> >>         I am trying to use MySQL from PHP. I get the error
>> >>> >>         message:
>> >> call
>> >>> > to
>> >>> >> undefined function: mysql_connect()
>> >>> >>
>> >>> >> Based on what I've read, I need to compile PHP with the
>> >>> >> --use-mysql=/path/to/mysql option. This was not enough information
>> >>> >> to
>> >> get
>> >>> >> the compile to work. (I tried every directory that had *any* mysql
>> >> files
>> >>> > in
>> >>> >> it.) So I ended up compiling just using --use-mysql. This seemed
>> >>> >> to
>> >> work,
>> >>> >> php -v gives me 4.0.6. However, the error still exists: undefined
>> >>> > function:
>> >>> >> mysql_connect() (MySQL is definitely installed. I have used the
>> >>> >> client
>> >> to
>> >>> >> build a small database which I can query against.)
>> >>> >>
>> >>> >> Could someone please give me a hand here?
>> >>> >>
>> >>> >> jce
>> >>>
>> 
>> 
>>


-- 
PHP Install Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to