|
View:
New views
12 Messages
—
Rating Filter:
Alert me
|
|
|
ubuntu 7.10 pecl install intlHi,
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 |
|
|
RE: ubuntu 7.10 pecl install intl> Has anyone managed to install "intl" pecl extension on ubuntu?
Yes - ubuntu 8.04 64bit. > I try just pressing Enter and get lots of output ending ... failed I just pressed ENTER and it found icu. What it is looking for is bin/icu-config On my system this is in /usr. If the default empty path doesn't work, I'd try '/usr'. If you can't find 'icu-config' on your system then you don't have libXXicu-dev installed. =Ed Batutis -- PHP Unicode & I18N Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php |
|
|
Re: ubuntu 7.10 pecl install intlEd Batutis wrote:
>> Has anyone managed to install "intl" pecl extension on ubuntu? Hi Ed, Thanks for the reply. I have icu-config in /usr/bin, but get the same error: ... 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' failed I've had a look in the files that exist at that point and PHP_SETUP_ICU only exists on that one line; it doesn't seem to be defined anywhere (not in configure, nor in any other of the files in the /tmp/pear/temp/intl directory). And INTL_SHARED_LIBADD is not mentioned before that line; it is only used afterwards (and is only used, not defined anywhere, as far as I can see). But I suppose the configure file might be cleverer than me and making those functions/symbols on the fly? Anyone got any suggestions I can try? This is intl-1.0.0beta.tgz by the way. Darren P.S. The above error message is identical in all cases: * I press enter * I input abort * I input all and give a path that exists * I input all and give a load of garbage I.e. I think the --with-icu-dir setting is a red herring, and the problem is earlier. > > Yes - ubuntu 8.04 64bit. > >> I try just pressing Enter and get lots of output ending ... failed > > I just pressed ENTER and it found icu. What it is looking for is > > bin/icu-config > > On my system this is in /usr. If the default empty path doesn't work, I'd > try '/usr'. If you can't find 'icu-config' on your system then you don't > have libXXicu-dev installed. > > =Ed Batutis > > > -- 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 |
|
|
RE: ubuntu 7.10 pecl install intl> I've had a look in the files that exist at that point and PHP_SETUP_ICU
> only exists on that one line; it doesn't seem to be defined anywhere It should be defined in acinclude.m4 in the php5 dev directory - /usr/lib/php5/build on my ubuntu - installed when you installed php5-dev. Maybe your autoconf isn't finding it for some reason. You might check that if so. =Ed -- PHP Unicode & I18N Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php |
|
|
Re: ubuntu 7.10 pecl install intl>> I've had a look in the files that exist at that point and PHP_SETUP_ICU
>> only exists on that one line; it doesn't seem to be defined anywhere > > It should be defined in acinclude.m4 in the php5 dev directory - > /usr/lib/php5/build on my ubuntu - installed when you installed php5-dev. Thanks Ed, That narrows it down a lot: it isn't defined in that file! The top line says: dnl $Id: acinclude.m4,v 1.332.2.14.2.15 2007/05/24 21:40:41 sniper Ex So I assume ubuntu 8 is using a more recent PHP than ubuntu 7.1 and defines that constant. My php -v says: PHP 5.2.3-1ubuntu6.3 (cli) (built: Jan 10 2008 09:38:37) pecl intl should work with php 5.2 shouldn't it? So is it fair to say that the php-dev ubunutu 7.1 package has a bug because the acinclude.m4 file (2007/05/24) wasn't updated in the last build (2008/01/10)? (I'm just trying to work out who I should give a bug report to.) Is it possible for you to post your PHP_SETUP_ICU definition and I'll paste that into acinclude.m4 to see if it is the only problem. Thanks, Darren -- 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 |
|
|
Re: ubuntu 7.10 pecl install intlHi!
> So I assume ubuntu 8 is using a more recent PHP than ubuntu 7.1 and > defines that constant. My php -v says: > PHP 5.2.3-1ubuntu6.3 (cli) (built: Jan 10 2008 09:38:37) I think ICU stuff might be added to 5.2 branch after 5.2.3 You may want to d/l 5.2.6 from php.net and compare the acinclude.m4, or just see one on cvs.php.net in PHP_5_2 branch. I understand it's not as good as having it ready on your system, but 5.2.3 is year old now, and 5.2.6 is current, so I hope Ubuntu has some more up-to-date package... -- Stanislav Malyshev, Zend Software Architect stas@... http://www.zend.com/ (408)253-8829 MSN: stas@... -- PHP Unicode & I18N Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php |
|
|
Re: ubuntu 7.10 pecl install intl> I think ICU stuff might be added to 5.2 branch after 5.2.3 You may want
> to d/l 5.2.6 from php.net and compare the acinclude.m4, or just see one > on cvs.php.net in PHP_5_2 branch. Thanks. I got it from here: http://cvs.php.net/viewvc.cgi/php-src/acinclude.m4?revision=1.387 Perhaps the intl pecl package instructions can be updated to say 5.2.3 is not supported? With the above acinlude.m4 the pecl install intl now gets a lot further along. But it still fails, here: /tmp/pear/temp/intl/collator/collator_sort.c:30: error: conflicting types for 'ptrdiff_t' /usr/lib/gcc/i486-linux-gnu/4.1.3/include/stddef.h:152: error: previous declaration of 'ptrdiff_t' was here Seems like a strange one. I'm using a 32 bit machine. Could there be something in collator that is hard-coded for 64-bit? Darren -- PHP Unicode & I18N Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php |
|
|
Re: ubuntu 7.10 pecl install intlHi!
> /tmp/pear/temp/intl/collator/collator_sort.c:30: error: conflicting > types for 'ptrdiff_t' > /usr/lib/gcc/i486-linux-gnu/4.1.3/include/stddef.h:152: error: previous > declaration of 'ptrdiff_t' was here This should be fixed already... Which version do you use - CVS or some other? -- Stanislav Malyshev, Zend Software Architect stas@... http://www.zend.com/ (408)253-8829 MSN: stas@... -- PHP Unicode & I18N Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php |
|
|
Re: ubuntu 7.10 pecl install intl>> /tmp/pear/temp/intl/collator/collator_sort.c:30: error: conflicting
>> types for 'ptrdiff_t' >> /usr/lib/gcc/i486-linux-gnu/4.1.3/include/stddef.h:152: error: previous >> declaration of 'ptrdiff_t' was here > > This should be fixed already... Which version do you use - CVS or some > other? I'm typing "pecl install intl". It downloads this file: intl-1.0.0beta.tgz (96,707 bytes) BTW, this page needs to be updated: http://pecl.php.net/package/intl to say PHP version 5.2.6 (?) or newer, not 5.2.0 or newer. Or (even better) patch the intl package so it defines PHP_SETUP_ICU itself (and any other macros it needs from PHP5's acinclude.m4). Darren P.S. Yes, by this point it would have been quicker to compile latest PHP from source then compile intl from cvs. But if intl won't install from pecl with a popular distro then it isn't ready for me to use it in client projects. So I'll carry on being your pecl beta tester :-). -- 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 |
|
|
Re: ubuntu 7.10 pecl install intlHi!
> I'm typing "pecl install intl". It downloads this file: > intl-1.0.0beta.tgz (96,707 bytes) I see. Unfortunately, this build is a bit old... We should have better release pretty soon (I think once we figure out the last details of grapheme APIs, it'd be ready) but right now best bet would be to check out pecl/intl from CVS, using PHP_5_2 branch. > BTW, this page needs to be updated: > http://pecl.php.net/package/intl > to say PHP version 5.2.6 (?) or newer, not 5.2.0 or newer. Or (even > better) patch the intl package so it defines PHP_SETUP_ICU itself (and > any other macros it needs from PHP5's acinclude.m4). It's 5.2.4, but yes, package.xml will be updated. > P.S. Yes, by this point it would have been quicker to compile latest PHP > from source then compile intl from cvs. But if intl won't install from > pecl with a popular distro then it isn't ready for me to use it in > client projects. So I'll carry on being your pecl beta tester :-). It will be ready for 1.0 release. Thanks for testing it :) -- Stanislav Malyshev, Zend Software Architect stas@... http://www.zend.com/ (408)253-8829 MSN: stas@... -- PHP Unicode & I18N Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php |
|
|
Re: ubuntu 7.10 pecl install intl>> I'm typing "pecl install intl". It downloads this file:
>> intl-1.0.0beta.tgz (96,707 bytes) > > I see. Unfortunately, this build is a bit old... We should have better > release pretty soon ... but right now best bet would be to check > out pecl/intl from CVS, using PHP_5_2 branch. Release early, release often, release today (as it seems current version won't compile, there seems nothing to lose). I know, easy for me to say as I'm not volunteering to do the release :-). I'll try the CVS version in a day or two. Darren -- PHP Unicode & I18N Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php |
|
|
Re: ubuntu 7.10 pecl install intl> Has anyone managed to install "intl" pecl extension on ubuntu?
Now I have this working I've summarized the steps here: http://darrendev.blogspot[DOT]com/2008/05/install-php-pecl-intl-module-for-ubuntu.html (Change [DOT] to ".". Apologies for not being able to make that clickable; but foolishly (IMHO) PHP lists are using SBL, where some idiot (or employee of a google competitor) has blacklisted blogspot.com.) Darren -- Darren Cook http://dcook.org/mlsn/ (English-Japanese-German-Chinese-Arabic open source dictionary/semantic network) 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 |
| Free embeddable forum powered by Nabble | Forum Help |