Re: building php, using mysql for apache2

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



--with-mysql is supposed to be the directory in which configure can find
the mysql header (.h) files and the mysql library (mysql.so) underneath
that directory.

/usr/bin/mysql_config is a program -- a "binary" if you will

It's incredibly unlikely that your MySQL header files and the mysql.so
library are in files underneath this binary, which isn't even a directory,
much less the directory where your header and library files are living...

Try --with-mysql=/usr  or --with-mysql=/usr/local or...

Do this:
locate mysql.h
locate mysql.so

Then find the common portion of the directories where those files live.

Silly Example:
/elephant/snake/tiger/mysql.h
/elephant/gorilla/pume/mysql.so

You should use --with-mysql=/elephant because that's the common portion.

In theory, configure will dig around in there and find the files it needs.

In reality, it expects them to be in directories like 'include' and 'lib'
with maybe an intervening directory like 'local' somewhere in the mess...

On Wed, June 1, 2005 5:13 am, bruce said:
> hi...
>
> trying to build php4 with mysql4.1-12, for use in apache2. i have the
> following "./compile" that works for php5. however, when i try to use it
> for
> php4, i get a msg, stating that it can't find the MySQL Headers...
>
> can anybody provide any pointers as far as what the Headers are for mysql,
> and where they'd be located? if i knew the files, i could do a search to
> find where they're located.
>
> ----------------------------------
> ./configure --with-apxs2=/usr/sbin/apxs --with-mysql=/usr/bin/mysql_config
> ----------------------------------
>
> thanks
>
> -bruce
> bedouglas@xxxxxxxxxxxxx
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>


-- 
Like Music?
http://l-i-e.com/artists.htm

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux