MontereyDean

Registered
Dec 23, 2013
3
1
53
cPanel Access Level
Root Administrator
CENTOS 6.5 x86_64
WHM 11.40.1 (build 7)
PHP 5.3.24

In WHM, using the PHP Pecl installer, I get:

Code:
downloading intl-3.0.0.tgz ...
Starting to download intl-3.0.0.tgz (248,200 bytes)
.................................................done: 248,200 bytes
150 source files, building
running: phpize
Configuring for:
PHP Api Version:         20090626
Zend Module Api No:      20090626
Zend Extension Api No:   220090626
Specify where ICU libraries and headers can be found [DEFAULT] : building in /root/tmp/pear/pear-build-rooteUR9fK/intl-3.0.0
running: /root/tmp/pear/intl/configure --with-icu-dir=DEFAULT
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for a sed that does not truncate output... /bin/sed
checking for cc... cc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking for cc option to accept ISO C89... none needed
checking how to run the C preprocessor... cc -E
checking for icc... no
checking for suncc... no
checking whether cc understands -c and -o together... yes
checking for system library directory... lib
checking if compiler supports -R... no
checking if compiler supports -Wl,-rpath,... yes
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking for PHP prefix... /usr/local
checking for PHP includes... -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib
checking for PHP extension directory... /usr/local/lib/php/extensions/no-debug-non-zts-20090626
checking for PHP installed headers prefix... /usr/local/include/php
checking if debug is enabled... no
checking if zts is enabled... no
checking for re2c... no
configure: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers.
checking for gawk... gawk
checking whether to enable internationalization support... yes, shared
checking for icu-config... no
checking for location of ICU headers and libraries... not found
configure: error: Unable to detect ICU prefix or no failed. Please verify ICU install prefix and make sure icu-config works.
ERROR: `/root/tmp/pear/intl/configure --with-icu-dir=DEFAULT' failed
The intl.so object is not in /usr/local/lib/php/extensions/no-debug-non-zts-20090626
Tidying /usr/local/lib/php.ini...
No changes
Tidying /usr/local/cpanel/3rdparty/php/53/etc/php.ini...
No changes
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,267
463
Hello :)

The following output you provided is the key here:

checking for location of ICU headers and libraries... not found
configure: error: Unable to detect ICU prefix or no failed. Please verify ICU install prefix and make sure icu-config works.
You will need to ensure ICU is properly installed on your system before attempting to install this PECL module again. You can ensure it's installed via:

Code:
yum install libicu
yum install libicu-devel
Thank you.
 
  • Like
Reactions: sambazzi

grayloon

Well-Known Member
Oct 31, 2007
121
4
68
Evansville, IN
cPanel Access Level
Root Administrator
Twitter
yum install libicu
yum install libicu-devel
I had the same issue, so I installed libicu as suggested. When I try to install the intl extension again, I get a new set of errors:
In file included from /root/tmp/pear/intl/dateformat/dateformat_format_object.cpp:17:
/root/tmp/pear/intl/dateformat/../intl_cppshims.h:34:7: warning: no newline at end of file
/root/tmp/pear/intl/dateformat/dateformat_format_object.cpp:42: error: 'kFullRelative' is not a member of 'icu_3_6::DateFormat'
/root/tmp/pear/intl/dateformat/dateformat_format_object.cpp:43: error: 'kLongRelative' is not a member of 'icu_3_6::DateFormat'
/root/tmp/pear/intl/dateformat/dateformat_format_object.cpp:44: error: 'kMediumRelative' is not a member of 'icu_3_6::DateFormat'
/root/tmp/pear/intl/dateformat/dateformat_format_object.cpp:45: error: 'kShortRelative' is not a member of 'icu_3_6::DateFormat'
/root/tmp/pear/intl/dateformat/dateformat_format_object.cpp: In function 'void zif_datefmt_format_object(int, zval*, zval**, zval*, int)':
/root/tmp/pear/intl/dateformat/dateformat_format_object.cpp:136: error: 'kRelative' is not a member of 'icu_3_6::DateFormat'
make: *** [dateformat/dateformat_format_object.lo] Error 1
ERROR: `make' failed
The intl.so object is not in /usr/local/lib/php/extensions/no-debug-non-zts-20090626
Tidying /usr/local/lib/php.ini...
No changes
Tidying /usr/local/cpanel/3rdparty/php/54/etc/php.ini...
No changes
Suggestions?
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,267
463
Have you tried installing this PECL module from the command line? EX:

Code:
pecl install intl
Also, did you verify both required packages were successfully installed through YUM?

Thank you.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,267
463
Feel free to open a support ticket using the link in my signature so we can take a closer look. You can post the ticket number here so we can update this thread with the outcome.

Thank you.