Não é possível instalar o Wordpress na instância do Amazon EC2 devido à falta de php-mbstring

1

Eu criei uma nova instância no EC2 da Amazon e estou tentando em wordpress e está falhando devido a php-mbstring :

# yum install wordpress
Loaded plugins: amazon-id, rhui-lb
Resolving Dependencies
--> Running transaction check
---> Package wordpress.noarch 0:3.9.1-1.el7 will be installed
--> Processing Dependency: php-simplepie >= 1.3.1 for package: wordpress-3.9.1-1.el7.noarch
--> Processing Dependency: php-mbstring for package: wordpress-3.9.1-1.el7.noarch
--> Processing Dependency: php-gd for package: wordpress-3.9.1-1.el7.noarch
--> Processing Dependency: php-enchant for package: wordpress-3.9.1-1.el7.noarch
--> Processing Dependency: php-PHPMailer for package: wordpress-3.9.1-1.el7.noarch
--> Running transaction check
---> Package php-PHPMailer.noarch 0:5.2.6-1.el7 will be installed
--> Processing Dependency: php-mbstring >= 5.1.0 for package: php-PHPMailer-5.2.6-1.el7.noarch
---> Package php-gd.x86_64 0:5.4.16-21.el7 will be installed
--> Processing Dependency: libpng15.so.15(PNG15_0)(64bit) for package: php-gd-5.4.16-21.el7.x86_64
--> Processing Dependency: libt1.so.5()(64bit) for package: php-gd-5.4.16-21.el7.x86_64
--> Processing Dependency: libpng15.so.15()(64bit) for package: php-gd-5.4.16-21.el7.x86_64
--> Processing Dependency: libXpm.so.4()(64bit) for package: php-gd-5.4.16-21.el7.x86_64
--> Processing Dependency: libX11.so.6()(64bit) for package: php-gd-5.4.16-21.el7.x86_64
---> Package php-simplepie.noarch 0:1.3.1-4.el7 will be installed
--> Processing Dependency: php-mbstring for package: php-simplepie-1.3.1-4.el7.noarch
--> Processing Dependency: php-IDNA_Convert for package: php-simplepie-1.3.1-4.el7.noarch
---> Package wordpress.noarch 0:3.9.1-1.el7 will be installed
--> Processing Dependency: php-mbstring for package: wordpress-3.9.1-1.el7.noarch
--> Processing Dependency: php-enchant for package: wordpress-3.9.1-1.el7.noarch
--> Running transaction check
---> Package libX11.x86_64 0:1.6.0-2.1.el7 will be installed
--> Processing Dependency: libX11-common = 1.6.0-2.1.el7 for package: libX11-1.6.0-2.1.el7.x86_64
--> Processing Dependency: libxcb.so.1()(64bit) for package: libX11-1.6.0-2.1.el7.x86_64
---> Package libXpm.x86_64 0:3.5.10-5.1.el7 will be installed
---> Package libpng.x86_64 2:1.5.13-5.el7 will be installed
---> Package php-IDNA_Convert.noarch 0:0.8.0-2.el7 will be installed
--> Processing Dependency: php-mbstring for package: php-IDNA_Convert-0.8.0-2.el7.noarch
---> Package php-PHPMailer.noarch 0:5.2.6-1.el7 will be installed
--> Processing Dependency: php-mbstring >= 5.1.0 for package: php-PHPMailer-5.2.6-1.el7.noarch
---> Package php-simplepie.noarch 0:1.3.1-4.el7 will be installed
--> Processing Dependency: php-mbstring for package: php-simplepie-1.3.1-4.el7.noarch
---> Package t1lib.x86_64 0:5.1.2-14.el7 will be installed
---> Package wordpress.noarch 0:3.9.1-1.el7 will be installed
--> Processing Dependency: php-mbstring for package: wordpress-3.9.1-1.el7.noarch
--> Processing Dependency: php-enchant for package: wordpress-3.9.1-1.el7.noarch
--> Running transaction check
---> Package libX11-common.noarch 0:1.6.0-2.1.el7 will be installed
---> Package libxcb.x86_64 0:1.9-5.el7 will be installed
--> Processing Dependency: libXau.so.6()(64bit) for package: libxcb-1.9-5.el7.x86_64
---> Package php-IDNA_Convert.noarch 0:0.8.0-2.el7 will be installed
--> Processing Dependency: php-mbstring for package: php-IDNA_Convert-0.8.0-2.el7.noarch
---> Package php-PHPMailer.noarch 0:5.2.6-1.el7 will be installed
--> Processing Dependency: php-mbstring >= 5.1.0 for package: php-PHPMailer-5.2.6-1.el7.noarch
---> Package php-simplepie.noarch 0:1.3.1-4.el7 will be installed
--> Processing Dependency: php-mbstring for package: php-simplepie-1.3.1-4.el7.noarch
---> Package wordpress.noarch 0:3.9.1-1.el7 will be installed
--> Processing Dependency: php-mbstring for package: wordpress-3.9.1-1.el7.noarch
--> Processing Dependency: php-enchant for package: wordpress-3.9.1-1.el7.noarch
--> Running transaction check
---> Package libXau.x86_64 0:1.0.8-2.1.el7 will be installed
---> Package php-IDNA_Convert.noarch 0:0.8.0-2.el7 will be installed
--> Processing Dependency: php-mbstring for package: php-IDNA_Convert-0.8.0-2.el7.noarch
---> Package php-PHPMailer.noarch 0:5.2.6-1.el7 will be installed
--> Processing Dependency: php-mbstring >= 5.1.0 for package: php-PHPMailer-5.2.6-1.el7.noarch
---> Package php-simplepie.noarch 0:1.3.1-4.el7 will be installed
--> Processing Dependency: php-mbstring for package: php-simplepie-1.3.1-4.el7.noarch
---> Package wordpress.noarch 0:3.9.1-1.el7 will be installed
--> Processing Dependency: php-mbstring for package: wordpress-3.9.1-1.el7.noarch
--> Processing Dependency: php-enchant for package: wordpress-3.9.1-1.el7.noarch
--> Finished Dependency Resolution
Error: Package: php-PHPMailer-5.2.6-1.el7.noarch (epel)
           Requires: php-mbstring >= 5.1.0
