pecl-intl-1.1.2_3 cannot install: doesn't work with PHP version : 52

Автор: | 17/01/2012
 

При установке RoundCube сборка остановилась с таким сообщением об ошибке:

===> roundcube-0.6_1,1 depends on file: /usr/local/lib/php/20060613/xml.so – found
===> roundcube-0.6_1,1 depends on file: /usr/local/lib/php/20060613/json.so – found
===> roundcube-0.6_1,1 depends on file: /usr/local/lib/php/20060613/intl.so – not found
===> Verifying install for /usr/local/lib/php/20060613/intl.so in /usr/ports/devel/pecl-intl
===> pecl-intl-1.1.2_3 cannot install: doesn’t work with PHP version : 52 (Doesn’t support PHP 4 52).
*** Error code 1

Stop in /usr/ports/devel/pecl-intl.
*** Error code 1

Stop in /usr/ports/mail/roundcube.
*** Error code 1

Stop in /usr/ports/mail/roundcube.

Решается редактированием файла /usr/ports/devel/pecl-intl/Makefile:

# New ports collection makefile for:    pecl-intl
# Date created:                 June 28, 2008
# Whom:                         Wen Heping <[email protected]>
#
# $FreeBSD: ports/devel/pecl-intl/Makefile,v 1.13 2011/11/12 17:07:54 miwi Exp $
#

PORTNAME=       intl
PORTVERSION=    1.1.2
PORTREVISION=   3
CATEGORIES=     devel pear
MASTER_SITES=   http://pecl.php.net/get/
PKGNAMEPREFIX=  pecl-
EXTRACT_SUFX=   .tgz
DIST_SUBDIR=    PECL

MAINTAINER=     [email protected]
COMMENT=        A PECL extension to support Internationalization(ICU)

LIB_DEPENDS=    icui18n.48:${PORTSDIR}/devel/icu

LICENSE=        PHP301

USE_PHP=        yes
USE_PHPEXT=     yes
IGNORE_WITH_PHP=4 52

.include <bsd.port.mk>

и в самом конце, вместо:

IGNORE_WITH_PHP=4 52

пишем:

IGNORE_WITH_PHP=4

Теперь можно запускать установку RoundCube заново.