Merge pull request #1537 from dipree/dipree/update-alerts-readme

Update alerts in README
This commit is contained in:
Mislav Marohnić 2023-11-21 15:22:17 +01:00 committed by GitHub
commit d10388a052
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -64,7 +64,7 @@ That's it! You are now ready to [install some Ruby versions](#installing-ruby-ve
### Basic Git Checkout ### Basic Git Checkout
> **Note** > [!NOTE]
> For a more automated install, you can use [rbenv-installer](https://github.com/rbenv/rbenv-installer#rbenv-installer). If you do not want to execute scripts downloaded from a web URL or simply prefer a manual approach, follow the steps below. > For a more automated install, you can use [rbenv-installer](https://github.com/rbenv/rbenv-installer#rbenv-installer). If you do not want to execute scripts downloaded from a web URL or simply prefer a manual approach, follow the steps below.
This will get you going with the latest version of rbenv without needing a system-wide install. This will get you going with the latest version of rbenv without needing a system-wide install.
@ -122,7 +122,7 @@ rbenv install 3.1.2
For troubleshooting `BUILD FAILED` scenarios, check the [ruby-build Discussions section](https://github.com/rbenv/ruby-build/discussions/categories/build-failures). For troubleshooting `BUILD FAILED` scenarios, check the [ruby-build Discussions section](https://github.com/rbenv/ruby-build/discussions/categories/build-failures).
> **Note** > [!NOTE]
> If the `rbenv install` command wasn't found, you can install ruby-build as a plugin: > If the `rbenv install` command wasn't found, you can install ruby-build as a plugin:
> ```sh > ```sh
> git clone https://github.com/rbenv/ruby-build.git "$(rbenv root)"/plugins/ruby-build > git clone https://github.com/rbenv/ruby-build.git "$(rbenv root)"/plugins/ruby-build
@ -145,7 +145,7 @@ Select a Ruby version for your project using `rbenv local 3.1.2`, for example. T
gem install bundler gem install bundler
``` ```
> **Warning** > [!WARNING]
> You _should not use sudo_ to install gems. Typically, the Ruby versions will be installed under your home directory and thus writeable by your user. If you get the “you don't have write permissions” error when installing gems, it's likely that your "system" Ruby version is still a global default. Change that with `rbenv global <version>` and try again. > You _should not use sudo_ to install gems. Typically, the Ruby versions will be installed under your home directory and thus writeable by your user. If you get the “you don't have write permissions” error when installing gems, it's likely that your "system" Ruby version is still a global default. Change that with `rbenv global <version>` and try again.
Check the location where gems are being installed with `gem env`: Check the location where gems are being installed with `gem env`: