-
Notifications
You must be signed in to change notification settings - Fork 364
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ubuntu 16.04 php 5.5.36 #939
Comments
@sasha2002 most likely your OpenSSL version is incompatible with PHP 5.5. Not sure what the requirements are. Could you post your output of I just was able to
|
Yeah, thanks for the hint.
|
@sasha2002 please see if downgrading OpenSSL solves the problem. There's nothing we can do about this on the PHPBrew end. |
This is indeed an issue with 5.* versions of PHP not compatible with openssl version. |
phpbrew install 5.6.36 +default Use tail command to see what's going on: ===> Checking patches... EVP_CIPHER_CTX cipher_ctx;
Makefile:526: recipe for target 'ext/openssl/openssl.lo' failed make: *** [ext/openssl/openssl.lo] Error 1 Please checkout the build log file for more details: |
So... phpbrew is not compatible with php 5.5 and 5.6 +php7? I'm on Fedora 28 with PHP 7.2 installed by system. |
@nelson6e65 PHPBrew can build all PHP versions starting 5.3. Not all OpenSSL versions are compatible with all PHP versions. |
Debian Stretch 9 users:
Pin openssl packages to oldstable (Jessie) in
Now you will have |
The problem with that approach @dciancu (#939 (comment)) is that it breaks most other things that might ever want to work on Debian Stretch, right? In fact, it seems to have broken phpbrew for me. |
Downgrading |
I hit the same issue with phpenv/php-build with Ubuntu 18.04, here's my snippet that should work on any linux distro when using # Compile openssl-1.0 and curl from sources and export the following environment variables before compiling PHP 5.
# PHP_BUILD_CONFIGURE_OPTS="--with-openssl-dir=/usr/local/openssl-1.0 --with-curl=/usr/local/curl-with-openssl-1.0"
# PKG_CONFIG_PATH="/usr/local/openssl-1.0/lib/pkgconfig:/usr/local/curl-with-openssl-1.0/lib/pkgconfig"
sudo curl -o /opt/openssl-1.0.2t.tar.gz https://www.openssl.org/source/openssl-1.0.2t.tar.gz
sudo tar zxvf /opt/openssl-1.0.2t.tar.gz -C /opt
sudo ln -s /opt/openssl-1.0.2t /opt/openssl-1.0
(cd /opt/openssl-1.0 && sudo ./config shared --prefix=/usr/local/openssl-1.0 --openssldir=/usr/local/openssl-1.0 && sudo make && sudo make install)
sudo curl -o /opt/curl-7.67.0.tar.gz https://curl.haxx.se/download/curl-7.67.0.tar.gz
sudo tar zxvf /opt/curl-7.67.0.tar.gz -C /opt
sudo chown -R root:root curl-7.67.0
sudo ln -s /opt/curl-7.67.0 /opt/curl
(cd /opt/curl && sudo ./configure --with-ssl=/usr/local/openssl-1.0 --prefix=/usr/local/curl-with-openssl-1.0 && sudo make && sudo make install) |
FYI, #1041 implements patching PHP 5.6 to support OpenSSL 1.1. Although, it needs a minor rework before getting accepted. |
@Toilal Thanks for your instructions on how to build and provide old openssl and curl versions. It works like a charm on Linux Mint 19.3 (Ubuntu 18.04), if you add the export PKG_CONFIG_PATH="/usr/local/openssl-1.0/lib/pkgconfig:/usr/local/curl-with-openssl-1.0/lib/pkgconfig" && phpbrew install php-5.4.45 +default +mysql +sqlite +pdo -- --with-openssl --with-openssl-dir=/usr/local/openssl-1.0 --with-curl=/usr/local/curl-with-openssl-1.0 |
Output
Expected Result
Command
Paste your phpbrew install command here (be sure to install with
--debug
flag, e.g.phpbrew --debug install
)Build Log
Platform
OS:
Running PHP:
5.6 5.7
Installing PHP:
5.5.36
The text was updated successfully, but these errors were encountered: