Phpbrew: Cannot find OpenSSL's libraries on Centos

Created on 30 Aug 2016  路  3Comments  路  Source: phpbrew/phpbrew

Output

===> phpbrew will now build 7.0.9
---> Parsing variants from command arguments '+default'
===> Loading and resolving variants...
Checking distribution checksum...
Checksum matched: 63b32d3e97df7b30c2bcd138ef0b21c0
===> Distribution file was successfully extracted, skipping...
Source Directory: /home/vagrant/.phpbrew/build/php-7.0.9
Writing variant info to /home/vagrant/.phpbrew/php/php-7.0.9/phpbrew.variants
===> Checking patches...
Checking patch for replace apache php module name with custom version name
Enabled variants: [xml, opcache, bcmath, bz2, calendar, cli, ctype, dom, fileinfo, filter, ipc, json, mbregex, mbstring, mhash, mcrypt, pcntl, pcre, pdo, phar, posix, readline, sockets, tokenizer, curl, openssl, zip]
Disabled variants: []
Found existing build.log, renaming it to /home/vagrant/.phpbrew/build/php-7.0.9/build.log.1472543041
===> Configuring 7.0.9...


Use tail command to see what's going on:
   $ tail -F /home/vagrant/.phpbrew/build/php-7.0.9/build.log


./configure '--cache-file='\''/home/vagrant/.phpbrew/cache/config.cache'\''' '--prefix=/home/vagrant/.phpbrew/php/php-7.0.9' '--with-config-file-path=/home/vagrant/.phpbrew/php/php-7.0.9/etc' '--with-config-file-scan-dir=/home/vagrant/.phpbrew/php/php-7.0.9/var/db' '--disable-all' '--enable-phar' '--enable-session' '--enable-short-tags' '--enable-tokenizer' '--with-pcre-regex' '--with-zlib=/usr' '--enable-dom' '--enable-libxml' '--enable-simplexml' '--enable-xml' '--enable-xmlreader' '--enable-xmlwriter' '--with-xsl' '--with-libxml-dir=/usr' '--enable-opcache' '--enable-bcmath' '--with-bz2=/usr' '--enable-calendar' '--enable-cli' '--enable-ctype' '--enable-dom' '--enable-fileinfo' '--enable-filter' '--enable-shmop' '--enable-sysvsem' '--enable-sysvshm' '--enable-sysvmsg' '--enable-json' '--enable-mbregex' '--enable-mbstring' '--with-mhash=/usr' '--with-mcrypt=/usr' '--enable-pcntl' '--with-pcre-regex' '--with-pcre-dir=/usr' '--enable-pdo' '--enable-phar' '--enable-posix' '--with-readline=/usr' '--enable-sockets' '--enable-tokenizer' '--with-curl=/usr' '--with-openssl=/usr' '--enable-zip' '--with-pear=/home/vagrant/.phpbrew/php/php-7.0.9/lib/php' >> /home/vagrant/.phpbrew/build/php-7.0.9/build.log 2>&1
Error: Configure failed:
The last 5 lines in the log file:
checking for Kerberos support... no

checking whether to use system default cipher list instead of hardcoded value... no

checking for RAND_egd... no

checking for pkg-config... /usr/bin/pkg-config

configure: error: Cannot find OpenSSL's libraries

Please checkout the build log file for more details:
         tail /home/vagrant/.phpbrew/build/php-7.0.9/build.log

Expected Result

successfull instalation of php 7.0.9

Command

phpbrew --debug install 7.0 +default

Build Log

https://gist.github.com/Gamesh/5c6fdd074c4a59c2c9d012c5f7626b93

Platform

OS:
CentOS release 6.8 (Final)

Running PHP:
PHP 5.5.38 (cli) (built: Jul 20 2016 16:01:37)
Installing PHP:
v7.0.9

tried with +openssl=/usr or +openssl=/usr/include/openssl
but then it cant find evp.h

locate evp.h
/usr/include/openssl/evp.h
/usr/src/debug/openssl-1.0.1e/include/openssl/evp.h

locate opensslv.h
/usr/include/openssl/opensslv.h

Most helpful comment

@jhdxr shouldn't phpbrew have handled it automatically?

All 3 comments

try phpbrew install 7.0.9 +default -- --with-libdir=lib64 and if still fails, plz try debug mode (add --debug, e.g. phpbrew --debug install xxxxxxx) and paste your log.

@jhdxr shouldn't phpbrew have handled it automatically?

Was this page helpful?
0 / 5 - 0 ratings