castwide / vscode-solargraph

A Visual Studio Code extension for Solargraph.
Other
425 stars 23 forks source link

Can't install solargraph gem #76

Closed sluny closed 6 years ago

sluny commented 6 years ago
screen shot 2018-09-10 at 6 24 50 pm

Shachars-MacBook-Pro:cmsc330fall18 ShacharLuny$ gem install solargraph ERROR: While executing gem ... (Gem::FilePermissionError) You don't have write permissions for the /Library/Ruby/Gems/2.3.0 directory. Shachars-MacBook-Pro:cmsc330fall18 ShacharLuny$

castwide commented 6 years ago

It looks like you're trying to install the gem to a system-level installation of Ruby and your user account doesn't have the proper permissions. If that's the case, you should see the same error with any other gem you try to install.

A couple links that might help:

http://help.rubygems.org/discussions/problems/26283-gems-broken-on-mac-os-x-sierra

https://stackoverflow.com/questions/18599889/error-while-executing-gem-gemfilepermissionerror