当前位置:Gxlcms > 数据库问题 > lnmp之PDO_mysql.so

lnmp之PDO_mysql.so

时间:2021-07-01 10:21:17 帮助过:42人阅读

#if defined(__GLIBC__) && !defined(__UCLIBC__) && !__GLIBC_PREREQ(2, 16)
        _GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead");
#endif

然后再make && make install


============================================

php编译报错

/usr/bin/ld: ext/ldap/.libs/ldap.o: undefined reference to symbol ‘ber_strdup‘
/usr/bin/ld: note: ‘ber_strdup‘ is defined in DSO /lib64/liblber-2.4.so.2 so try adding it to the linker command line
/lib64/liblber-2.4.so.2: could not read symbols: Invalid operation
collect2: error: ld returned 1 exit status
make: *** [sapi/cli/php] Error 1


解决办法:

./configure后

编辑MakeFile

找到 开头是 ‘EXTRA_LIBS‘ 这一行 在结尾加上 ‘-llber‘ 然后执行 make && make install


lnmp之PDO_mysql.so

标签:pdo_mysql.so

人气教程排行