"Impossibile configurare php55-mysql" con MacPorts e Percona 5.5

1

Sto ricevendo questo errore cercando di installare o aggiornare Percona usando MacPorts su Max OS X (Mavericks 10.9 nel mio caso)

--->  Configuring php55-mysql
Error: Failed to configure php55-mysql, consult /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_php/php55-mysql/work/php-5.5.15/ext/mysql/config.log
Error: org.macports.configure for port php55-mysql returned: configure failure: command execution failed
Please see the log file for port php55-mysql for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_php/php55-mysql/main.log
Error: Unable to upgrade port: 1
To report a bug, follow the instructions in the guide:
    http://guide.macports.org/#project.tickets

UPDATE (2014-11-11): @Mark ha chiesto cosa c'era nella main.log . Non l'ho salvato in origine ma ho avuto lo stesso identico problema su una macchina diversa ed ecco cosa c'era nel file main.log :

[stuff above snipped]

:info:configure checking for the location of libz... /opt/local
:info:configure configure: error: Cannot find libmysqlclient under /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_php/php54-mysql/work/percona.
:info:configure Note that the MySQL client library is not bundled anymore!
:info:configure Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_php/php54-mysql/work/php-5.4.34/ext/mysql" && ./configure --prefix=/opt/local --with-php-config=/opt/local/bin/php-config54 --with-zlib-dir=/opt/local --with-mysql=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_php/php54-mysql/work/percona --with-mysqli=/opt/local/lib/percona/bin/mysql_config --with-pdo-mysql=/opt/local/lib/percona/bin/mysql_config --with-mysql-sock=/opt/local/var/run/percona/mysqld.sock 
:info:configure Exit code: 1
:error:configure Failed to configure php54-mysql, consult /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_php/php54-mysql/work/php-5.4.34/ext/mysql/config.log
:error:configure org.macports.configure for port php54-mysql returned: configure failure: command execution failed
:debug:configure Error code: NONE
:debug:configure Backtrace: configure failure: command execution failed
    while executing
"proc-org.macports.configure-configure-0 org.macports.configure"
    ("eval" body line 1)
    invoked from within
"eval $procedure $targetname"
:info:configure Warning: targets not executed for php54-mysql: org.macports.install org.macports.configure org.macports.build org.macports.destroot
:notice:configure Please see the log file for port php54-mysql for details:
    
posta JCobb 15.08.2014 - 02:15
fonte

1 risposta

1

Questo articolo Come aggiornare un'installazione di Percona mi ha dato il indizio avevo bisogno di risolvere il problema. Non ho intenzione di approfondire qui ma l'essenza è che Percona ha dovuto rinominare libmysqlclient in libperconaserverclient . La correzione in questo articolo non si applica a OS X / MacPorts ma questo risolve il problema.

cd /opt/local/lib/percona/mysql
sudo ln -s libperconaserverclient.a libmysqlclient.a
sudo ln -s libperconaserverclient.dylib libmysqlclient.dylib

Quindi completa l'installazione / l'aggiornamento.

    
risposta data 15.08.2014 - 02:15
fonte

Leggi altre domande sui tag