简体   繁体   中英

Compile PHP with intl

I want to compile php with intl extention.

I am compiling with --enabled-intl.

It gives me error that icu required. So i have install icu using yum install icu libicu-devel

Now I am getting the following error:

checking for ICU 3.4 or greater... found 51.2 checking for c++... c++ checking whether the C++ compiler (c++ -L/usr/lib -L/usr/local/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib) works... configure: error: installation or configuration problem: C++ compiler cannot create executables.

Here is the content of my config.log

configure:52751: c++ -o conftest -I/usr/local/include -L/usr/lib -L/usr/local/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib conftest.C -ls qlite3 -lrt -lm -ldl -lnsl -lrt -lxml2 -lz -liconv -lm -ldl -lxml2 -lz -liconv -lm -ldl -ldl -lm -licui18n -licuuc -licudata -ldl -lm -licuio 1>&5 /usr/local/lib/libxml2.so: undefined reference to gzopen64@ZLIB_1.2.3.3' /usr/local/lib/libxml2.so: undefined reference to gzdirect@ZLIB_1.2.2.3' collect2: ld returned 1 exit status configure: failed program was:

那不应该是--enable-intl(enable中没有'd')吗?

You can fix it by going to

http://www.xmlsoft.org/intro.html

Download and compile it manually.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM