mirror of
https://github.com/pyenv/pyenv.git
synced 2024-11-07 20:31:01 -05:00
fix install instructions for ubuntu (using version 12.04, but should work for all versions)
This commit is contained in:
parent
2162054659
commit
7f1aefa09b
2 changed files with 22 additions and 6 deletions
14
README.md
14
README.md
|
@ -102,16 +102,24 @@ easy to fork and contribute any changes back upstream.
|
||||||
|
|
||||||
**Zsh note**: Modify your `~/.zshenv` file instead of `~/.bash_profile`.
|
**Zsh note**: Modify your `~/.zshenv` file instead of `~/.bash_profile`.
|
||||||
|
|
||||||
|
**Ubuntu note**: Ubuntu uses `~/.profile` for enabling certain path
|
||||||
|
changes. This file won't be read if you create a `~/.bash_profile`.
|
||||||
|
Therefore, it's recommended that you add this line and the one in
|
||||||
|
point 3 below to your `~/.profile`. This has the added advantage
|
||||||
|
of working under both bash and zsh.
|
||||||
|
|
||||||
3. Add rbenv init to your shell to enable shims and autocompletion.
|
3. Add rbenv init to your shell to enable shims and autocompletion.
|
||||||
|
|
||||||
$ echo 'eval "$(rbenv init -)"' >> ~/.bash_profile
|
$ echo 'eval "$(rbenv init -)"' >> ~/.bash_profile
|
||||||
|
|
||||||
**Zsh note**: Modify your `~/.zshenv` file instead of `~/.bash_profile`.
|
**Zsh note**: Modify your `~/.zshenv` file instead of `~/.bash_profile`.
|
||||||
|
|
||||||
|
**Ubuntu note**: Same as Ubuntu note for point 2 above.
|
||||||
|
|
||||||
4. Restart your shell so the path changes take effect. You can now
|
4. Restart your shell as a login shell so the path changes take effect.
|
||||||
begin using rbenv.
|
You can now begin using rbenv.
|
||||||
|
|
||||||
$ exec $SHELL
|
$ exec $SHELL -l
|
||||||
|
|
||||||
5. Install Ruby versions into `~/.rbenv/versions`. For example, to
|
5. Install Ruby versions into `~/.rbenv/versions`. For example, to
|
||||||
install Ruby 1.9.3-p327, download and unpack the source, then run:
|
install Ruby 1.9.3-p327, download and unpack the source, then run:
|
||||||
|
|
|
@ -82,16 +82,24 @@ easy to fork and contribute any changes back upstream.
|
||||||
|
|
||||||
**Zsh note**: Modify your `~/.zshenv` file instead of `~/.bash_profile`.
|
**Zsh note**: Modify your `~/.zshenv` file instead of `~/.bash_profile`.
|
||||||
|
|
||||||
|
**Ubuntu note**: Ubuntu uses `~/.profile` for enabling certain path
|
||||||
|
changes. This file won't be read if you create a `~/.bash_profile`.
|
||||||
|
Therefore, it's recommended that you add this line and the one in
|
||||||
|
point 3 below to your `~/.profile`. This has the added advantage
|
||||||
|
of working under both bash and zsh.
|
||||||
|
|
||||||
3. Add rbenv init to your shell to enable shims and autocompletion.
|
3. Add rbenv init to your shell to enable shims and autocompletion.
|
||||||
|
|
||||||
$ echo 'eval "$(rbenv init -)"' >> ~/.bash_profile
|
$ echo 'eval "$(rbenv init -)"' >> ~/.bash_profile
|
||||||
|
|
||||||
**Zsh note**: Modify your `~/.zshenv` file instead of `~/.bash_profile`.
|
**Zsh note**: Modify your `~/.zshenv` file instead of `~/.bash_profile`.
|
||||||
|
|
||||||
|
**Ubuntu note**: Same as Ubuntu note for point 2 above.
|
||||||
|
|
||||||
4. Restart your shell so the path changes take effect. You can now
|
4. Restart your shell as a login shell so the path changes take effect.
|
||||||
begin using rbenv.
|
You can now begin using rbenv.
|
||||||
|
|
||||||
$ exec $SHELL
|
$ exec $SHELL -l
|
||||||
|
|
||||||
5. Install Ruby versions into `~/.rbenv/versions`. For example, to
|
5. Install Ruby versions into `~/.rbenv/versions`. For example, to
|
||||||
install Ruby 1.9.3-p327, download and unpack the source, then run:
|
install Ruby 1.9.3-p327, download and unpack the source, then run:
|
||||||
|
|
Loading…
Reference in a new issue