Обновление pcre с 7.8 до 8.13 на CentOS 6

Материал из Wiki - Iphoster - the best ever hosting and support. 2005 - 2024
Перейти к:навигация, поиск


Обновление pcre с 7.8 до 8.13 на CentOS 6

Что имеем:

# pcretest -C
PCRE version 7.8 2008-09-05
Compiled with
 UTF-8 support
 Unicode properties support
 Newline sequence is LF
 \R matches all Unicode newlines
 Internal link size = 2
 POSIX malloc threshold = 10
 Default match limit = 10000000
 Default recursion depth limit = 10000000
 Match recursion uses stack
# php -i | grep PCRE
PCRE (Perl Compatible Regular Expressions) Support => enabled
PCRE Library Version => 7.8 2008-09-05


Удаляем pcre игнорируя все зависимости:

# rpm -ev --nodeps pcre

Добавляем репозиторий для CentOS 6 - 32 bit:

# vi /etc/yum.repos.d/utter-ramblings.repo
[utter-ramblings]
name=Utter Ramblings
baseurl=http://www.jasonlitka.com/media/EL5/i386/
gpgkey=http://yum.jasonlitka.com/RPM-GPG-KEY-jlitka
enabled=1
gpgcheck=1


Делаем установку:

# yum --disablerepo=* --enablerepo=utter-ramblings install pcre pcre-devel


Что получаем на выходе:

# pcretest -C
PCRE version 8.13 2011-08-16 
Compiled with
 UTF-8 support
 Unicode properties support
 Newline sequence is LF
 \R matches all Unicode newlines
 Internal link size = 2
 POSIX malloc threshold = 10
 Default match limit = 10000000
 Default recursion depth limit = 10000000
 Match recursion uses stack

# php -i | grep PCRE
PCRE (Perl Compatible Regular Expressions) Support => enabled
PCRE Library Version => 8.13 2011-08-16
 # /etc/init.d/httpd restart