0

Slather installation is giving error in Mac.

ERROR: While executing gem ... (Gem::FilePermissionError) You don't have write permissions for the /Library/Ruby/Gems/2.3.0 directory.

Savitha
  • 541
  • 6
  • 19

3 Answers3

0

For zsh, ensure that your ~/.zshrc has this:

export PATH="$HOME/.rbenv/bin:$PATH"
eval "$(rbenv init -)"

Then restart shell. You should be able to run rbenv commands.

Savitha
  • 541
  • 6
  • 19
0

Slather README:

Setup for Xcode 5 and 6

Do you really want to use a gem that old?

Slather installation is giving error in Mac.

    You don't have write permissions for 
    the /Library/Ruby/Gems/2.3.0 directory.

Good thing. You don't want to mess with your system's ruby or else you might render your computer inoperable. Instead, install rvm or rbenv and use it to install your own ruby in your user directory (/Users/You)--where you have write permissions. Then you can do whatever you want to your own ruby.

7stud
  • 44,619
  • 13
  • 92
  • 117
0

I voted to close this as a duplicate of this question, where I already posted a detailed answer that solves the problem by installing a Ruby manager like the previous answer recommends. In the meantime, I thought I would link to my answer since the same solution applies: https://stackoverflow.com/a/54873916/928191

monfresh
  • 6,894
  • 1
  • 22
  • 20