我正在尝试在centos5.11上安装php5.6.24当我尝试使用--enable-intl配置它时我遇到问题它给了我
configure: error: Don't know how to define struct flock on this system, set --enable-opcache=no
当我尝试使用--disable-opcache进行配置时,它配置得很好但是当我试图让它给我时
/php/php-5.6.24/ext/standard/basic_functions.c:3625: undefined reference to zm_startup_password
ext/standard/.libs/basic_functions.o:(.data.rel.ro+0x1168): undefined reference to zif_password_hash
ext/standard/.libs/basic_functions.o:(.data.rel.ro+0x1188): undefined reference to zif_password_get_info
ext/standard/.libs/basic_functions.o:(.data.rel.ro+0x11a8): undefined reference to zif_password_needs_rehash
ext/standard/.libs/basic_functions.o:(.data.rel.ro+0x11c8): undefined reference to zif_password_verify
/usr/local/lib/libicuio.so: undefined reference to std::basic_ostream<char, std::char_traits<char> >& std::__ostream_insert<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, long)@GLIBCXX_3.4.9
/usr/local/lib/libicui18n.so: undefined reference to memcpy@GLIBC_2.14
/usr/local/lib/libicui18n.so: undefined reference to __cxa_throw_bad_array_new_length@CXXABI_1.3.8
collect2: ld returned 1 exit status
make: *** [sapi/cli/php] Error 1
有谁知道我怎样才能使用--enable-intl
答案 0 :(得分:1)
我在cygwin上构建了关于未定义引用的类似错误输出。我安装了libcrypt-devel软件包,并在执行'make distclean'后重新运行configure脚本。
关于struct flock类型的第一条错误消息,我没有提示,但在CentOS中,这是在/usr/include/bits/fcntl.h中定义的,它包含在/usr/include/fcntl.h中。也许这有点帮助。