Hi,
Has anyone managed to install "intl" pecl extension on ubuntu?

On my first try phpize wasn't found. So I installed php5-dev package,
which solved that.

Next i get the mysterious question in [1]. I think 'all' needs the
explanation that this is what you type if you want to specify the path??

I try just pressing Enter and get lots of output ending in:
 ERROR: `/tmp/pear/temp/intl/configure --with-icu-dir=DEFAULT' failed

I have icu 3.6 installed (and icu-dev package), and "whereis icu" tells me:
   icu: /usr/lib/icu /usr/share/icu

So, I tried answering "all" (without the quotes). Then I gave
/usr/lib/icu, but same problem. Full output is in [2] below.
Giving /usr/share/icu gave the same error.

If someone can suggest what package I am missing, or what I am doing
wrong, I'd be very grateful!

Darren



[1]:
 75 source files, building
running: phpize
Configuring for:
PHP Api Version:         20041225
Zend Module Api No:      20060613
Zend Extension Api No:   220060519
 1. Specify where ICU libraries and headers can be found : DEFAULT

1-1, 'all', 'abort', or Enter to continue:


[2]:

# pecl install intl
downloading intl-1.0.0beta.tgz ...
Starting to download intl-1.0.0beta.tgz (96,707 bytes)
.....................done: 96,707 bytes
75 source files, building
running: phpize
Configuring for:
PHP Api Version:         20041225
Zend Module Api No:      20060613
Zend Extension Api No:   220060519
 1. Specify where ICU libraries and headers can be found : DEFAULT

1-1, 'all', 'abort', or Enter to continue: all
Specify where ICU libraries and headers can be found [DEFAULT] :
/usr/lib/icu/
 1. Specify where ICU libraries and headers can be found : /usr/lib/icu/

1-1, 'all', 'abort', or Enter to continue:
building in /var/tmp/pear-build-root/intl-1.0.0beta
running: /tmp/pear/temp/intl/configure --with-icu-dir=/usr/lib/icu/
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 gcc... gcc
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 gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc and cc understand -c and -o together... yes
checking if compiler supports -R... no
checking if compiler supports -Wl,-rpath,... yes
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for PHP prefix... /usr
checking for PHP includes... -I/usr/include/php5
-I/usr/include/php5/main -I/usr/include/php5/TSRM
-I/usr/include/php5/Zend -I/usr/include/php5/ext
-I/usr/include/php5/ext/date/lib -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
checking for PHP extension directory... /usr/lib/php5/20060613+lfs
checking for PHP installed headers prefix... /usr/include/php5
checking for re2c... no
configure: WARNING: You will need re2c 0.9.11 or later if you want to
regenerate PHP parsers.
checking for gawk... no
checking for nawk... nawk
checking if nawk is broken... no
checking whether to enable internationalization support... yes, shared
/tmp/pear/temp/intl/configure: line 3838: syntax error near unexpected
token `INTL_SHARED_LIBADD'
/tmp/pear/temp/intl/configure: line 3838: `
PHP_SETUP_ICU(INTL_SHARED_LIBADD)'
ERROR: `/tmp/pear/temp/intl/configure --with-icu-dir=/usr/lib/icu/' failed



-- 
Darren Cook
http://dcook.org/mlsn/ (English-Japanese-German-Chinese free dictionary)
http://dcook.org/work/ (About me and my work)
http://dcook.org/work/charts/  (My flash charting demos)

-- 
PHP Unicode & I18N Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to