You are here: Re: [PHP] MySQL and MySQLi compiling « PHP « IT news, forums, messages
Re: [PHP] MySQL and MySQLi compiling

Posted by Chris on 02/18/05 09:17

Hans Zaunere wrote:

>>Hi, I've been trying to get these 2 compiled together for a while, and
>>have had no luck.
>>
>>WHere my problem lies, I think, is that I'm not sure what directory
>>should be specified on the --with-mysql part
>>
>>./configure --with-apxs2=/usr/local/apache/bin/apxs
>>--with-mysql=/usr/include/mysql/ --with-mysqli=/usr/bin/mysql_config
>>
>>I have my own compiled Apache (It is Apache 2) , and MySQL 4.1.9
>>installed (the packages off mysql.com). The PHP documentation jsut says
>>point it to the install dir. I'm nto sure what counts as the install dir
>>for the MySQL packages.
>>
>>Any advice would be appreciated.
>>
>>
>
>Both MySQL and MySQL libs can be compiled into PHP. Try
>
>--with-mysql=/usr --with-mysqli=/usr/bin/mysql_config
>
>H
>
>

I actually tried that one (along with several others). In my continuing
saga I tried this:

../configure --with-apxs2=/usr/local/apache/bin/apxs
--with-mysql-include-dir=/usr/include/mysql/
--with-mysql-lib-dir=/usr/lib/mysql/ --with-mysqli=/usr/bin/mysql_config


It compiled, but the mysql extension wasn't there. It strikes me
thatmaybe if I tried

../configure --with-apxs2=/usr/local/apache/bin/apxs --with-mysql=/usr
--with-mysql-include-dir=/usr/include/mysql
--with-mysql-lib-dir=/usr/lib/mysql --with-mysqli=/usr/bin/mysql_config

it might work. I've managed to stave of the need for the mysql extension
for a week or two, but I have a good feeling about that one, and am
hopeful it will work. I'll probably end up trying that one this weekend.

Thanks,
Chris

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация