From 1f8704f8764abe8c38718f772e8a9026b99b74bc Mon Sep 17 00:00:00 2001 From: Andrew Dassonville Date: Sat, 28 Oct 2017 07:52:02 -0700 Subject: [PATCH] Remove `sudo` from macOS troubleshooting instructions (#6486) Merge pull request 6486 --- docs/_docs/troubleshooting.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/_docs/troubleshooting.md b/docs/_docs/troubleshooting.md index d57cfacf..4ccc1643 100644 --- a/docs/_docs/troubleshooting.md +++ b/docs/_docs/troubleshooting.md @@ -74,7 +74,7 @@ apt update && apt install libffi-dev clang ruby-dev make On macOS, you may need to update RubyGems (using `sudo` only if necessary): ```sh -sudo gem update --system +gem update --system ``` If you still have issues, you can download and install new Command Line @@ -84,11 +84,11 @@ Tools (such as `gcc`) using the following command: xcode-select --install ``` -which may allow you to install native gems using this command (again using +which may allow you to install native gems using this command (again, using `sudo` only if necessary): ```sh -sudo gem install jekyll +gem install jekyll ``` Note that upgrading macOS does not automatically upgrade Xcode itself @@ -103,10 +103,10 @@ With the introduction of System Integrity Protection, several directories that were previously writable are now considered system locations and are no longer available. Given these changes, there are a couple of simple ways to get up and running. One option is to change the location where the gem will be -installed (again using `sudo` only if necessary): +installed (again, using `sudo` only if necessary): ```sh -sudo gem install -n /usr/local/bin jekyll +gem install -n /usr/local/bin jekyll ``` Alternatively, Homebrew can be installed and used to set up Ruby. This can be