Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save stuarthannig/c3b0d7f18251b4f50040d77ca9e259a7 to your computer and use it in GitHub Desktop.
Save stuarthannig/c3b0d7f18251b4f50040d77ca9e259a7 to your computer and use it in GitHub Desktop.
How-to: Fix "Errno::EACCES: Permission denied - /.irb-history" when `brew install opentsdb` on Mac OS X Raw

PROBLEM:

Was trying to brew install opentsdb from CLI, but got:

Errno::EACCES: Permission denied - /Users/stuarthannig/.irb-history
  initialize at org/jruby/RubyFile.java:478
        open at org/jruby/RubyIO.java:1135
      (root) at /Users/stuarthannig/.rvm/scripts/irbrc.rb:32
        call at org/jruby/RubyProc.java:270
        call at org/jruby/RubyProc.java:224

Couldn't find any solutions upon searching the Internet. I did see that Homebrew was installing in a sandbox, and thought potentially that could lead to a permissions issue.

SOLUTION:

Run brew install opentsdb --no-sandbox for SUCCESS!

Hope this helps anyone out there avoid going down the rabbit hole.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment