DEV Community

Tao Liu
Tao Liu

Posted on

1

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

Qodo Takeover

Introducing Qodo Gen 1.0: Transform Your Workflow with Agentic AI

Rather than just generating snippets, our agents understand your entire project context, can make decisions, use tools, and carry out tasks autonomously.

Read full post

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay