GithubHelp home page GithubHelp logo

configure error under ubuntu about phpbrew HOT 21 CLOSED

phpbrew avatar phpbrew commented on July 21, 2024
configure error under ubuntu

from phpbrew.

Comments (21)

c9s avatar c9s commented on July 21, 2024

Make openssl library optional for temporary ? :-)

Than might add another detection function for different OS.

from phpbrew.

c9s avatar c9s commented on July 21, 2024

Maybe you didn't install openssl ?

I check pkg-config on Ubuntu:

pkg-config --variable=prefix  openssl     
/usr

This should work.

from phpbrew.

c9s avatar c9s commented on July 21, 2024

openssl is new variant now.

please check: 022c282

from phpbrew.

siygle avatar siygle commented on July 21, 2024

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.

c9s avatar c9s commented on July 21, 2024

I think it's libssl-dev (perhaps) , so the latest phpbrew checks both package. let me check.

from phpbrew.

c9s avatar c9s commented on July 21, 2024

btw, have you installed openssl ? and show me the prefix of libssl-dev ?

from phpbrew.

c9s avatar c9s commented on July 21, 2024

ext/openssl uses /opt/local/include/openssl or /usr/include/openssl the header files are required.

from phpbrew.

c9s avatar c9s commented on July 21, 2024

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.

c9s avatar c9s commented on July 21, 2024

@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.

siygle avatar siygle commented on July 21, 2024

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.

c9s avatar c9s commented on July 21, 2024

Hi @ferrari , phpbrew now detects /usr/include/openssl/*.h automatically, so no worry about it. :-)

from phpbrew.

c9s avatar c9s commented on July 21, 2024

我發現在 Ubuntu Linux 底下指定 prefix=/usr 是編不過的,得用 =shared 才編得過,這個問題剛剛修正了 :D

from phpbrew.

pirkka avatar pirkka commented on July 21, 2024

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.

versedi avatar versedi commented on July 21, 2024

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.

c9s avatar c9s commented on July 21, 2024

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 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?


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.

versedi avatar versedi commented on July 21, 2024

phpbrew -v gives me version number:
phpbrew 1.21.6

from phpbrew.

c9s avatar c9s commented on July 21, 2024

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.

versedi avatar versedi commented on July 21, 2024

Which branch it is on - develop?

from phpbrew.

c9s avatar c9s commented on July 21, 2024

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.

SBaof avatar SBaof commented on July 21, 2024

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.

akoSalman avatar akoSalman commented on July 21, 2024

See here

from phpbrew.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.