Re: make error
| From: | Asher Wong | Date: | Fri, 23 Mar 2012 16:52:23 +0000 |
| Subject: | Re: make error | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-317211@lists.php.net to get a copy of this message | ||
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?
2012/3/23 Daniel Brown <danbrown@php.net>
> 2012/3/23 黄昭源 <wongzhaoyuan@gmail.com>:
> > 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!*