PHP version manager

git主页:https://github.com/phpbrew/phpbrew

依赖环境:https://github.com/phpbrew/phpbrew/wiki/Requirement

使用时报错查看:

[root@slave2 ~]# tail -F /root/.phpbrew/build/php-5.5.22/build.log
开始安装:
[root@slave2 ~]# phpbrew install 5.5.22                            
===> phpbrew will now build 5.5.22
You haven't set any variant. A default set of extensions will be installed for the minimum requirement:
[bcmath, bz2, calendar, cli, ctype, dom, fileinfo, filter, ipc, json, mbregex, mbstring, mhash, pcntl, pcre, pdo, phar, posix, readline, sockets, tokenizer, xml, curl, zip, openssl]
Please run 'phpbrew variants' for more information.
===> Loading and resolving variants...
Checking distribution checksum...
Checksum matched: cd5a6321d71897dec26e29e795926669
===> Distribution file was successfully extracted, skipping...
Found existing build.log, renaming it to /root/.phpbrew/build/php-5.5.22/build.log.1427854142
===> Configuring 5.5.22...
Use tail command to see what's going on:
   $ tail -F /root/.phpbrew/build/php-5.5.22/build.log
===> Building...
Build finished: 4.4 minutes.
Installing...
---> Creating php-fpm.conf
---> Creating php.ini
---> Copying /root/.phpbrew/build/php-5.5.22/php.ini-development 
---> Found date.timezone is not set, patching...
Initializing pear config...
sh: pear: command not found
sh: pear: command not found
sh: pear: command not found
Enabling pear auto-discover...
sh: pear: command not found
Congratulations! Now you have PHP with 5.5.22 as php-5.5.22
To use the newly built PHP, try the line(s) below:
    $ phpbrew use php-5.5.22
Or you can use switch command to switch your default php to php-5.5.22:
    $ phpbrew switch php-5.5.22
Enjoy!

卸载:

phpbrew remove php-5.5.22


转载于:https://my.oschina.net/monkeyzhu/blog/394621

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值