pecl install pecl_http falha - atualizando para php7 e http.so causa problemas

1

Problema semelhante: pecl_http não foi carregado

Então, eu queria atualizar para o PHP7.0 e acreditava que tudo estava bem. Mas eu acho que estava faltando alguns pacotes porque eu não era capaz de entrar no meu ownCloud . Então, eu queria instalar o pecl_http com:

pecl install pecl_http
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php/20151012/http.so' - /usr/lib/php/20151012/http.so: cannot open shared object file: No such file or directory in Unknown on line 0
downloading pecl_http-3.0.1.tgz ...
Starting to download pecl_http-3.0.1.tgz (197,372 bytes)
.............done: 197,372 bytes
71 source files, building
running: phpize
Configuring for:
PHP Api Version:         20151012
Zend Module Api No:      20151012
Zend Extension Api No:   320151012
where to find zlib [/usr] :
where to find libcurl [/usr] :
where to find libevent [/usr] :
where to find libidn [/usr] :
building in /tmp/pear/temp/pear-build-root0suVKL/pecl_http-3.0.1
running: /tmp/pear/temp/pecl_http/configure --with-php-config=/usr/bin/php-config --with-http-zlib-dir=/usr --with-http-libcurl-dir=/usr --with-http-libevent-dir=/usr --with-http-libidn-dir=/usr
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for a sed that does not truncate output... /bin/sed
checking for cc... cc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking for cc option to accept ISO C89... none needed
checking how to run the C preprocessor... cc -E
checking for icc... no
checking for suncc... no
checking whether cc understands -c and -o together... yes
checking for system library directory... lib
checking if compiler supports -R... no
checking if compiler supports -Wl,-rpath,... yes
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking for PHP prefix... /usr
checking for PHP includes... -I/usr/include/php/20151012 -I/usr/include/php/20151012/main -I/usr/include/php/20151012/TSRM -I/usr/include/php/20151012/Zend -I/usr/include/php/20151012/ext -I/usr/include/php/20151012/ext/date/lib
checking for PHP extension directory... /usr/lib/php/20151012
checking for PHP installed headers prefix... /usr/include/php/20151012
checking if debug is enabled... no
checking if zts is enabled... no
checking for re2c... no
configure: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers.
checking for gawk... gawk
checking whether to enable extended HTTP support... yes, shared
checking for egrep... (cached) /bin/grep -E
checking for a sed that does not truncate output... (cached) /bin/sed
checking how to run the C preprocessor... cc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for off_t... yes
checking for mbstate_t... yes
checking netdb.h usability... yes
checking netdb.h presence... yes
checking for netdb.h... yes
checking for unistd.h... (cached) yes
checking wchar.h usability... yes
checking wchar.h presence... yes
checking for wchar.h... yes
checking wctype.h usability... yes
checking wctype.h presence... yes
checking for wctype.h... yes
checking arpa/inet.h usability... yes
checking arpa/inet.h presence... yes
checking for arpa/inet.h... yes
checking for gethostname... yes
checking for getdomainname... yes
checking for mbrtowc... yes
checking for mbtowc... yes
checking for iswalnum... yes
checking for inet_pton... yes
checking for idna.h... found in /usr
checking for libidn version... 0.26
checking for zlib.h... found in /usr
checking for zlib version >= 1.2.0.4... 1.2.8
checking for curl/curl.h... found in /usr
checking for curl-config... found: /usr/bin/curl-config
checking for curl version >= 7.18.2... 7.35.0
checking for HTTP2 support in libcurl... no
checking for SSL support in libcurl... yes
checking for OpenSSL support in libcurl... no
checking for GnuTLS support in libcurl... yes
checking gnutls.h usability... no
checking gnutls.h presence... no
checking for gnutls.h... no
checking for NSS support in libcurl... no
checking for SecureTransport support in libcurl... no
checking for GSKit support in libcurl... no
checking for ares support in libcurl... no
checking whether CURLOPT_TLSAUTH_TYPE expects CURL_TLSAUTH_SRP or literal "SRP"... "SRP"
checking for bundled SSL CA info... /etc/ssl/certs/ca-certificates.crt
checking for event2/event.h... not found
configure: WARNING: continuing without libevent support
checking for ext/raphf support... PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php/20151012/http.so' - /usr/lib/php/20151012/http.so: cannot open shared object file: No such file or directory in Unknown on line 0
no
configure: error: Please install pecl/raphf and activate extension=raphf.so in your php.ini
ERROR: '/tmp/pear/temp/pecl_http/configure --with-php-config=/usr/bin/php-config --with-http-zlib-dir=/usr --with-http-libcurl-dir=/usr --with-http-libevent-dir=/usr --with-http-libidn-dir=/usr' failed

Eu não tenho ideia do que é bom para o /usr/lib/php/20151012/http.so . Primeiro, deve-me algo como:

PHP Warning: PHP Startup: Unable to load dynamic library '.../http.so' - .../http.so: cannot open shared object file: No such file or directory in Unknown on line 0

Depois disso, acabei de excluí-lo e, pelo menos, ele diz que não existe . Tudo bem ... então o que posso fazer agora? O que deu errado? Como posso recriar esse arquivo http.so?

Btw: * já tentou instalar uma versão mais antiga, mesmo erro

    
por kwoxer 08.05.2016 / 21:35

2 respostas

0

O motivo dos erros foi que eu fiz um do-release-upgrade no meu console SSH Digitalocean . Lá eu tive problemas com o upgrade do phpmyadmin .

E lá apenas ficou. Então eu fiz novamente uma atualização sem o phpmyadmin e instalei o phpmyadmin mais recente depois disso com a mão. E agora tudo estava bem. Finalmente eu também configurei o kernel para o último (4.4.0.22) e agora está tudo bem. Não há mais *.so de erros.

    
por 09.06.2016 / 08:56
1

Os seguintes trabalhos no Ubuntu 16.04:

sudo pecl uninstall propro 
sudo pecl uninstall raphf
sudo apt-get install php-raphf php-raphf-dev php-propro php-propro-dev
sudo pecl install pecl_http

No final, você verá isso, mas tudo bem:

install ok: channel://pecl.php.net/pecl_http-3.0.1 [...] Ungültiger Maschinenbefehl (Speicherabzug geschrieben)
    
por 01.06.2016 / 16:29