Error: Package: php-IDNA_Convert-0.8.0-2.el7.noarch (epel)
           Requires: php-mbstring
Error: Package: wordpress-3.9.1-1.el7.noarch (epel)
           Requires: php-mbstring
Error: Package: php-simplepie-1.3.1-4.el7.noarch (epel)
           Requires: php-mbstring
Error: Package: wordpress-3.9.1-1.el7.noarch (epel)
           Requires: php-enchant
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest
# 

Estou usando o RHEL7:

# cat /etc/redhat-release 
Red Hat Enterprise Linux Server release 7.0 (Maipo)
# yum repolist
Loaded plugins: amazon-id, rhui-lb
repo id                                                                                                     repo name                                                                                                                   status
epel/x86_64                                                                                                 Extra Packages for Enterprise Linux 7 - x86_64                                                                              4,325
rhui-REGION-client-config-server-7/x86_64                                                                   Red Hat Update Infrastructure 2.0 Client Configuration Server 7                                                                 1
rhui-REGION-rhel-server-releases/7Server/x86_64                                                             Red Hat Enterprise Linux Server 7 (RPMs)                                                                                    4,447
repolist: 8,773
# 

um tempo atrás e outro ambiente eu tive que executar o seguinte comando primeiro, a fim de obter acesso a php-mbstring :

rhn-channel --add --channel=rhel-x86_64-server-optional-6

Como você faz isso no Amazon EC2?:

    
por alexus 11.06.2014 / 21:03

2 respostas

2

Tanto quanto eu posso dizer do manifesto do pacote , a compilação do PHP incluída no RHEL 7 é mínima e muitas extensões estão faltando. Eles não parecem estar em nenhum outro canal também.

Muitas pessoas usam o repositório remi para compilações atualizadas e completas do PHP, e você pode querer fazer isso como bem. Repos estão atualmente disponíveis para o PHP 5.4 e 5.5.

    
por 11.06.2014 / 21:47
1

O php-mbstrings está disponível no RHEL7 através do canal rhel-x86_64-server-optional-7.

rhn-channel -c rhel-x86_64-server-optional-7 -a; yum info php-mbstrings

yum info php-mbstring
Loaded plugins: rhnplugin
This system is receiving updates from RHN Classic or Red Hat Satellite.
epel/x86_64/metalink                                                                                                                                                                    | 4.3 kB  00:00:00
Installed Packages
Name        : php-mbstring
Arch        : x86_64
Version     : 5.4.16
Release     : 21.el7
Size        : 1.3 M
Repo        : installed
From repo   : rhel-x86_64-server-optional-7
Summary     : A module for PHP applications which need multi-byte string handling
URL         : http://www.php.net/
License     : PHP and LGPLv2 and BSD and OpenLDAP
Description : The php-mbstring package contains a dynamic shared object that will add
            : support for multi-byte string handling to PHP.
    
por 30.07.2014 / 07:32