GithubHelp home page GithubHelp logo

phpbrew switch 問題 about phpbrew HOT 9 CLOSED

jaceju avatar jaceju commented on July 21, 2024
phpbrew switch 問題

from phpbrew.

Comments (9)

c9s avatar c9s commented on July 21, 2024

Seems like there is a problem in the new phpbrew bash script

Jace Ju 於 2013年2月7日星期四寫道:

已經將 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 時則無此問題。


Reply to this email directly or view it on GitHubhttps://github.com//issues/50.

Best Regards,

Yo-An Lin

from phpbrew.

c9s avatar c9s commented on July 21, 2024

@racklin do you have an idea of this?

Lin Yo-An 於 2013年2月7日星期四寫道:

Seems like there is a problem in the new phpbrew bash script

Jace Ju 於 2013年2月7日星期四寫道:

已經將 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 時則無此問題。


Reply to this email directly or view it on GitHubhttps://github.com//issues/50.

Best Regards,

Yo-An Lin

Best Regards,

Yo-An Lin

from phpbrew.

racklin avatar racklin commented on July 21, 2024

@jaceju If you JUST use 'phpbrew switch' without any php version (php-x.y.z) , you will see this error message, you can try 'phpbrew switch php-x.y.z' again.

@c9s Is this not your original design idea?
https://github.com/c9s/phpbrew/blob/master/src/PhpBrew/Command/InitCommand.php#L213
if phpbrew switch without $2 argument, it will execute SwitchCommand.php

https://github.com/c9s/phpbrew/blob/master/src/PhpBrew/Command/SwitchCommand.php#L10
if SwitchCommand been launched , shell script error ?

from phpbrew.

jaceju avatar jaceju commented on July 21, 2024

@racklin But I want to switch to default PHP version on system. What is the command can I use?

from phpbrew.

jaceju avatar jaceju commented on July 21, 2024

@racklin 看來是我誤解 switch 的用意了...不過使用 off 跟 switch-off 又會出現另一個問題: #51

from phpbrew.

c9s avatar c9s commented on July 21, 2024

You may simply use 'off' command to use system php

phpbrew off

Jace Ju 於 2013年2月7日星期四寫道:

@racklin https://github.com/racklin 看來是我誤解 switch 的用意了...不過使用 off 跟
switch-off 又會出現另一個問題: #51 #51


Reply to this email directly or view it on GitHubhttps://github.com//issues/50#issuecomment-13223735.

Best Regards,

Yo-An Lin

from phpbrew.

jaceju avatar jaceju commented on July 21, 2024

@c9s OK

from phpbrew.

c9s avatar c9s commented on July 21, 2024

今天才仔細看這個問題,好像是 bash script 裡面的 switch code 被改爛了 XD

from phpbrew.

c9s avatar c9s commented on July 21, 2024

修正了,應該可以正確 switch, eg:
phpbrew switch 5.4.12

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.