Comments (21)
Make openssl library optional for temporary ? :-)
Than might add another detection function for different OS.
from phpbrew.
Maybe you didn't install openssl ?
I check pkg-config on Ubuntu:
pkg-config --variable=prefix openssl
/usr
This should work.
from phpbrew.
openssl is new variant now.
please check: 022c282
from phpbrew.
Actually I saw the same parameters in the debug msg :p
pkg-config --variable=prefix openssl /usr
I think maybe it need dev pkg not openssl? Both remove prefix or replace openssl with libssl-dev (it's empty using pkg-config --variable=prefix libssl-dev, so it just the same as remove prefix) could solve this problem on ubuntu. I'm not sure is this the root cause?
But I used new version and remove openssl temporally, thanks.
from phpbrew.
I think it's libssl-dev (perhaps) , so the latest phpbrew checks both package. let me check.
from phpbrew.
btw, have you installed openssl ? and show me the prefix of libssl-dev ?
from phpbrew.
ext/openssl uses /opt/local/include/openssl or /usr/include/openssl the header files are required.
from phpbrew.
If you look into:
dpkg -S libssl-dev
there is no openssl/*.h
files.
these header files are in openssl
package:
dpkg -S openssl
from phpbrew.
@ferrari I just built php with openssl variant, which works pretty nice, and please make sure your openssl package is installed. :-)
I am going to close this issue. :-)
from phpbrew.
I'm using 64bit Ubuntu, I'm not sure is there has any different.
Yes, I had installed openssl, and I used this command to check
dpkg -L openssl
but it did not contain any header. They all in libssl-dev (include /usr/include/openssl/*.h)
Thanks for your help, I just upgrade to new version and skip openssl (Actually, I don't need it. :p)
from phpbrew.
Hi @ferrari , phpbrew now detects /usr/include/openssl/*.h automatically, so no worry about it. :-)
from phpbrew.
我發現在 Ubuntu Linux 底下指定 prefix=/usr 是編不過的,得用 =shared 才編得過,這個問題剛剛修正了 :D
from phpbrew.
I'm getting the above error "configure: error: Cannot find OpenSSL's libraries", trying to install couple of different PHP versions on Ubuntu 14.04.1 LTS.
from phpbrew.
This is occuring to me on Ubuntu 15.10 whatever PHP version I'm trying to install.
It wasn't like this a few days back so I suspect that something changed somewhere. Tried running self-update and reinstall the openssl - no luck.
╰─[:)] % phpbrew --debug install 5.6.17 +default+pdo+mysql+sqlite+mhash+mbstring+gettext+intl+cli+mcrypt+curl+debug+iconv++xmlrpc+zip+apxs2=/usr/bin/apxs2 +openssl=/usr/bin/openssl -- --with-libdir=lib64
./configure '--cache-file='\''/home/tstepnikowski/.phpbrew/cache/config.cache'\''' '--prefix=/home/tstepnikowski/.phpbrew/php/php-5.6.17' '--with-config-file-path=/home/tstepnikowski/.phpbrew/php/php-5.6.17/etc' '--with-config-file-scan-dir=/home/tstepnikowski/.phpbrew/php/php-5.6.17/var/db' '--disable-all' '--enable-phar' '--enable-session' '--enable-short-tags' '--enable-tokenizer' '--with-pcre-regex' '--with-zlib=/usr' '--enable-pdo' '--with-mysql=mysqlnd' '--with-mysqli=mysqlnd' '--with-pdo-mysql=mysqlnd' '--with-mysql-sock=/var/run/mysqld/mysqld.sock' '--with-sqlite3' '--with-pdo-sqlite' '--with-mhash=/usr' '--enable-mbstring' '--with-gettext=/usr' '--enable-intl' '--enable-cli' '--with-mcrypt=/usr' '--with-curl=/usr' '--enable-debug' '--with-iconv' '--with-xmlrpc' '--enable-zip' '--with-apxs2=/usr/bin/apxs2' '--with-openssl=/usr/bin/openssl' '--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-ctype' '--enable-dom' '--enable-fileinfo' '--enable-filter' '--enable-shmop' '--enable-sysvsem' '--enable-sysvshm' '--enable-sysvmsg' '--enable-json' '--enable-mbregex' '--enable-pcntl' '--with-pcre-regex' '--with-pcre-dir=/usr' '--enable-phar' '--enable-posix' '--with-readline=/usr' '--enable-sockets' '--enable-tokenizer' '--with-libdir=lib64' >> /home/tstepnikowski/.phpbrew/build/php-5.6.17/build.log 2>&1
Error: Configure failed:
PHP Notice: Undefined variable: configureOptions in phar:///usr/local/bin/phpbrew/src/PhpBrew/Console.php on line 134
Notice: Undefined variable: configureOptions in phar:///usr/local/bin/phpbrew/src/PhpBrew/Console.php on line 134
PHP Warning: join(): Invalid arguments passed in phar:///usr/local/bin/phpbrew/src/PhpBrew/Console.php on line 134
Warning: join(): Invalid arguments passed in phar:///usr/local/bin/phpbrew/src/PhpBrew/Console.php on line 134
Configure options:
The last 5 lines in the log file:
checking for DSA_get_default_method in -lssl... no
checking for X509_free in -lcrypto... yes
checking for RAND_egd... no
checking for pkg-config... /usr/bin/pkg-config
configure: error: Cannot find OpenSSL's <evp.h>
╰─[:(] % locate evp.h
/opt/vagrant/embedded/include/openssl/evp.h
/usr/include/openssl/evp.h
╰─[:)] % which openssl
/usr/bin/openssl
Any ideas? @c9s you've said that the *.h are automatically looked up inside /usr/include/openssl - why would mine wasn't find if it's there?
from phpbrew.
Looks like an older phpbrew?
Tadeusz Stępnikowski [email protected] 於 2016年6月15日 星期三寫道:
This is occuring to me on Ubuntu 15.10 whatever PHP version I'm trying to
install.╰─[:)] % phpbrew --debug install 5.6.17 +default+pdo+mysql+sqlite+mhash+mbstring+gettext+intl+cli+mcrypt+curl+debug+iconv++xmlrpc+zip+apxs2=/usr/bin/apxs2 +openssl=/usr/bin/openssl -- --with-libdir=lib64
./configure '--cache-file='''/home/tstepnikowski/.phpbrew/cache/config.cache'''' '--prefix=/home/tstepnikowski/.phpbrew/php/php-5.6.17' '--with-config-file-path=/home/tstepnikowski/.phpbrew/php/php-5.6.17/etc' '--with-config-file-scan-dir=/home/tstepnikowski/.phpbrew/php/php-5.6.17/var/db' '--disable-all' '--enable-phar' '--enable-session' '--enable-short-tags' '--enable-tokenizer' '--with-pcre-regex' '--with-zlib=/usr' '--enable-pdo' '--with-mysql=mysqlnd' '--with-mysqli=mysqlnd' '--with-pdo-mysql=mysqlnd' '--with-mysql-sock=/var/run/mysqld/mysqld.sock' '--with-sqlite3' '--with-pdo-sqlite' '--with-mhash=/usr' '--enable-mbstring' '--with-gettext=/usr' '--enable-intl' '--enable-cli' '--with-mcrypt=/usr' '--with-curl=/usr' '--enable-debug' '--with-iconv' '--with-xmlrpc' '--enable-zip' '--with-apxs2=/usr/bin/apxs2' '--with-openssl=/usr/bin/openssl' '--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-ctype' '--enable-dom' '--enable-fileinfo' '--enable-filter' '--enable-shmop' '--enable-sysvsem' '--enable-sysvshm' '--enable-sysvmsg' '--enable-json' '--enable-mbregex' '--enable-pcntl' '--with-pcre-regex' '--with-pcre-dir=/usr' '--enable-phar' '--enable-posix' '--with-readline=/usr' '--enable-sockets' '--enable-tokenizer' '--with-libdir=lib64' >> /home/tstepnikowski/.phpbrew/build/php-5.6.17/build.log 2>&1
Error: Configure failed:
PHP Notice: Undefined variable: configureOptions in phar:///usr/local/bin/phpbrew/src/PhpBrew/Console.php on line 134Notice: Undefined variable: configureOptions in phar:///usr/local/bin/phpbrew/src/PhpBrew/Console.php on line 134
PHP Warning: join(): Invalid arguments passed in phar:///usr/local/bin/phpbrew/src/PhpBrew/Console.php on line 134Warning: join(): Invalid arguments passed in phar:///usr/local/bin/phpbrew/src/PhpBrew/Console.php on line 134
Configure options:
The last 5 lines in the log file:
checking for DSA_get_default_method in -lssl... nochecking for X509_free in -lcrypto... yes
checking for RAND_egd... no
checking for pkg-config... /usr/bin/pkg-config
configure: error: Cannot find OpenSSL's <evp.h>
╰─[:(] % locate evp.h
/opt/vagrant/embedded/include/openssl/evp.h
/usr/include/openssl/evp.h╰─[:)] % which openssl
/usr/bin/opensslAny ideas?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
#2 (comment), or mute
the thread
https://github.com/notifications/unsubscribe/AADGzlm-bT3amZYYz33gS8LisdpXdNIQks5qL9bVgaJpZM4AEzEC
.
from phpbrew.
phpbrew -v gives me version number:
phpbrew 1.21.6
from phpbrew.
Can you update to 1.22? There were a lot of fixes
Tadeusz Stępnikowski [email protected] 於 2016年6月15日 星期三寫道:
phpbrew 1.21.6
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#2 (comment), or mute
the thread
https://github.com/notifications/unsubscribe/AADGzq5vnuBs0cPoF4SZhc4EycG6lyIQks5qL9xPgaJpZM4AEzEC
.
from phpbrew.
Which branch it is on - develop?
from phpbrew.
It's master
phpbrew self-update should give you 1.22.4
On Wed, Jun 15, 2016 at 7:26 PM, Tadeusz Stępnikowski <
[email protected]> wrote:
Which branch it is on - develop?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#2 (comment), or mute
the thread
https://github.com/notifications/unsubscribe/AADGztX1V_u1DcgdRByuB3rgoExCAfI0ks5qL-FUgaJpZM4AEzEC
.
from phpbrew.
The artical may help the following people
How to install PHP 5.3 and 5.2 together on Ubuntu 12.04
These solutions not only useful for ubuntu 12.04
HAVE A TRY!
from phpbrew.
from phpbrew.
Related Issues (20)
- installing/enabling imagick leads to segmentation fault on Kubuntu 23.04 HOT 5
- Can't install on php 8.2.4 HOT 4
- Php 8.2 not supported? HOT 9
- PHP Fatal error: Uncaught TypeError: array_merge(): Argument #1 must be of type array HOT 5
- When will PHP 8.2 be supported? HOT 6
- Centos8 install php 8 error
- Cannot switch to PHP v8.2.8 HOT 1
- PHP 8.1.11 (or 12) pgsql pg_config... not found … Cannot find libpq-fe.h HOT 2
- "patch for fix readline detection" is broken HOT 3
- Release workflow may have some problems
- Problems with 2.2.0 HOT 6
- Was 2.2.0 retagged? HOT 1
- bad pattern issue with phpbrew in macos HOT 1
- RuntimeException: Can't decode release json, invalid JSON string: [] HOT 2
- Failed to install php 7.4.33 on Mac HOT 7
- Abnormal termination (Segfaults) when running compiled php 8.2 as FPM process HOT 1
- phpbrew ext install redis: Error: Command failed
- PHP 8.4 deprecation: Implicitly marking parameter as nullable is deprecated
- PHP 8.1 fails with libxml 2.12.0+ HOT 3
- Php 8.3 fails on EL8 (Rocky 8, Alma 8, Centos8)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from phpbrew.