Тема: Как установить на FreeBSd php5-idn

Добрый день.

Второй день пытаюсь понять откуда в портах установить php5-idn
Кто нибудь уже ставил это расширение?

Спасибо!

2

Re: Как установить на FreeBSd php5-idn

Сначала проверим, есть ли PERL
К примеру, у меня стоит
/usr/local/bin/perl5.8.9

Далее берем следующие порты:

#cd /usr/ports/devel/pecl-intl
#make install clean
#cd /usr/ports/dns/libidn
#make install clean

3 (14-12-2010 21:37:25 отредактировано Кручу-Верчу)

Re: Как установить на FreeBSd php5-idn

Нашел инфу, что надо ставить еще pecl idn

Пробую. Нифига не получается.

# pecl install channel://pecl.php.net/idn-0.2.0
downloading idn-0.2.0.tar ...
Starting to download idn-0.2.0.tar (Unknown size)
.........done: 26,624 bytes
3 source files, building
running: phpize
Configuring for:
PHP Api Version:         20090626
Zend Module Api No:      20090626
Zend Extension Api No:   220090626
configure.in:3: warning: prefer named diversions
configure.in:3: warning: prefer named diversions
GNU libidn installation dir? [autodetect] : /usr/local/include
building in /var/tmp/pear-build-root/idn-0.2.0
running: /go-pear/idn/configure --with-idn=/usr/local/include
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for a sed that does not truncate output... /usr/bin/sed
checking for cc... cc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
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... yes
checking build system type... amd64-unknown-freebsd7.4
checking host system type... amd64-unknown-freebsd7.4
checking target system type... amd64-unknown-freebsd7.4
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/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... re2c
checking for re2c version... 0.13.5 (ok)
checking for gawk... gawk
checking for GNU Libidn support... yes, shared
checking for idn files in default path... found in /usr/local
checking for optional tld files... yes
checking for stringprep_check_version in -lidn... no
configure: error: wrong idn lib version or lib not found
ERROR: `/go-pear/idn/configure --with-idn=/usr/local/include' failed