linux-pdo_mysql.so: undefined symbol: php_pdo_declare_long_constant
时间:2011-05-31 来源:a1981b007
安装pdo_mysql不成功的解决办法
重点在:--disable-pdo
sudo ./configure --prefix=/opt/modules/phpcgi --disable-pdo --with-mysql=/opt/modules/mysql5/ --enable-fastcgi --enable-discard-path --enable-force-cgi-redirect --enable-bcmath --enable-inline-optimization --enable-magic-quotes --enable-sockets --enable-sockets --enable-mbstring --enable-fastcgi --enable-discard-path --enable-sqlite-utf8 --enable-safe-mode --enable-gd-native-ttf --enable-ftp --disable-debug --with-mcrypt --with-openssl --with-freetype-dir=/usr --with-png-dir=/usr --with-jpeg-dir --with-gd --with-ttf --with-iconv-dir --with-zlib-dir --with-openssl --enable-soap --with-oci8=share,instantclient,/opt/modules/instantclient_10_2 --with-iconv=/usr/local/libiconv
然后:pecl install pdo
pecl install pdo_mysql
最后在php.ini中加入pdo.so,pdo_mysql.so
重点在:--disable-pdo
sudo ./configure --prefix=/opt/modules/phpcgi --disable-pdo --with-mysql=/opt/modules/mysql5/ --enable-fastcgi --enable-discard-path --enable-force-cgi-redirect --enable-bcmath --enable-inline-optimization --enable-magic-quotes --enable-sockets --enable-sockets --enable-mbstring --enable-fastcgi --enable-discard-path --enable-sqlite-utf8 --enable-safe-mode --enable-gd-native-ttf --enable-ftp --disable-debug --with-mcrypt --with-openssl --with-freetype-dir=/usr --with-png-dir=/usr --with-jpeg-dir --with-gd --with-ttf --with-iconv-dir --with-zlib-dir --with-openssl --enable-soap --with-oci8=share,instantclient,/opt/modules/instantclient_10_2 --with-iconv=/usr/local/libiconv
然后:pecl install pdo
pecl install pdo_mysql
最后在php.ini中加入pdo.so,pdo_mysql.so
相关阅读 更多 +