Activities

August 2010
M T W T F S S
« Jul   Sep »
 1
2345678
9101112131415
16171819202122
23242526272829
3031  

pdo_mysql.so: undefined symbol: php_pdo_declare_long_constant

After the mysql_pdo installation on new Centos 5.5 server, I got the error
pdo_mysql.so: undefined symbol: php_pdo_declare_long_constant” I have done the installation and uninstall pdo_mysql using pecl package but still the error is live.

After googling I found that, PDO library is already installed which bind with php binary. But “pecl” installed uses it’s own pdo build which can able to work with “pdo_mysql” pecl installer. So I need to unbind the pdo from the php binary. I have recompiled the php using “–disable-pdo” and installed the pdo_mysql using pecl.

a quick rebuild of PHP with –disable-pdo and then enabling pdo from PECL instead

That’s all make sense to me.
1. #pecl uninstall PDO
2. #pecl uninstall PDO_MYSQL
3. Recompile php using “–disable-pdo”
4. #pecl install PDO
5. #PHP_PDO_SHARED=1 pecl install PDO_MYSQL

6. [root@rc-021 php-5.2.14]# <strong>php -r 'phpinfo();' |grep "pdo"</strong>
pdo_mysql

Leave a Reply

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>