Autor Tópico: Não posso instalar o PHP 5.3.2 por causa de erro da libxml2  (Lida 4154 vezes)

Offline hebersonsette

  • Usuário Ubuntu
  • *
  • Mensagens: 2
    • Ver perfil
Não posso instalar o PHP 5.3.2 por causa de erro da libxml2
« Online: 09 de MAR?O de 2010, 17:00 »
Olá a Todos!

Acabei de Instalar o Ubuntu 9.10 Server 32 Bit com o  Apache 2.2.14.

Agora estou tentando instalar o PHP 5.3.2, mas quando tento instalar como root a seguinte mensagem aparece e a instalação do PHP sai sem terminar.

Configuring extensions
checking size of long... (cached) 4
checking size of int... (cached) 4
checking for int32_t... yes
checking for uint32_t... yes
checking for sys/types.h... (cached) yes checking for inttypes.h... (cached) yes checking for stdint.h... (cached) yes checking for string.h... (cached) yes checking for stdlib.h... (cached) yes checking for strtoll... yes checking for atoll... yes checking for strftime... (cached) yes checking which regex library to use... php checking whether to enable LIBXML support... yes checking libxml2 install dir... no checking for xml2-config path...
configure: error: xml2-config not found. Please check your libxml2 installation.

Mas se eu tento instalar a libxml2 pelo aptt-get o UBUNTU me informa:

heberson@rsttiubtu:/tmp/php-5.3.2$ sudo apt-get install libxml2 Reading package lists... Done Building dependency tree Reading state information... Done
libxml2 is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

Alguém sabe como resolver isto para que eu possa instalar o PHP 5.3.2?

Qualquer ajuda será apreciada.
 

Offline web2000

  • Usuário Ubuntu
  • *
  • Mensagens: 360
  • Rafael A. de Almeida
    • Ver perfil
    • Meu canal no YouTube
Re: Não posso instalar o PHP 5.3.2 por causa de erro da libxml2
« Resposta #1 Online: 10 de MAR?O de 2010, 14:23 »
libxml2 is already the newest version.

Tradução para português: "libxml2 já é a mais nova versão"

O pacote libxml2 já está instalado

Offline jadson

  • Usuário Ubuntu
  • *
  • Mensagens: 4
    • Ver perfil
Re: Não posso instalar o PHP 5.3.2 por causa de erro da libxml2
« Resposta #2 Online: 17 de Agosto de 2011, 22:48 »


Tenta atualizar a biblioteca :   sudo apt-get install libxml2
ou a verão de desenvolvimento : sudo apt-get install libxml2-dev


Se não conseguir, baixe o arquivo libxml2-2.x.x.tar.gz  manualmente de http://xmlsoft.org/sources/libxml2-2.7.7.tar.gz

Descompacte e executar os comandos abaixo para compilar e instalar:

cd libxml2-2.x.x
sudo ./configure
sudo make
sudo make install

Depois disso deve ser possível instalar o PHP normalmente.


Offline clcampos

  • Administrador
  • Usuário Ubuntu
  • *****
  • Mensagens: 10.790
  • .:: User Linux #439596 ::.
    • Ver perfil
Re: Não posso instalar o PHP 5.3.2 por causa de erro da libxml2
« Resposta #3 Online: 17 de Agosto de 2011, 22:57 »
Este tópico tem mais de 1 ano sem atividade. Por favor evite levantar tópicos antigos, inclusive com certeza foi avisado sobre isso antes de postar a mensagem.
Cristiano/Timóteo - MG
.: Como Fazer Perguntas de Forma Inteligente :.                
Com dúvida? pesquise!