Re: [PHP] Compile Php5: --with-mysql and --with-mysqli

2004-07-15 Thread Jacob Friis Larsen
Curt Zirzow wrote:
* Thus wrote Jacob Friis Larsen:
How do I install Php5 with both --with-mysql and --with-mysqli?
1. Follow instructions at http://php.net/mysqli.
Is this correct: --with-mysqli=/usr/bin/mysql_config?
(This works: ./configure --with-mysqli=/usr/bin/mysql_config --with-apxs2)
2. Follow instructions at http://php.net/mysql, using the path 
   to your mysql4.1 library
Is this correct: --with-mysql=/usr?
If not, how can I find out?
3. Tweak your my.cnf so the mysqlclient look at the right places.
What should I tweak?
MySQL is the original RPM from MySQL. Version 4.1.3-beta.
Sorry, I think I need more help.
I've read this: If you would like to install the mysql extension along 
with the mysqli extension you have to use the same client library to 
avoid any conflicts., but I do not understand the meaning of it. There 
is only one MySQL installation on the server.

This is my configure, which fails:
./configure --disable-all --with-mysqli=/usr/bin/mysql_config 
--with-mysql=/usr --with-apxs2

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


Re: [PHP] Compile Php5: --with-mysql and --with-mysqli

2004-07-15 Thread Marek Kilimajer
Jacob Friis Larsen wrote:
Curt Zirzow wrote:
* Thus wrote Jacob Friis Larsen:
How do I install Php5 with both --with-mysql and --with-mysqli?

1. Follow instructions at http://php.net/mysqli.

Is this correct: --with-mysqli=/usr/bin/mysql_config?
(This works: ./configure --with-mysqli=/usr/bin/mysql_config --with-apxs2)
2. Follow instructions at http://php.net/mysql, using the pathto 
your mysql4.1 library

Is this correct: --with-mysql=/usr?
If not, how can I find out?
execute /usr/bin/mysql_config --include. It's the path without 
include/mysql. Also make sure you don't have multiple libraries 
installed, you should install MySQL-shared-compat*.rpm


3. Tweak your my.cnf so the mysqlclient look at the right places.

What should I tweak?
MySQL is the original RPM from MySQL. Version 4.1.3-beta.
Sorry, I think I need more help.
I've read this: If you would like to install the mysql extension along 
with the mysqli extension you have to use the same client library to 
avoid any conflicts., but I do not understand the meaning of it. There 
is only one MySQL installation on the server.

This is my configure, which fails:
./configure --disable-all --with-mysqli=/usr/bin/mysql_config 
--with-mysql=/usr --with-apxs2

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


Re: [PHP] Compile Php5: --with-mysql and --with-mysqli

2004-07-15 Thread Jacob Friis Larsen
execute /usr/bin/mysql_config --include. It's the path without 
include/mysql.
In that case my configure is correct:
./configure --disable-all --with-mysqli=/usr/bin/mysql_config 
--with-mysql=/usr --with-apxs2

 Also make sure you don't have multiple libraries
installed, you should install MySQL-shared-compat*.rpm
I have installed MySQL-shared-compat-4.1.3-0.i386.rpm, but I still get 
errors.

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


[PHP] Compile Php5: --with-mysql and --with-mysqli

2004-07-14 Thread Jacob Friis Larsen
How do I install Php5 with both --with-mysql and --with-mysqli?
MySQL is 4.1.3-beta and installed as official MySQL RPM.
This didn't work:
./configure --with-mysql=/usr/include/mysql --enable-embedded-mysqli
./configure --with-mysql=/usr/include/mysql
--with-mysql=/usr/bin/mysql_config
./configure --with-mysql=/usr/include/mysql
--with-mysqli=/usr/bin/mysql_config
The last gave me a lot of errors.
Thanks,
Jacob
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] Compile Php5: --with-mysql and --with-mysqli

2004-07-14 Thread Curt Zirzow
* Thus wrote Jacob Friis Larsen:
 How do I install Php5 with both --with-mysql and --with-mysqli?

1. Follow instructions at http://php.net/mysqli.
2. Follow instructions at http://php.net/mysql, using the path 
   to your mysql4.1 library
3. Tweak your my.cnf so the mysqlclient look at the right places.


Curt
-- 
First, let me assure you that this is not one of those shady pyramid schemes
you've been hearing about.  No, sir.  Our model is the trapezoid!

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