phpbrew / phpbrew Goto Github PK
View Code? Open in Web Editor NEWBrew & manage PHP versions in pure PHP at HOME
Home Page: https://phpbrew.github.io/phpbrew
License: MIT License
Brew & manage PHP versions in pure PHP at HOME
Home Page: https://phpbrew.github.io/phpbrew
License: MIT License
There is an error of 'phpbrew list' after I initialized phpbrew:
#phpbrew list
PHP Warning: opendir(/Users/jaceju/.phpbrew/php): failed to open dir: No such file or directory in phar:///usr/local/Cellar/pear/bin/phpbrew/PhpBrew/Config.php on line 2
/phpbrew -d install php-5.4.12 +pdo +mysql +pgsql=/opt/local/lib/postgresql91 +apxs2=/opt/local/apache2/bin/apxs +sqlite +pcntl +posix +gettext +intl +openssl +default -- --with-icu-dir=/opt/local
which shows:
curl: (33) HTTP server doesn't seem to support byte ranges. Cannot resume.
Build Dir: /Users/c9s/.phpbrew/build/php-5.4.12
Variant icu is not defined.
So for example, we can build PHP 5.5.6 like PHP 5.5.1 but adding more variants:
phpbrew install 5.5.6 like 5.5.1 +opcache
or something like:
phpbrew install --like 5.5.1 5.5.6 +opcache
Not sure if this is an issue with phpbrew or not. If not, here is at least some info for someone who might run into the same problem I did.
Problem:
Xdebug not properly loading after install.
Versions:
$ phpbrew --version
phpbrew - 1.6.3
cliframework core: 1.5.1
$ php -v
PHP 5.3.20 (cli) (built: Jan 15 2013 15:11:49)
Copyright (c) 1997-2012 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2012 Zend Technologies
Install procedure:
$ phpbrew install php-5.3.20 +default +dbs
$ pecl install xdebug
$ phpbrew enable xdebug
This created the following file:
# ~/.phpbrew/php/php-5.3.20/var/db/xdebug.ini
extension=xdebug.so
Which resulted in the following warning:
PHP Warning: Xdebug MUST be loaded as a Zend extension in Unknown on line 0
First fix attempt:
# ~/.phpbrew/php/php-5.3.20/var/db/xdebug.ini
zend_extension=xdebug.so
Which resulted in the following error:
Failed loading xdebug.so: xdebug.so: cannot open shared object file: No such file or directory
Issue resolved:
# ~/.phpbrew/php/php-5.3.20/var/db/xdebug.ini
zend_extension="/home/jonyamo/.phpbrew/php/php-5.3.20/lib/php/extensions/no-debug-non-zts-20090626/xdebug.so"
$ php -v
PHP 5.3.20 (cli) (built: Jan 15 2013 15:11:49)
Copyright (c) 1997-2012 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2012 Zend Technologies
with Xdebug v2.2.1, Copyright (c) 2002-2012, by Derick Rethans
When installing 5.4.11 i get a message that it is patching date.timezone
and phar.readonly
but when looking at the ini file created it is both set to the standard values.
Hi,
在說明文件那邊
乾淨的 ubuntu 裡使用 install from github 的方式安裝會出現
parsePackageName(): invalid package name "package.xml" in "package.xml"
Unknown channel "pear.corneltek.com"
Parsing of package.xml from file "package.xml" failed
install failed
所以要多做一步
sudo pear channel-discover pear.corneltek.com
Let users create custom virtual variant, so that user may define one virtual variant which includes many variants that are preferred.
I tried to run this command in Mac OS X:
phpbrew install --no-test php-5.3.10 +apxs2=/usr/sbin/apxs +pear +pdo +sqlite +mysql +openssl
But phpbrew show me the error:
Variant openssl is not defined.
My phpbrew version is 1.0.2.
How about a phpbrew remove? I had to remove a php version today and noticed there is no way to do that using phpbrew. Why?
phpbrew remove [php-version]
phpbrew purge [php-version]
Hi c9s:
After some tests, configuration always failed with +gd under Ubuntu 12.10 (x86_64) env. without --with-libdir=lib/x86_64-linux-gnu parameter.
After add --with-libdir=lib/x86_64-linux-gnu as extra options, everything works fine.
Maybe you can have a FAQ section to keep this kind of system specific problem, and avoid people make the same mistake.
Thanks for this great tool.
phpbrew install php-5.4.10 +default +mysql +gd +intl +gettext +apxs2=/usr/bin/apxs2 -- --with-libdir=lib/x86_64-linux-gnu
Mark
Being able to do +all -apxs2
Hi , im having this message and my bashrc is like following:
export PHPBREW_SET_PROMPT=1
source ~/.phpbrew/bashrc
PATH=$PATH:$HOME/.rvm/bin # Add RVM to PATH for scripting
export PATH="/usr/local/heroku/bin:$PATH"
im using mountain lion 10.8.2
I tried to run this command in Mac OS X 10.7:
phpbrew install --no-test php-5.4.0 +apxs2=/usr/sbin/apxs +pear +pdo +sqlite +mysql
then I check the Configure Command in phpinfo:
'./configure' '--prefix=/Users/jaceju/.phpbrew/php/php-5.4.0' '--with-config-file-path=/Users/jaceju/.phpbrew/php/php-5.4.0/etc' '--with-config-file-scan-dir=/Users/jaceju/.phpbrew/php/php-5.4.0/var/db' '--with-pear=/Users/jaceju/.phpbrew/php/php-5.4.0/lib/php' '--disable-all' '--enable-bcmath' '--enable-cli' '--enable-ctype' '--enable-dom' '--enable-exif' '--enable-fileinfo' '--enable-filter' '--enable-hash' '--enable-fpm' '--with-xsl' '--with-tidy' '--with-xmlrpc' '--enable-json' '--enable-libxml' '--enable-mbregex' '--enable-mbstring' '--enable-phar' '--enable-session' '--enable-short-tags' '--enable-simplexml' '--enable-sockets' '--enable-tokenizer' '--enable-xml' '--enable-xmlreader' '--enable-xmlwriter' '--enable-zip' '--with-bz2' '--with-mhash' '--with-pcre-regex' '--with-zlib' '--with-libxml-dir' '--with-curl' '--with-openssl' '--with-libedit=/usr' '--with-readline' '--with-apxs2=/usr/sbin/apxs' '--with-pear' '--enable-pdo' '--with-sqlite3' '--with-mysql=mysqlnd' '--with-mysqli=mysqlnd'
there is no --with-pdo-mysql=mysqlnd
in the configure command.
在 phpbrew switch php-5.4.0 的環境下,用 pecl 安裝 xdebug 後,它會把系統原本的 xdebug.so 砍掉;但是如果切換到系統原生模式下再重新安裝 xdebug ,它又會把 phpbrew 已經編譯好的 php-5.4.0 裡的 xdebug.so 砍掉。
如果改成先把已經編譯好的 xdebug.so 備份到別的地方,然後在被砍掉之後,重新複製回來,這樣就可以並存。 (有用 zend_extension 載入)
然後查看系統與 phpbrew 的 pecl 執行檔的位置,發現是共用的。
~ phpbrew switch off
~ php -v
PHP 5.3.8 with Suhosin-Patch (cli) (built: Nov 15 2011 15:33:15)
Copyright (c) 1997-2011 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2011 Zend Technologies
with Xdebug v2.2.0rc1, Copyright (c) 2002-2012, by Derick Rethans
~ which pecl
/usr/local/Cellar/pear/bin/pecl
~ phpbrew switch php-5.4.0
~ php -v
PHP 5.4.0 (cli) (built: Mar 5 2012 10:44:22)
Copyright (c) 1997-2012 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2012 Zend Technologies
with Xdebug v2.2.0rc1, Copyright (c) 2002-2012, by Derick Rethans
~ which pecl
/usr/local/Cellar/pear/bin/pecl
這是否是因為共用 pecl 的關係?還是有設定檔需要修改?
On OS X 10.8 the extract is failing with some message about invalid extension.
Provide an "each" command to iterate specific command on each version.
已經將 source ~/.phpbrew/bashrc
加到 ~/.bashrc 中,也有重新登入,但是在執行:
phpbrew switch
時,仍然出現: "You should not see this, please check if phpbrew bashrc is sourced in your shell."
但執行 phpbrew use php-x-y-z
時則無此問題。
執行 phpbrew off
及 phpbrew switch-off
時,都會出現以下訊息:
Could not open input file: version:
有任何需要注意的部份嗎?
After phpbrew self-update
I got the follow error
Parse error: parse error, expecting `T_FUNCTION' in phar:///Users/ ...... /phpbrew/phpbrew/PhpBrew/Console.php on line 2
revert to SHA: 6812f41 seems ok
I upgraded my phpbrew to v1.0.2, but the version info is CLIFramework:
# phpbrew --version
CLIFramework - 0
cliframework core: 1.1.1
As title.
The command:
phpbrew install php-5.4.12 +default +dbs +apxs2=/usr/bin/apxs2
...on Ubuntu 12.04 fails as phpbrew fails with
./configure: line 8374: apxs: command not found
In the short term the workaround is to create a soft link 'apxs' to 'apxs2'.
Hi,
I'm able to install php 5.4.* but can't install 5.3.*.
Seems to be a c++ and/or gettext concern.
I'm running mountain lion with the latest XCode version (4.4.1).
I have installed brew dependencies as notified in the Readme.
Here is my install command :
phpbrew install php-5.3.16 +default+dbs
Even 5.3.15 is not working.
The only thing I've made differently from Readme is linking gettext (brew link gettext) as if I don't make this link it's worse, I have an abort saying c++ compiler don't work at all :
c++ -L/usr/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib -Wl,-rpath,/usr/local/Cellar/icu4c/49.1.2/lib -L/usr/local/Cellar/icu4c/49.1.2/lib
Undefined symbols for architecture x86_64:
"_main", referenced from:
start in crt1.10.6.o
ld: symbol(s) not found for architecture x86_64
collect2: ld returned 1 exit status
Undefined symbols for architecture x86_64:
"Undefined symbols for architecture x86_64:
"std::terminate()std::terminate()", referenced from:
_umsg_parse_helper in msgformat_helpers.o
_umsg_format_helper in msgformat_helpers.o
"___gxx_personality_v0", referenced from:
Dwarf Exception Unwind Info (__eh_frame) in msgformat_helpers.o
ld: symbol(s) not found for architecture x86_64
collect2: ld returned 1 exit status
", referenced from:
_umsg_parse_helper in msgformat_helpers.o
_umsg_format_helper in msgformat_helpers.o
"___gxx_personality_v0", referenced from:
Dwarf Exception Unwind Info (__eh_frame) in msgformat_helpers.o
ld: symbol(s) not found for architecture x86_64
collect2: ld returned 1 exit status
make: *** [sapi/cli/php] Error 1
make: *** Waiting for unfinished jobs....
make: *** [sapi/cgi/php-cgi] Error 1
Any idea ? I've noticed than 5.4.* version are compiled against clang, 5.3.* with llvm-gcc.
As title.
I used the following command to hack phpbrew, it seems broken:
curl http://install.onionphp.org/ | sh
Mark
I tried phpbrew to install php 5.3.10 & php 5.4.0RC8
and they all came out the same error message:
configure: error: Cannot find OpenSSL's libraries
I guess the problem is using pkg-config --variable=prefix openssl
because ubuntu use different dev library (libssl-dev?)
I used debug mode and get full install command and remove openssl prefix (/usr) and it works.
Any advice?
To let users install a version with a customized naming:
phpbrew install 5.4.12 --as my
which will create a prefix named: ~/.phpbrew/php/my-5.4.12
With this feature, we can rebuild the "build" on other machines with the same variants, alias and options, or build another version with the used variants, alias and options.
我在 VPS 上安裝 phpbrew 但是沒辦法正常運作。
作業系統是 Debian 6.0 X64 ( 應該是 QUME 或 KVM 的 VM )
依照 README 的準備工作後,執行 phpbrew 都是完全沒有反應的,而 php 指令也無法使用。
不過將 suhosin 停用就能正常使用 phpbrew 。
當我開始嘗試安裝 php 5.4 仍然失敗。
===> Downloading http://www.php.net/distributions/php-5.4.11.tar.bz2
######################################################################## 100.0%
===> Extracting...
Build Dir: /opt/phpbrew/build/php-5.4.11
===> Applying patch - apxs2 module version name ...
===> Configuring php-5.4.11...
Use tail command to see what's going on:
$ tail -f /opt/phpbrew/php/php-5.4.11/build.log
===> Building php-5.4.11...
/opt/phpbrew/build/php-5.4.11/ext/zlib/zlib.c:1023: warning: initialization from incompatible pointer type
/opt/phpbrew/build/php-5.4.11/ext/curl/interface.c: In function ‘zif_curl_getinfo’:
/opt/phpbrew/build/php-5.4.11/ext/curl/interface.c:2470: warning: call to ‘_curl_easy_getinfo_err_curl_slist’ declared with attribute warning: curl_easy_getinfo expects a pointer to struct curl_slist * for this info
/opt/phpbrew/build/php-5.4.11/ext/curl/interface.c:2580: warning: call to ‘_curl_easy_getinfo_err_curl_slist’ declared with attribute warning: curl_easy_getinfo expects a pointer to struct curl_slist * for this info
/opt/phpbrew/build/php-5.4.11/ext/curl/interface.c: In function ‘_php_curl_setopt’:
/opt/phpbrew/build/php-5.4.11/ext/curl/interface.c:1878: warning: call to ‘_curl_easy_setopt_err_long’ declared with attribute warning: curl_easy_setopt expects a long argument for this option
/opt/phpbrew/build/php-5.4.11/ext/curl/interface.c:2013: warning: call to ‘_curl_easy_setopt_err_progress_cb’ declared with attribute warning: curl_easy_setopt expects a curl_progress_callback argument for this option
/opt/phpbrew/build/php-5.4.11/ext/curl/streams.c: In function ‘php_curl_stream_opener’:
/opt/phpbrew/build/php-5.4.11/ext/curl/streams.c:316: warning: call to ‘_curl_easy_setopt_err_progress_cb’ declared with attribute warning: curl_easy_setopt expects a curl_progress_callback argument for this option
virtual memory exhausted: Cannot allocate memory
make: *** [ext/fileinfo/libmagic/apprentice.lo] Error 1
目前也找不到任何可以解決的辦法,不知道是不是 Bug 還是環境配置問題?
Would it be possible to add an option to optionally install pyrus?
I've been trying for several hours without luck. Drupal installation thrown this error:
PDOException: could not find driver in lock_may_be_available() (line 167 of /Users/..../Satio/Desarrollo/php/drupal-7.15/includes/lock.inc).
Should I have to configure php by hand this way?
'./configure' '--prefix=/Users/aldo/.phpbrew/php/php-5.4.6' '--with-config-file-path=/Users/aldo/.phpbrew/php/php-5.4.6/etc' '--with-config-file-scan-dir=/Users/aldo/.phpbrew/php/php-5.4.6/var/db' '--with-pear=/Users/aldo/.phpbrew/php/php-5.4.6/lib/php' '--disable-all' '--enable-bcmath' '--enable-cli' '--enable-ctype' '--enable-dom' '--enable-exif' '--enable-fileinfo' '--enable-filter' '--enable-hash' '--enable-fpm' '--with-xsl' '--with-tidy' '--with-xmlrpc' '--enable-json' '--enable-libxml' '--enable-mbregex' '--enable-mbstring' '--enable-phar' '--enable-session' '--enable-short-tags' '--enable-simplexml' '--enable-sockets' '--enable-tokenizer' '--enable-xml' '--enable-xmlreader' '--enable-xmlwriter' '--enable-zip' '--with-bz2' '--with-mhash' '--with-pcre-regex' '--with-zlib' '--with-libxml-dir' '--with-curl' '--with-openssl' '--with-libedit=/usr' '--with-readline' '--with-apxs2=/usr/sbin/apxs' '--with-pear' '--enable-pdo' '--with-sqlite3' '--with-mysql=mysqlnd' '--with-mysqli=mysqlnd' '--with-pdo-mysql=shared'
After that, should I have to enable extension_dir and add extension=pdo_mysql.so within php.ini ? or under var/db/pdo.ini that has an entry extension=pdo_mysql.so ?
Thanks.
It seems Exception not defined inside PhpBrew/Tasks ...
$ phpbrew install php-5.4.12 +default +mysql +intl +gettext +gd +apxs2=/usr/bin/apxs2
===> Downloading from http://www.php.net/distributions/php-5.4.12.tar.bz2
curl: (33) HTTP server doesn't seem to support byte ranges. Cannot resume.
===> php-5.4.12.tar.bz2 downloaded.
Found existing php-5.4.12, Skip extracting.
PHP Fatal error: Class 'PhpBrew\Tasks\Exception' not found in phar:///usr/bin/phpbrew/PhpBrew/Tasks/Apxs2CheckTask.php on line 2
PHP Stack trace:
PHP 1. {main}() /usr/bin/phpbrew:0
PHP 2. require() /usr/bin/phpbrew:6
PHP 3. CLIFramework\Application->run() phar:///usr/bin/phpbrew/scripts/phpbrew-emb.php:2
PHP 4. CLIFramework\CommandBase->executeWrapper() phar:///usr/bin/phpbrew/CLIFramework/Application.php:2
PHP 5. call_user_func_array() phar:///usr/bin/phpbrew/CLIFramework/CommandBase.php:2
PHP 6. PhpBrew\Command\InstallCommand->execute() phar:///usr/bin/phpbrew/CLIFramework/CommandBase.php:2
PHP 7. PhpBrew\Builder->configure() phar:///usr/bin/phpbrew/PhpBrew/Command/InstallCommand.php:2
PHP 8. PhpBrew\Tasks\Apxs2CheckTask->check() phar:///usr/bin/phpbrew/PhpBrew/Builder.php:2
Could you please add a section to your readme, about how to compile the php apache2 module with phpbrew?
I'm struggling with this....
Many thanks...
在 Mac OS X 10.8 執行以下指令時:
phpbrew install php-5.4.x +default
出現以下錯誤:
configure: error: Unable to detect ICU prefix or no failed. Please verify ICU install prefix and make sure icu-config works.
解決方法:
brew install icu4c
brew link icu4c
I can't install the newest php ( 5.4.0 ) through the instructions !
If you need any other information, plz make me know ;)
Thanks for your reading !
===> Building php-5.4.0...
sh: -c: line 0: syntax error near unexpected token `>'
sh: -c: line 0: `make &>> /Users/EragonJ/.phpbrew/php/php-5.4.0/build.log'
GNU bash, version 3.2.48(1)-release (x86_64-apple-darwin10.0)
I'm getting hundreds of warnings any way I install any version. I made a gist because its like 3k lines of warnings:
https://gist.github.com/4587365
(this was using $ sudo phpbrew install php-5.4.11 +default+debug+dbs+apxs2
)
Install works, and i can run from the command line, but I cannot get the apxs2 option to work no matter what i do. I've tried linking to /usr/sbin/apxs
and it didn't work, and i've tried default.
I've checked the PHPbrew source code and looked for the errors that might be thrown with bad apxs2 calls and none of the errors are showing, but also if any SO file gets built, i cannot find it.
I've checked /Users/[USERNAME]/.phpbrew/build/php-5.4.11/libs
and /usr/libexec/apache2/
and its not in either place.
Am I doing something wrong?
On 10.7.5, I get the errors below after following the install steps (except that there was no brew recipe for glibtool so that was not installed – is that the problem?) and trying phpbrew install 5.4.7 +default. Same problem without +default.
Users/jed/.phpbrew/build/php-5.4.7/ext/zlib/zlib.c:1023: warning: initialization from incompatible pointer type
/Users/jed/.phpbrew/build/php-5.4.7/ext/intl/dateformat/dateformat_format.c: In function ‘internal_get_timestamp’:
/Users/jed/.phpbrew/build/php-5.4.7/ext/intl/dateformat/dateformat_format.c:109: warning: assignment discards qualifiers from pointer target type
/Users/jed/.phpbrew/build/php-5.4.7/ext/intl/dateformat/dateformat_parse.c: In function ‘internal_parse_to_localtime’:
/Users/jed/.phpbrew/build/php-5.4.7/ext/intl/dateformat/dateformat_parse.c:95: warning: assignment discards qualifiers from pointer target type
/Users/jed/.phpbrew/build/php-5.4.7/ext/intl/resourcebundle/resourcebundle.c: In function ‘resourcebundle_extract_value’:
/Users/jed/.phpbrew/build/php-5.4.7/ext/intl/resourcebundle/resourcebundle.c:44: warning: passing argument 1 of ‘_efree’ discards qualifiers from pointer target type
/Users/jed/.phpbrew/build/php-5.4.7/ext/json/json.c: In function ‘json_escape_string’:
/Users/jed/.phpbrew/build/php-5.4.7/ext/json/json.c:372: warning: unknown conversion type character ‘k’ in format
/Users/jed/.phpbrew/build/php-5.4.7/ext/json/json.c: In function ‘php_json_encode’:
/Users/jed/.phpbrew/build/php-5.4.7/ext/json/json.c:588: warning: unknown conversion type character ‘k’ in format
/Users/jed/.phpbrew/build/php-5.4.7/ext/mbstring/libmbfl/filters/mbfilter_iso2022jp_mobile.c:51: warning: initialization from incompatible pointer type
/Users/jed/.phpbrew/build/php-5.4.7/ext/pdo/pdo_stmt.c: In function ‘really_register_bound_param’:
/Users/jed/.phpbrew/build/php-5.4.7/ext/pdo/pdo_stmt.c:323: warning: conversion lacks type at end of format
/Users/jed/.phpbrew/build/php-5.4.7/ext/spl/php_spl.c: In function ‘php_spl_object_hash’:
/Users/jed/.phpbrew/build/php-5.4.7/ext/spl/php_spl.c:794: warning: format ‘%016x’ expects type ‘unsigned int’, but argument 4 has type ‘intptr_t’
/Users/jed/.phpbrew/build/php-5.4.7/ext/spl/php_spl.c:794: warning: format ‘%016x’ expects type ‘unsigned int’, but argument 5 has type ‘intptr_t’
/Users/jed/.phpbrew/build/php-5.4.7/ext/standard/var.c: In function ‘php_var_export_ex’:
/Users/jed/.phpbrew/build/php-5.4.7/ext/standard/var.c:439: warning: conversion lacks type at end of format
/Users/jed/.phpbrew/build/php-5.4.7/ext/xsl/xsltprocessor.c: In function ‘zif_xsl_xsltprocessor_transform_to_doc’:
/Users/jed/.phpbrew/build/php-5.4.7/ext/xsl/xsltprocessor.c:669: warning: assignment discards qualifiers from pointer target type
In file included from /usr/local/Cellar/icu4c/49.1.2/include/unicode/utypes.h:36,
from /Users/jed/.phpbrew/build/php-5.4.7/ext/intl/grapheme/grapheme.h:21,
from /Users/jed/.phpbrew/build/php-5.4.7/ext/intl/php_intl.h:26,
from main/internal_functions_cli.c:45:
/usr/local/Cellar/icu4c/49.1.2/include/unicode/umachine.h:278: error: redefinition of typedef ‘UChar’
/usr/include/libxml2/libxml/encoding.h:41: error: previous declaration of ‘UChar’ was here
make: *** [main/internal_functions_cli.lo] Error 1
I think PHP is more demanding with dependencies than perl, python, and ruby because it comes with a lot of web functionality built in. How about a command to check for dependencies and provide instructions? And for a couple of things, like re2c, which are missing from some package repositories, building dependencies would be nice.
BTW this is great. I especially like the variant support.
When building PHP with either curl or ext/intl on these platforms, libstdc++ is not properly linked, causing the build to fail.
While it's a well-known problem (there are several php.internals thread and bugs.php.net issue reports related to this), there is no solution currently on the 5.3 branch; it has been fixed for 5.4 and greater.
In the meantime, the "solution" is to manually edit the generated Makefile
following configure
, and add the following to the EXTRA_LIBS
declaration: -lstdc++
.
Unfortunately, this does not work with phpbrew
as it's an automated process. My suggestions:
configure
, append the flag to the EXTRA_LIBS
declaration in the Makefile
.phpbrew
to tell it to make the Makefile
additionlibstdc++.so.6: could not read symbols: Invalid operation
or similar text, and, if found, make the addition to the Makefile
, store a flag somewhere (so phpbrew
remembers this for future builds), and re-build.Hi c9s:
Is it a bug or feature?
I try the following command phpbrew switch off
to switch php back to system version. But, it seems useless until I restart the terminal. But, if I switch to another php version installed by phpbrew, it worked like a charm. Weird ...
Mark
Installing very old versions of PHP means you've got to patch PHP in order to get it to build. It would be great to be able to patch the PHP version after it's extracted.
I ran into this when I tried to install PHP 5.1.6 (yikes, I know) with curl. The code is mostly there, but I just needed to patch the curl extension to build against a newer version of lib curl. Since it's extracted every time, I can't patch it manually.
Thanks!
First I have to say thank you for development for phpbrew (and Onion!!).
I tried to install PHP 4.4.9 with phpbrew, then encounted the following problem.
$ phpbrew -d install php-4.4.9
===> Downloading http://www.php.net/distributions/php-4.4.9.tar.bz2
######################################################################## 100.0%
===> Extracting...
Build Dir: /Users/dataich/.phpbrew/build/php-4.4.9
Variants: pdo, bz2, cli, fpm, posix, calendar, sockets, readline
===> Configuring php-4.4.9...
Use tail command to see what's going on:
$ tail -f /Users/dataich/.phpbrew/php/php-4.4.9/build.log
./configure '--prefix=/Users/dataich/.phpbrew/php/php-4.4.9' '--with-config-file-path=/Users/dataich/.phpbrew/php/php-4.4.9/etc' '--with-config-file-scan-dir=/Users/dataich/.phpbrew/php/php-4.4.9/var/db' '--with-pear=/Users/dataich/.phpbrew/php/php-4.4.9/lib/php' '--disable-all' '--enable-bcmath' '--enable-ctype' '--enable-dom' '--enable-exif' '--enable-fileinfo' '--enable-filter' '--enable-hash' '--enable-json' '--enable-libxml' '--enable-mbregex' '--enable-mbstring' '--enable-phar' '--enable-session' '--enable-short-tags' '--enable-simplexml' '--enable-sockets' '--enable-tokenizer' '--enable-xml' '--enable-xmlreader' '--enable-xmlwriter' '--enable-zip' '--with-xsl' '--with-tidy' '--with-xmlrpc' '--with-mhash' '--with-pcre-regex' '--with-zlib=/usr' '--with-curl=/usr' '--enable-pdo' '--with-bz2=/usr' '--enable-cli' '--enable-fpm' '--enable-posix' '--enable-calendar' '--enable-sockets' '--with-readline=/usr' '--with-libedit=/usr' > /Users/dataich/.phpbrew/php/php-4.4.9/build.log
configure: warning: You will need bison 1.28
configure: warning: Could not determine the type of SSL library used!
configure: warning: Building will fail in ZTS mode!
configure: error: history library required by readline not found
I suppose to that this problem caused by Mac OS X doen't have GNU readline library ( It is symlinks to editline)
$ ls -l /usr/include/readline/
total 16
lrwxr-xr-x 1 501 wheel 22 5 8 23:12 history.h -> ../editline/readline.h
lrwxr-xr-x 1 501 wheel 22 5 8 23:12 readline.h -> ../editline/readline.h
So I would like to give my own path to +readline option like
$ phpbrew -d install php-4.4.9 +readline=/usr/local/Celler/readline/6.2.2/readline
Hey I install php 5.4.8 with command
phpbrew install php-5.4.8 +sqlite
But I didn't see any extensions in ~/.phpbrew/php/php-5.4.8/lib/php/extensions/
Did I do something wrong?
When doing phpbrew install ext pdo_sqlite
it created a directory instead of a file for var/db/pdo_sqlite.ini
and therefor failed.
PHP Warning: file_put_contents(/Users/Henrik/.phpbrew/php/php-5.4.12/var/db/pdo_sqlite.ini): failed to open stream: Is a directory in phar:///usr/local/bin/phpbrew/PhpBrew/Utils.php on line 2
Warning: file_put_contents(/Users/Henrik/.phpbrew/php/php-5.4.12/var/db/pdo_sqlite.ini): failed to open stream: Is a directory in phar:///usr/local/bin/phpbrew/PhpBrew/Utils.php on line 2
I'm sorry If I'm did get something wrong, but after I ran phpbrew install php-5.4.8 +default
there's no php-fpm
in ~/.phpbrew/php/php-5.4.8/sbin/
.
How can I get php-fpm working ?
Thanks in advance.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.