Re: make error

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

 



On 23/03/2012 16:58, Asher Wong wrote:
> I use php-5.4.0.tar.bz2 and MySQL-5.5.21-1.el6.src.rpm in CentOS 6.2. But I
> can find the MySQL headers in the MySQL source I used. Is there anything
> wrong with my installing MySQL?

Hi,

You can just install the mysql headers via the devel package if you
don't need the server:

#	yum install mysql-devel


If you want to find where they were installed use:

#	find / -name mysql.h

Regards

Ian
-- 



> 
> 
> 
>> 2012/3/23 Daniel Brown <danbrown@xxxxxxx>
>>
>>> 2012/3/23 黄昭源 <wongzhaoyuan@xxxxxxxxx>:
>>>> Hello, I have a problem.
>>>> When I configure php with the parameter --with-mysql=/usr/local/mysql
>>> and
>>>> make, some errors happen. Below is the errors:
>>>> ext/mysql/php_mysql.c:995: undefined reference to `_mysqlnd_init'
>>>> ext/mysql/php_mysql.c:1012: undefined reference to `mysqlnd_connect'
>>>> ext/mysql/php_mysql.c:876: undefined reference to `_mysqlnd_init'
>>>> ...
>>>> and so on.
>>>> Is there someone also come across this? Can anyone help me? Thanks!
>>>
>>>     Sounds like you're missing the MySQL headers from the source
>>> library.  You can either download the full source or install just the
>>> headers via your system's package manager.  If you need more help, let
>>> us know what distribution you're using.
>>>
>>> --
>>> </Daniel P. Brown>
>>> Network Infrastructure Manager
>>> http://www.php.net/
>>>
>>
>>
>>
>> --
>> 黄昭源(Asher Wong)
>> *Best Wishes To You!*
>>
>>
> 
> 



-- 
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