Сервер:
Я пробовал несколько подходов установки intl
Расширение PHP.
Первый подход прямо вперед.
В WHM я ввожу PHP PECL, и при попытке установить intl
:
downloading intl-3.0.0.tgz ...
Starting to download intl-3.0.0.tgz (248,200 bytes)
....................................................done: 248,200 bytes
150 source files, building
running: phpize
Configuring for:
PHP Api Version: 20121113
Zend Module Api No: 20121212
Zend Extension Api No: 220121212
Specify where ICU libraries and headers can be found [DEFAULT] : building in /root/tmp/pear/pear-build-rootnuhZM5/intl-3.0.0
running: /root/tmp/pear/intl/configure --with-php-config=/usr/local/bin/php-config --with-icu-dir=DEFAULT
checking for egrep... grep -E
checking for a sed that does not truncate output... /bin/sed
checking for cc... cc
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 cc accepts -g... yes
checking for cc option to accept ANSI C... 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... 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/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/extensions/no-debug-non-zts-20121212
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... invalid
configure: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers.
checking for gawk... gawk
checking whether to enable internationalization support... yes, shared
checking for icu-config... /usr/bin/icu-config
checking for location of ICU headers and libraries... /usr
checking for ICU 4.0 or greater... found 3.6
configure: error: ICU version 4.0 or later is required
ERROR: `/root/tmp/pear/intl/configure --with-php-config=/usr/local/bin/php-config --with-icu-dir=DEFAULT' failed
The intl.so object is not in /usr/local/lib/php/extensions/no-debug-non-zts-20121212
Tidying /usr/local/lib/php.ini...
No changes
Tidying /usr/local/cpanel/3rdparty/php/54/etc/php.ini...
No changes
Пытался найти это intl.so object
вручную онлайн, не повезло.
Боюсь, я могу получить несовместимую версию и все испортить. Тем не менее, это было бы плохим решением.
Второй подход — запуск библиотеки pecl через ssh
:
root@ns1 [/]# /usr/bin/pecl install intl
и ответ:
downloading intl-3.0.0.tgz ...
Starting to download intl-3.0.0.tgz (248,200 bytes)
....................................................done: 248,200 bytes
could not extract the package.xml file from "/root/tmp/pear/cache/intl-3.0.0.tgz"Download of "pecl/intl" succeeded, but it is not a valid package archive
Error: cannot download "pecl/intl"Download failed
install failed
Исследуя онлайн, я попытался обновить icu
с помощью yum
,
Находит php53-intl.i386
пакет и говорит, что он уже установлен.
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: centos.spd.co.il
* extras: centos.spd.co.il
* updates: centos.spd.co.il
Excluding Packages in global exclude list
Finished
Installed Packages
php53-intl.i386
PHP был исключен из конфигурации, и мне пришлось удалить его из списка. Интересно почему, кроме того, когда я yum list php
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: centos.spd.co.il
* extras: centos.spd.co.il
* updates: centos.spd.co.il
Excluding Packages in global exclude list
Finished
Available Packages
php.i386 5.1.6-45.el5_11 updates
А также php -v
говорит PHP 5.5.31 (cli) (built: Jan 14 2016 18:46:05)
Это также может быть полезно, rpm -qa | grep php
ответ:
cpanel-php54-Horde-Auth-2.1.8-4.cp1152
cpanel-php54-Horde-Compress-2.1.2-5.cp1152
cpanel-php54-Horde-Argv-2.0.11-4.cp1152
cpanel-php54-Horde-Secret-2.0.4-4.cp1152
cpanel-php54-Horde-Service-Twitter-2.1.1-4.cp1152
cpanel-php54-SOAP-0.13.0-4.cp1152
cpanel-php54-Date-Holidays-Denmark-0.1.3-4.cp1152
cpanel-php54-Horde-CssMinify-1.0.2-4.cp1152
cpanel-php54-Cache-1.5.6-4.cp1152
cpanel-php54-HTML-Template-IT-1.3.0-4.cp1152
cpanel-php54-Horde-Prefs-2.7.3-4.cp1152
cpanel-php54-Horde-Itip-2.1.0-4.cp1152
cpanel-php54-Horde-Serialize-2.0.3-4.cp1152
cpanel-php54-Horde-Css-Parser-1.0.6-4.cp1152
cpanel-php54-Horde-Support-2.1.3-4.cp1152
cpanel-php54-Horde-Constraint-2.0.2-4.cp1152
cpanel-php54-Horde-Service-Facebook-2.0.5-4.cp1152
cpanel-php54-Date-Holidays-Brazil-0.1.2-4.cp1152
cpanel-php54-Date-Holidays-Venezuela-0.1.1-4.cp1152
cpanel-php54-HTTP-1.4.1-4.cp1152
cpanel-php54-Text-Figlet-1.0.2-4.cp1152
cpanel-php54-Horde-Smtp-1.9.1-4.cp1152
cpanel-php54-Horde-ListHeaders-1.2.2-4.cp1152
cpanel-php54-Horde-Injector-2.0.4-4.cp1152
cpanel-php54-Horde-Image-2.3.1-4.cp1152
cpanel-php54-XML-Parser-1.3.4-4.cp1152
cpanel-php54-Horde-Kolab-Format-2.0.4-4.cp1152
cpanel-php54-Date-Holidays-Spain-0.1.3-4.cp1152
cpanel-php54-Date-Holidays-Iceland-0.1.2-4.cp1152
cpanel-php54-Console-Table-1.1.5-4.cp1152
cpanel-php54-MDB2-2.4.1-4.cp1152
cpanel-php54-trean-1.1.1-5.cp1152
cpanel-php54-zendopt-6.0.0-1.cp1142
cpanel-php54-Horde-Translation-2.2.0-4.cp1152
cpanel-php54-Horde-Stream-Filter-2.0.3-4.cp1152
cpanel-php54-Horde-Routes-2.0.2-4.cp1152
cpanel-php54-Horde-Oauth-2.0.1-4.cp1152
cpanel-php54-Mail-1.2.0-4.cp1152
cpanel-php54-Date-Holidays-Ireland-0.1.3-4.cp1152
cpanel-php54-Date-Holidays-Croatia-0.1.1-4.cp1152
cpanel-php54-Horde-Mail-2.6.0-4.cp1152
cpanel-php54-nag-4.2.4-7.cp1152
cpanel-php54-Horde-Browser-2.0.9-4.cp1152
cpanel-php54-Horde-Cache-2.5.0-4.cp1152
cpanel-php54-Horde-View-2.0.5-4.cp1152
cpanel-php54-Horde-Log-2.1.2-4.cp1152
cpanel-php54-Horde-Feed-2.0.1-4.cp1152
cpanel-php54-Date-Holidays-Finland-0.1.2-4.cp1152
cpanel-php54-Date-Holidays-USA-0.1.1-4.cp1152
cpanel-php54-Horde-Pack-1.0.5-4.cp1152
cpanel-php54-Horde-Core-2.20.2-4.cp1152
cpanel-php54-Horde-Crypt-2.5.3-4.cp1152
cpanel-php54-Horde-Socket-Client-2.0.0-5.cp1152
cpanel-php54-Horde-Autoloader-2.1.1-4.cp1152
cpanel-php54-Horde-Xml-Element-2.0.3-4.cp1152
cpanel-php54-Horde-Perms-2.1.4-4.cp1152
cpanel-php54-Horde-Queue-1.1.2-4.cp1152
cpanel-php54-Horde-Kolab-Session-2.0.1-4.cp1152
cpanel-php54-Date-Holidays-Japan-0.1.2-4.cp1152
cpanel-php54-Date-Holidays-Italy-0.1.1-4.cp1152
cpanel-php54-Horde-Idna-1.0.3-4.cp1152
cpanel-php54-PEAR-Command-Packaging-0.3.0-4.cp1152
cpanel-php54-Horde-Dav-1.1.2-4.cp1152
cpanel-php54-Horde-Yaml-2.0.2-4.cp1152
php53-common-5.3.3-26.el5_11
cpanel-php54-Horde-Exception-2.0.5-4.cp1152
cpanel-php54-Net-Socket-1.0.14-4.cp1152
cpanel-php54-Horde-SpellChecker-2.1.2-4.cp1152
cpanel-php54-Horde-Cli-2.0.6-4.cp1152
cpanel-php54-Net-URL-1.0.15-4.cp1152
cpanel-php54-Net-DNS2-1.4.1-4.cp1152
cpanel-php54-Date-Holidays-Serbia-0.1.0-4.cp1152
cpanel-php54-Date-Holidays-Germany-0.1.2-4.cp1152
cpanel-php54-Console-Color-1.0.3-4.cp1152
cpanel-php54-Horde-Icalendar-2.0.11-4.cp1152
cpanel-php54-turba-4.2.6-6.cp1152
cpanel-php54-Horde-Imap-Client-2.28.1-4.cp1152
cpanel-php54-Horde-Group-2.0.5-4.cp1152
cpanel-php54-Horde-Vfs-2.2.2-4.cp1152
cpanel-php54-Horde-Text-Flowed-2.0.2-4.cp1152
cpanel-php54-Horde-Xml-Wbxml-2.0.1-4.cp1152
cpanel-php54-Horde-History-2.3.4-4.cp1152
cpanel-php54-Horde-SessionHandler-2.2.4-4.cp1152
cpanel-php54-horde-lz4-1.0.8-2.cp1152
cpanel-php54-Horde-Pdf-2.0.3-4.cp1152
cpanel-php54-Services-Weather-1.4.7-4.cp1152
cpanel-php54-Date-Holidays-Romania-0.1.2-4.cp1152
cpanel-php54-Date-Holidays-Slovenia-0.1.2-4.cp1152
cpanel-php54-Date-Holidays-PHPdotNet-0.1.2-4.cp1152
cpanel-php54-Horde-JavascriptMinify-1.1.2-4.cp1152
cpanel-php54-Net-FTP-1.3.7-4.cp1152
cpanel-php54-XML-SVG-1.1.0-4.cp1152
cpanel-php54-horde-5.2.5-13.cp1152
cpanel-php54-Horde-Timezone-1.0.9-4.cp1152
cpanel-php54-webmail-5.2.6-6.cp1152
cpanel-php54-Horde-Token-2.0.6-4.cp1152
cpanel-php54-Date-1.4.7-4.cp1152
cpanel-php54-Horde-Share-2.0.7-4.cp1152
cpanel-php54-Horde-HashTable-1.2.3-4.cp1152
cpanel-php54-Date-Holidays-Australia-0.2.1-4.cp1152
cpanel-php54-Date-Holidays-SanMarino-0.1.1-4.cp1152
cpanel-php54-Log-1.12.7-4.cp1152
cpanel-php54-File-Fstab-2.0.3-4.cp1152
cpanel-php54-Horde-Rpc-2.1.4-4.cp1152
cpanel-php54-Horde-Mail-Autoconfig-1.0.2-4.cp1152
cpanel-php54-5.4.31-4.cp1150
cpanel-php54-Horde-Role-1.0.1-5.cp1152
cpanel-php54-Horde-Notification-2.0.2-4.cp1152
cpanel-php54-Horde-Lock-2.1.1-4.cp1152
cpanel-php54-XML-Serializer-0.20.2-4.cp1152
cpanel-php54-Horde-Imsp-2.0.5-4.cp1152
cpanel-php54-Date-Holidays-Norway-0.1.2-4.cp1152
cpanel-php54-Date-Holidays-UNO-0.1.3-4.cp1152
cpanel-php54-ingo-3.2.5-6.cp1152
cpanel-php54-Horde-Text-Filter-2.3.1-4.cp1152
cpanel-php54-Horde-Compress-Fast-1.1.0-4.cp1152
cpanel-php54-Horde-Stream-Wrapper-2.1.2-4.cp1152
cpanel-php54-Horde-Template-2.0.2-4.cp1152
cpanel-php54-Horde-ElasticSearch-1.0.2-4.cp1152
cpanel-php54-Date-Holidays-Netherlands-0.1.3-4.cp1152
cpanel-php54-Date-Holidays-Turkey-0.1.1-4.cp1152
cpanel-php54-Auth-SASL-1.0.6-4.cp1152
cpanel-php54-Horde-Mime-Viewer-2.1.0-4.cp1152
cpanel-php54-kronolith-4.2.7-7.cp1152
php53-intl-5.3.3-26.el5_11
cpanel-php54-Horde-Nls-2.0.5-4.cp1152
cpanel-php54-Horde-Alarm-2.2.4-4.cp1152
cpanel-php54-Horde-Http-2.1.5-4.cp1152
cpanel-php54-Horde-Controller-2.0.3-4.cp1152
cpanel-php54-Net-IMAP-1.1.2-4.cp1152
cpanel-php54-Date-Holidays-Portugal-0.1.0-4.cp1152
cpanel-php54-Date-Holidays-Sweden-0.1.3-4.cp1152
cpanel-php54-Net-Sieve-1.3.2-4.cp1152
cpanel-php54-File-Find-1.3.2-4.cp1152
cpanel-php54-Horde-Form-2.0.9-4.cp1152
cpanel-php54-imp-6.2.8-6.cp1152
cpanel-php54-Horde-Util-2.5.5-4.cp1152
cpanel-php54-Horde-LoginTasks-2.0.4-4.cp1152
cpanel-php54-Horde-Editor-2.0.4-4.cp1152
cpanel-php54-Horde-Date-Parser-2.0.4-4.cp1152
cpanel-php54-Date-Holidays-0.21.8-4.cp1152
cpanel-php54-Mail-Mime-1.8.3-4.cp1152
cpanel-php54-Date-Holidays-Austria-0.1.5-4.cp1152
cpanel-php54-Date-Holidays-Russia-0.1.0-4.cp1152
cpanel-php54-DB-1.7.14-4.cp1152
cpanel-php54-Net-UserAgent-Detect-2.5.2-4.cp1152
cpanel-php54-Horde-Mime-2.9.1-4.cp1152
cpanel-php54-mnemo-4.2.6-4.cp1152
cpanel-php54-ioncube-4.5.2-1.cp1142
cpanel-php54-Horde-Url-2.2.4-4.cp1152
cpanel-php54-Horde-Stream-1.6.2-4.cp1152
cpanel-php54-Horde-Text-Diff-2.1.1-4.cp1152
cpanel-php54-Horde-Crypt-Blowfish-1.0.3-4.cp1152
cpanel-php54-HTTP-Request-1.4.4-4.cp1152
cpanel-php54-Date-Holidays-Czech-0.1.0-4.cp1152
cpanel-php54-HTTP-WebDAV-Server-1.0.0RC8-4.cp1152
cpanel-php54-XML-RPC-1.5.5-4.cp1152
cpanel-php54-Horde-Data-2.1.2-4.cp1152
cpanel-php54-timeobjects-2.1.0-4.cp1152
cpanel-php54-sourceguardian-8.3-1.cp1142
cpanel-php54-Horde-Date-2.1.0-4.cp1152
cpanel-php54-Horde-Tree-2.0.4-4.cp1152
cpanel-php54-Horde-Db-2.2.3-4.cp1152
cpanel-php54-Horde-Rdo-2.0.4-4.cp1152
cpanel-php54-Net-SMTP-1.6.2-4.cp1152
cpanel-php54-Date-Holidays-EnglandWales-0.1.5-4.cp1152
cpanel-php54-Date-Holidays-Ukraine-0.1.2-4.cp1152
cpanel-php54-File-1.4.1-4.cp1152
cpanel-php54-content-2.0.4-5.cp1152
cpanel-php54-Horde-SyncMl-2.0.3-4.cp1152
Я потерян здесь.
Поскольку вы уже используете EasyApache, вы можете установить расширение Intl в EasyApache (не через область установки PHP-расширения WHM), что я бы порекомендовал. EasyApache очень чувствителен к внешним изменениям / изменениям из-за характера скрипта 🙂
WHM 54.0 build 12
Easy Apache v3.32.10
Если у вас возникнут какие-либо ошибки во время процесса сборки, я настоятельно рекомендую вам обратиться в службу поддержки cPanel или к вашему поставщику серверов, если у вас есть техническая помощь. Большинство всех плагинов, которые вам нужны для PHP, устанавливаются через EasyApache, и это самый безопасный способ их установки.
Если вы уже пробовали это сделать, используйте новый «Рекомендованный профиль cPanel» и обязательно проверяйте только минимально необходимые параметры, так как некоторые дополнения могут быть несовместимы с другими в некоторых случаях.
Запуск с нуля, как правило, работает для меня, когда у меня возникают проблемы с EasyApache.
Других решений пока нет …