Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RBENV_VERSION environment variable is used #39

Open
joshuaspence opened this issue Feb 4, 2016 · 1 comment
Open

RBENV_VERSION environment variable is used #39

joshuaspence opened this issue Feb 4, 2016 · 1 comment

Comments

@joshuaspence
Copy link

When I run phpenv help the output text seems to refer to rbenv rather than phpenv. Furthermore, the PHPENV_VERSION environment variable seems to do nothing whereas RBENV_VERSION seems to work.

> phpenv
rbenv 1.0.0-16-gd6ab394
Usage: rbenv <command> [<args>]

Some useful rbenv commands are:
   commands    List all available rbenv commands
   local       Set or show the local application-specific Ruby version
   global      Set or show the global Ruby version
   shell       Set or show the shell-specific Ruby version
   rehash      Rehash rbenv shims (run this after installing executables)
   version     Show the current Ruby version and its origin
   versions    List all Ruby versions available to rbenv
   which       Display the full path to an executable
   whence      List all Ruby versions that contain the given executable

See `rbenv help <command>' for information on a specific command.
For full documentation, see: https://github.com/rbenv/rbenv#readme

> phpenv version
rbenv: version `5.3.29' is not installed (set by RBENV_VERSION environment variable)
 (set by RBENV_VERSION environment variable)
@3onyc
Copy link

3onyc commented Aug 21, 2016

Adding this below bin/phpenv-install.sh#L83 should do the trick:

sed -i -e 's/RBENV_VERSION/PHPENV_VERSION/g' "$PHPENV_ROOT"/libexec/rbenv-*

Keep in mind that phpenv-composer assumes it's RBENV_VERSION so you'd have to fix that as well if you use it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants