php 编译错误 /lib64/liblber-2.4.so.2: could not read symbols: Invalid operation

Hycomer 发布于 2013/10/13 22:32
阅读 7K+
收藏 0
PHP

以下的错误是:

/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



我在编译php-5.4.7  php-5.4.20, 都遇到這種况,请教大神么?谢谢

加载中
0
杨_青
杨_青

引用来自“石军军”的评论

./configure后

编辑MakeFile

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

完美解决问题。

0
石军军

./configure后

编辑MakeFile

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

返回顶部
顶部