-
Notifications
You must be signed in to change notification settings - Fork 369
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 22.04 LTS - openssl error #1263
Comments
The problem is about the By default, it inclues the To resolve the above issue, it should compile the Here are steps to resolve the above issue: Compile the OpenSSL 1.1 from sourcecd $HOME
wget https://www.openssl.org/source/openssl-1.1.1i.tar.gz
tar xzf $HOME/openssl-1.1.1i.tar.gz
cd openssl-1.1.1i
./Configure --prefix=$HOME/openssl-1.1.1i/bin -fPIC -shared linux-x86_64
make -j 8
make install Compile the PHP 7.4.29 with PHPBrewexport PKG_CONFIG_PATH=$HOME/openssl-1.1.1i/bin/lib/pkgconfig && phpbrew --debug install 7.4 +default Verificationlee@lee-VirtualBox:~$ phpbrew switch php-7.4.29
lee@lee-VirtualBox:~$ php -v
PHP 7.4.29 (cli) (built: May 29 2022 12:34:15) ( NTS )
Copyright (c) The PHP Group
lee@lee-VirtualBox:~$ php -i | grep -i openssl
Configure Command => './configure' '--cache-file=/home/lee/.phpbrew/cache/config.cache' '--prefix=/home/lee/.phpbrew/php/php-7.4.29' '--with-config-file-path=/home/lee/.phpbrew/php/php-7.4.29/etc' '--with-config-file-scan-dir=/home/lee/.phpbrew/php/php-7.4.29/var/db' '--disable-all' '--enable-phar' '--enable-session' '--enable-short-tags' '--enable-tokenizer' '--with-zlib=/usr' '--with-libdir=lib/x86_64-linux-gnu' '--enable-dom' '--with-libxml' '--enable-simplexml' '--enable-xml' '--enable-xmlreader' '--enable-xmlwriter' '--with-xsl' '--enable-opcache' '--enable-bcmath' '--with-bz2=/usr' '--enable-calendar' '--enable-cli' '--enable-ctype' '--enable-fileinfo' '--enable-filter' '--enable-shmop' '--enable-sysvsem' '--enable-sysvshm' '--enable-sysvmsg' '--enable-json' '--enable-mbregex' '--enable-mbstring' '--with-mhash' '--enable-pcntl' '--enable-pdo' '--with-pear=/home/lee/.phpbrew/php/php-7.4.29/lib/php/pear' '--enable-posix' '--with-readline=/usr' '--enable-sockets' '--with-curl' '--with-openssl' '--with-zip' 'PKG_CONFIG_PATH=/usr/lib/pkgconfig:/home/lee/openss
-1.1.1i/bin/lib/pkgconfig:/home//lee/openssl-1.1.1i/bin/lib/pkgconfig'
libSSH Version => libssh/0.9.6/openssl/zlib
openssl
OpenSSL support => enabled
OpenSSL Library Version => OpenSSL 1.1.1i 8 Dec 2020
OpenSSL Header Version => OpenSSL 1.1.1i 8 Dec 2020
Openssl default config => /home/lee/openssl-1.1.1i/bin/ssl/openssl.cnf
openssl.cafile => no value => no value
openssl.capath => no value => no value
Native OpenSSL support => enabled
PKG_CONFIG_PATH => /home//lee/openssl-1.1.1i/bin/lib/pkgconfig
$_SERVER['PKG_CONFIG_PATH'] => /home//lee/openssl-1.1.1i/bin/lib/pkgconfig References |
Just notify that I also update the Troubleshooting page to add this issue :). |
@peter279k wrote
At this point it returns error :
then if I open build.log (~/.phpbrew/build/php-7.4.30/build.log) :
|
This is how I got it working, based on @peter279k solution:
I'm on Arch Linux 5.15.79-1-lts |
this might also help in some cases: https://stackoverflow.com/questions/69722049/how-i-can-fixed-build-in-installing-php-7-4 |
The above solution is only worked in the macOS. |
Output
Expected Result
Command
phpbrew --debug install 7.4 +default
Build Log
See up
Platform
OS:
Ubuntu 22.04 LTS
Running PHP:
PHP 8.1.2 (cli) (built: Apr 7 2022 17:46:26) (NTS)
Installing PHP:
PHP 7.4.29
The text was updated successfully, but these errors were encountered: