Erro ao configurar e instalar o PHP 5.3.21 no Ubuntu 12.04

2

Estou tentando instalar o PHP 5.3.21 em um Rackspace Cloud Server executando o Ubuntu 12.04, mas continuo com erros durante a configuração. Ele continua me dando o seguinte erro:

configure: error: Cannot find imap library (libc-client.a). Please check your c-client installation.

Aqui está o meu script de configuração do PHP:

./configure --enable-fpm --enable-cli --with-fpm-user=phpfpm --with-fpm-group=phpfpm --prefix=/usr/local/php --exec-prefix=/usr/local/php --with-config-file-path=/usr/local/php/etc --with-config-file-scan-dir=/usr/local/php/etc/conf.d --with-libdir=/lib/x86_64-linux-gnu --enable-bcmath --enable-ctype --with-curl --with-curlwrappers --with-pear --enable-dba --with-cdb --enable-exif --enable-ftp --disable-fileinfo --with-gd --with-jpeg-dir --with-png-dir --with-zlib-dir --with-xpm-dir --with-freetype-dir --with-t1lib --enable-gd-native-ttf --with-gettext --with-gmp --with-imap=/usr/local/c-client-2007f --with-imap-ssl --with-ldap --with-ldap-sasl --enable-mbstring=all --with-mcrypt --with-mhash --with-mysql --with-mysqli --with-pdo-mysql --enable-sqlite-utf8 --with-openssl --with-kerberos --with-pspell --enable-shmop --enable-simplexml --with-snmp --enable-soap --enable-sockets --with-tidy --enable-wddx --enable-xmlreader --with-xmlrpc --with-xsl --enable-zip --with-zlib --enable-sysvsem --enable-sysvshm

E aqui estão os pacotes que eu instalei antes:

apt-get -y install php5-dev php-pear php5-imap
apt-get -y install libxml2-dev libevent-dev zlib1g-dev libbz2-dev libgmp3-dev libssl-dev libcurl4-openssl-dev libjpeg-dev libpng-dev libxpm-dev libgd2-xpm-dev libmcrypt-dev memcached libmemcached-dev libpcre3-dev libc-client-dev libkrb5-dev libsasl2-dev libmysqlclient-dev libpspell-dev libsnmp-dev libtidy-dev libxslt-dev libtool libc-client2007e libc-client2007e-dev
apt-get -y build-dep t1lib
printf "\n" | apt-get -y install t1lib-bin libt1-dev

Eu também tentei instalar o IMAP do C-Client a partir do código-fonte usando o seguinte:

wget ftp://ftp.cac.washington.edu/imap/c-client.tar.Z
tar -xvf c-client.tar.Z
cd imap-2007f
make clean
make ldb EXTRAAUTHENTICATORS=gss PASSWDTYPE=gss IP6=4
cp c-client/c-client.a c-client/libc-client.a
mkdir -p /usr/local/c-client-2007f/lib
mkdir -p /usr/local/c-client-2007f/include
cp c-client/*.h /usr/local/c-client-2007f/include
cp c-client/*.a /usr/local/c-client-2007f/lib
cd ..

mas ainda recebo o erro.

Eu gostaria de receber ajuda para resolver isso.

Obrigado.

    
por Obinwanne Hill 19.02.2013 / 21:56

4 respostas

1

Eu consegui resolver isso.

Eu postei minha resposta aqui: link

Felicidades.

    
por 22.02.2013 / 15:34
0

Tente executar sudo apt-get install build-essential . Isso deve instalar qualquer lib que você precisar compilar.

    
por 19.02.2013 / 22:01
0
$ apt-file search libc-client.a
libc-client2007e-dev: /usr/lib/libc-client.a

Portanto, você deve instalar libc-client2007e-dev (ou similar) e apt-file também para poder pesquisar na próxima vez =)

$ apt-cache show apt-file
blah...
Description: search for files within Debian packages (command-line interface)
 apt-file is a command line tool for searching files contained in packages
 for the APT packaging system. You can search in which package a file is
 included or list the contents of a package without installing or fetching it.
blah...

Então, finalmente:

sudo apt-get install libc-client2007e-dev apt-file

Mas você já verificou que não é possível instalar o php por apt-get ?

Tente:

apt-cache policy php5

para ver versões diferentes disponíveis no seu sistema (você pode adicionar algum repositório)

    
por 19.02.2013 / 22:07
0

Eu estava tendo esse problema e, eventualmente, deparei com um site que me deu a solução:

ln -s /usr/lib/libc-client.a /usr/lib/x86_64-linux-gnu/libc-client.a
    
por 29.07.2016 / 17:05