Phpbrew: Invalid argument php-5.3.29

Created on 17 Aug 2015  路  3Comments  路  Source: phpbrew/phpbrew

I installed PHP 5.3.29 successfully, but when I want to use it, I get Invalid argument php-5.3.29 error. Here is the full workflow:

user@user-UX32VD:/$ phpbrew install 5.3.29 +default+dbs
===> phpbrew will now build 5.3.29
PHP 5.3 requires +intl, enabled by default.
===> Loading and resolving variants...
Checking distribution checksum...
Checksum matched: 9469e240cbe6ac865aeaec89b253dd30
===> Distribution file was successfully extracted, skipping...
Found existing Makefile, running make clean to ensure everything will be rebuilt.
You can append --no-clean option after the install command if you don't want to rebuild.
===> Running make clean: make -C /home/user/.phpbrew/build/php-5.3.29 --quiet clean
Found existing build.log, renaming it to /home/user/.phpbrew/build/php-5.3.29/build.log.1439812186
===> Configuring 5.3.29...
Use tail command to see what's going on:
   $ tail -F /home/user/.phpbrew/build/php-5.3.29/build.log
===> Checking if php-5.3 source is on 64bit machine
===> Applying patch file for php5.3.x on 64bit machine.
===> Building...
Build finished: 5.3 minutes.
Installing...
---> Creating php-fpm.conf
---> Creating php.ini
---> Copying /home/user/.phpbrew/build/php-5.3.29/php.ini-development 
Found existing /home/user/.phpbrew/php/php-5.3.29/etc/php.ini.
---> Found date.timezone is not set, patching...
Initializing pear config...
config-set succeeded
config-set succeeded
config-set succeeded
Enabling pear auto-discover...
config-set succeeded
Congratulations! Now you have PHP with 5.3.29 as php-5.3.29
To use the newly built PHP, try the line(s) below:
    $ phpbrew use php-5.3.29
Or you can use switch command to switch your default php to php-5.3.29:
    $ phpbrew switch php-5.3.29
Enjoy!
user@user-UX32VD:/$ phpbrew use php-5.3.29
Invalid argument php-5.3.29
user@user-UX32VD:/$ tail -F /home/user/.phpbrew/build/php-5.3.29/build.log
[PEAR] Archive_Tar    - already installed: 1.3.12
[PEAR] Console_Getopt - already installed: 1.3.1
[PEAR] Structures_Graph- already installed: 1.0.4
[PEAR] XML_Util       - already installed: 1.2.3
[PEAR] PEAR           - already installed: 1.9.5
Wrote PEAR system config file at: /home/user/.phpbrew/php/php-5.3.29/etc/pear.conf
You may want to add: /home/user/.phpbrew/php/php-5.3.29/lib/php to your php.ini include_path
/home/user/.phpbrew/build/php-5.3.29/build/shtool install -c ext/phar/phar.phar /home/user/.phpbrew/php/php-5.3.29/bin
ln -s -f /home/user/.phpbrew/php/php-5.3.29/bin/phar.phar /home/user/.phpbrew/php/php-5.3.29/bin/phar
Installing PDO headers:          /home/user/.phpbrew/php/php-5.3.29/include/php/ext/pdo/

Can someone advice me what I have done wrong?

Most helpful comment

Hi!
Have you add this lines into your .bashrc or .zshrc and source this last one ?

source ~/.phpbrew/bashrc

All 3 comments

Hi!
Have you add this lines into your .bashrc or .zshrc and source this last one ?

source ~/.phpbrew/bashrc

Yes, I have added it to the end of the ~/.bashrc file.

Edit: However, I have also the ~/.zshrc file and when I added the line there, it started working. Thanks for the advice!

Thank you, for help! It's work fine! :+1:

Was this page helpful?
0 / 5 - 0 ratings