Como posso construir Dependências PHP5 enquanto tenho o MariaDB instalado?

3

Estou tentando construir dependências do php5 no Ubuntu 14.04.2 LTS. Infelizmente recebo a seguinte mensagem de erro.

% sudo apt-get build-dep php5
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages have unmet dependencies:
 apache2-dev : Depends: libaprutil1-dev but it is not going to be installed
 mysql-server : Depends: mysql-server-5.5 but it is not going to be installed
E: Build-dependencies for php5 could not be satisfied.

Depois de usar o resolvedor de problemas, eu posso ver que o apt-get está tentando encontrar uma maneira de ter os pacotes mariadb instalados ao invés dos pacotes mysql.

% sudo apt-get -o Debug::pkgProblemResolver=yes build-dep php5
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Starting pkgProblemResolver with broken count: 5
Starting 2 pkgProblemResolver with broken count: 5
Investigating (0) mariadb-client-5.5 [ amd64 ] < 5.5.44-1ubuntu0.14.04.1 > ( universe/database )
Broken mariadb-client-5.5:amd64 Conflicts on mysql-client-core-5.5 [ amd64 ] < none -> 5.5.44-0ubuntu0.14.04.1 > ( database )
  Considering mysql-client-core-5.5:amd64 -2 as a solution to mariadb-client-5.5:amd64 0
  Added mysql-client-core-5.5:amd64 to the remove list
  Conflicts//Breaks against version 5.5.35+dfsg-1ubuntu1 for mysql-client-core-5.5 but that is not InstVer, ignoring
Broken mariadb-client-5.5:amd64 Breaks on mysql-client [ amd64 ] < none -> 5.5.44-0ubuntu0.14.04.1 > ( database )
  Conflicts//Breaks against version 5.5.44-0ubuntu0.14.04.1 for mysql-client but that is not InstVer, ignoring
  Conflicts//Breaks against version 5.5.35+dfsg-1ubuntu1 for mysql-client but that is not InstVer, ignoring
  Considering mysql-client-5.5:amd64 -3 as a solution to mariadb-client-5.5:amd64 0
  Added mysql-client-5.5:amd64 to the remove list
  Conflicts//Breaks against version 5.5.35+dfsg-1ubuntu1 for mysql-client-5.5 but that is not InstVer, ignoring

Isso acontece por mais de 100 linhas, texto completo aqui: link

Como posso construir dependências para o PHP5 no Ubuntu 14.04 enquanto uso o mariadb?

    
por zmpeg 28.07.2015 / 18:17

1 resposta

0

Os pacotes PHP devem ser compilados com o Maria-DB. Basta escolher os pacotes do build-dep manualmente a partir de debian/control em vez de usar apt-get build-dep php5 e, em seguida, alterar o Build-Depends libmysqlclient-dev para corrigir o pacote de desenvolvimento do Maria-DB.

    
por oerdnj 13.05.2016 / 00:05