Skip to content

Commit 20496b5

Browse files
committed
Suggest to install rubies in a user-writable directory in the README
Otherwise `gem install` and `bundle install` (without `--path`) won't work without `sudo`. In fact the previous example install command wouldn't work at all without `sudo`.
1 parent ac39910 commit 20496b5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ PREFIX=/usr/local ./ruby-build-*/install.sh
4242
# As a standalone program
4343
$ ruby-build --list # lists latest stable releases for each Ruby
4444
$ ruby-build --definitions # lists all definitions, including outdated ones
45-
$ ruby-build 3.2.2 /opt/rubies/ruby-3.2.2 # installs Ruby 3.2.2
46-
$ ruby-build -d ruby-3.2.2 /opt/rubies # alternate form for the previous example
45+
$ ruby-build 3.2.2 ~/.rubies/ruby-3.2.2 # installs Ruby 3.2.2
46+
$ ruby-build -d ruby-3.2.2 ~/.rubies # alternate form for the previous example
4747

4848
# As an rbenv plugin
4949
$ rbenv install 3.2.2 # installs Ruby 3.2.2 to ~/.rbenv/versions/3.2.2

0 commit comments

Comments
 (0)