configure: error: Cannot find ldap libraries in /usr/lib 解决办法
检查下面是不是已经安装,如果没有安装之: 检查: yum list openldap yum list openldap-devel 安装 : yum install openldap yum install openldap-devel configure: error: Cannot find ldap libraries in /usr/lib 解决办法 config php的时候出现下面错误而退出 configure: error: Cannot find ldap libraries in /usr/lib 解决办法: cp -frp /usr/lib64/libldap* /usr/lib/ 然后再./configure ...即可 make编译过程中报错ldap.o的模块支持 /usr/bin/ld: ext/ldap/.libs/ldap.o: undefined reference to symbol 'ber_scanf' /usr/bin/ld: note: 'ber_scanf' 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: ld returned 1 exit status make: *** [sapi/cli/php] Error 1 libtool: unrecognized option `-export-dynamic' Try `libtool --help' for more information. make: *** [sapi/cli/php] Error 1 /usr/bin/ld: ext/ldap/.libs/ldap.o: undefined reference to symbol 'ber_scanf' /usr/bin/ld: note: 'ber_scanf' 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: ld returned 1 exit status make: *** [sapi/cli/php] Error 1 解决办法 ./configure后 在编译的目录找到并编辑MakeFile文件 找到 开头是 ‘EXTRA_LIBS’ 这一行 在结尾加上 ‘-llber’ 然后执行 make && make install
<< 上一篇
网友留言(0 条)