Skip to content

Commit d987d05

Browse files
LaKingNathanWalker
authored andcommitted
chore: Ruby gem installation hints. (#15)
The installation Ruby on Catalina goes to `/usr/local/lib/ruby`, thus gem install's require `sudo`, and the PATH needs to be set accordingly.
1 parent a0b516e commit d987d05

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

environment-setup.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,8 @@ Add the following lines to your shell profile, usually `~/.bash_profile` or `~/.
208208
```shell
209209
# Add rubygems to the path
210210
export PATH=/opt/homebrew/lib/ruby/gems/2.7.0/bin:$PATH
211+
# or
212+
export PATH=/usr/local/lib/ruby/gems/2.7.0/bin:$PATH
211213
```
212214

213215
:::warning Important
@@ -218,12 +220,16 @@ In a new terminal window, install the **<abbr title="A package manager for manag
218220

219221
<!-- Note: xcodeproj seems to be installed when installing cocoapods via brew -->
220222
<!-- brew install cocoapods # this will install both cocoapods and xcodeproj -->
223+
<!-- gem install ... # requires root privileges on macOS. sudo works. -->
221224

222225
```cli
223-
gem install cocoapods
224-
gem install xcodeproj
226+
sudo gem install cocoapods
227+
sudo gem install xcodeproj
225228
```
226229

230+
Depending on installation methods, the ___location of ruby gems may vary. Make sure you have the right folder in your `$PATH` by running `which pod`.
231+
If the binary is not found run `gem env` to examine your folders, and update your `$PATH` in the login profile file.
232+
227233
Next install **<abbr title="Python package manager">pip</abbr>** and **<abbr title="Python 2 & 3 compatibility package used by NativeScript">six</abbr>** by running the following:
228234

229235
```cli

0 commit comments

Comments
 (0)