git主页:
依赖环境:
使用时报错查看:
[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.22You 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 foundsh: pear: command not foundsh: pear: command not foundEnabling pear auto-discover...sh: pear: command not foundCongratulations! Now you have PHP with 5.5.22 as php-5.5.22To use the newly built PHP, try the line(s) below: $ phpbrew use php-5.5.22Or you can use switch command to switch your default php to php-5.5.22: $ phpbrew switch php-5.5.22Enjoy!
卸载:
phpbrew remove php-5.5.22