php-devel falhou na instalação red-hat 6

3

Estou tentando instalar o driver mongodb com pecl e, para isso, preciso de phpize (php-devel) . Alguém sabe como posso resolver esse problema ou há outra maneira de instalar o php-mongodb driver ?

Eu tento como sugerido: usando --skip-broken para contornar o problema e executando: rpm -Va --nofiles --nodigest Não funcionou também

sudo yum install php-devel
Loaded plugins: rhnplugin
This system is receiving updates from RHN Classic or RHN Satellite.
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package php-devel.x86_64 0:5.3.3-22.el6 will be installed
--> Processing Dependency: php(x86-64) = 5.3.3-22.el6 for package: php-devel-5.3.3-22.el6.x86_64
--> Finished Dependency Resolution
Error: Package: php-devel-5.3.3-22.el6.x86_64 (shared-rhel-x86_64-server-optional-6)
           Requires: php(x86-64) = 5.3.3-22.el6
           Installed: php-5.3.3-27.el6_5.x86_64 (@rhel-x86_64-server-6)
               php(x86-64) = 5.3.3-27.el6_5
           Available: php-5.3.2-6.el6.x86_64 (cust_drv-rhel-x86_64-server-6-default-nonprod)
               php(x86-64) = 5.3.2-6.el6
           Available: php-5.3.2-6.el6_0.1.x86_64 (cust_drv-rhel-x86_64-server-6-default-nonprod)
               php(x86-64) = 5.3.2-6.el6_0.1
           Available: php-5.3.3-3.el6.x86_64 (cust_drv-rhel-x86_64-server-6-default-nonprod)
               php(x86-64) = 5.3.3-3.el6
           Available: php-5.3.3-3.el6_1.3.x86_64 (cust_drv-rhel-x86_64-server-6-default-nonprod)
               php(x86-64) = 5.3.3-3.el6_1.3
           Available: php-5.3.3-3.el6_2.5.x86_64 (cust_drv-rhel-x86_64-server-6-default-nonprod)
               php(x86-64) = 5.3.3-3.el6_2.5
           Available: php-5.3.3-3.el6_2.6.x86_64 (cust_drv-rhel-x86_64-server-6-default-nonprod)
               php(x86-64) = 5.3.3-3.el6_2.6
           Available: php-5.3.3-3.el6_2.8.x86_64 (cust_drv-rhel-x86_64-server-6-default-nonprod)
               php(x86-64) = 5.3.3-3.el6_2.8
           Available: php-5.3.3-14.el6_3.x86_64 (cust_drv-rhel-x86_64-server-6-default-nonprod)
               php(x86-64) = 5.3.3-14.el6_3
           Available: php-5.3.3-22.el6.x86_64 (cust_drv-rhel-x86_64-server-6-default-nonprod)
               php(x86-64) = 5.3.3-22.el6
           Available: php-5.3.3-23.el6_4.x86_64 (cust_drv-rhel-x86_64-server-6-default-nonprod)
               php(x86-64) = 5.3.3-23.el6_4
           Available: php-5.3.3-26.el6.x86_64 (cust_drv-rhel-x86_64-server-6-default-nonprod)
               php(x86-64) = 5.3.3-26.el6
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest

Consegui instalar o php-devel fazendo o download do rpm e instalando-o.

O resultado da lista yum instalada | grep php:

php.x86_64                      5.3.3-27.el6_5     @cust_drv-rhel-x86_64-server-6-default-nonprod
php-cli.x86_64                  5.3.3-27.el6_5     @rhel-x86_64-server-6        
php-common.x86_64               5.3.3-27.el6_5     @rhel-x86_64-server-6        
php-devel.x86_64                5.3.3-27.el6_5     installed                    
php-gd.x86_64                   5.3.3-27.el6_5     @rhel-x86_64-server-6        
php-mbstring.x86_64             5.3.3-27.el6_5     @rhel-x86_64-server-optional-6
php-mcrypt.x86_64               5.3.3-1.el6        @epel-rhel-x86_64-server-6   
php-mysql.x86_64                5.3.3-27.el6_5     @rhel-x86_64-server-6        
php-pdo.x86_64                  5.3.3-27.el6_5     @rhel-x86_64-server-6        
php-pear.noarch                 1:1.9.4-4.el6      @cust_drv-rhel-x86_64-server-6-default-nonprod
php-xml.x86_64                  5.3.3-27.el6_5     @rhel-x86_64-server-6

resultado do pecong install mongo

downloading mongo-1.4.5.tgz ...
Starting to download mongo-1.4.5.tgz (141,417 bytes)
..............................done: 141,417 bytes
84 source files, building
running: phpize
Configuring for:
PHP Api Version:         20090626
Zend Module Api No:      20090626
Zend Extension Api No:   220090626
shtool at '/var/tmp/mongo/build/shtool' does not exist or is not executable.
Make sure that the file exists and is executable and then rerun this script.

ERROR: 'phpize' failed

resultado do phpize :

 phpize
Cannot find config.m4. 
Make sure that you run '/usr/bin/phpize' in the top level source directory of the module
    
por user2804112 13.02.2014 / 14:12

1 resposta

1

Seu problema está aqui:

Error: Package: php-devel-5.3.3-22.el6.x86_64 (shared-rhel-x86_64-server-optional-6)
           Requires: php(x86-64) = 5.3.3-22.el6
           Installed: php-5.3.3-27.el6_5.x86_64 (@rhel-x86_64-server-6)

Sua versão do php é maior que o php-devel disponível. Ou diminua o php para 5.3.3-22 ou encontre um canal / repositório que ofereça a versão mais recente do php-devel.

    
por 15.02.2014 / 14:19