DEV Community

Tao Liu
Tao Liu

Posted on

You don't have write permissions for the /usr/local/bin directory

gem install pry GIVES the following error:

ERROR: While executing gem ... (Gem::FilePermissionError)
You don't have write permissions for the /usr/local/bin directory.

To fix, RUN:

// ♥ cd /usr/local

// ♥ sudo chmod -R a+w bin/

Alt Text

Top comments (1)

Collapse
 
mg49 profile image
Michael Greco

Following