When Installing Gems "Error: Permission Denied Rb_Sysopen" Arch Linux

when installing gems Error: Permission denied rb_sysopen Arch Linux

You are having a permissions issue attempting to open

/usr/lib/ruby/gems/2.3.0/extensions/x86_64-linux/2.3.0/nokogiri-1.6.8/gem_make.out

Running this will most likely install correctly, but you may want to fix whatever the permission issue is instead:

sudo gem install rails

How to install a gem or update RubyGems if it fails with a permissions error

You don't have write permissions into the /Library/Ruby/Gems/1.8 directory.

means exactly that, you don't have permission to write there.

That is the version of Ruby installed by Apple, for their own use. While it's OK to make minor modifications to that if you know what you're doing, because you are not sure about the permissions problem, I'd say it's not a good idea to continue along that track.

Instead, I'll strongly suggest you look into using either rbenv or RVM to manage a separate Ruby, installed into a sandbox in your home directory, that you can modify/fold/spindle/change without worrying about messing up the system Ruby.

Between the two, I use rbenv, though I used RVM a lot in the past. rbenv takes a more "hands-off" approach to managing your Ruby installation. RVM has a lot of features and is very powerful, but, as a result is more intrusive. In either case, READ the installation documentation for them a couple times before starting to install whichever you pick.

`bundle install` failed due to permission denied

I found !

I had updated my rubygem like this gem update --system. But only my local gems were update due to the gem: --user-install restriction in my /etc/.gemrc. When bundler works, it use the global rubygem and not mine.

To fixe this issue, I updated the global rubygems with : sudo gem update --system --no-user-install.

And all works fine !

Can't Install Rails on Mac OS Catalina

If you want to have brew install this for you and you haven't updated brew in a while, I would recommend running:

HOMEBREW_NO_AUTO_UPDATE=1 brew install shared-mime-info

I ran just

brew install shared-mime-info

And it updated a bunch of packages I didn't want it to and broke my ruby installation.

I like spickermann's solution too. It seems to be what the package maintainers want you to do.

Error installing global on Arch linux

Explicitly link the tinfo library.
NCurses uses tinfo, from what I have read ncurses should include the tinfo functionality in it's own library, maybe this has changed recently.

Error message: Make sure that `gem install pg -v '0.18.1'` succeeds before bundling

My teacher at Bloc had the solution! If anybody have the same problem run the following commands:

  1. spring stop
  2. gem uninstall pg

  3. bundle install --without production

This solved my problem.

rails new [Blah] No such file

The overall problem is a lack of permissions to /usr/lib/ruby/. This can be fixed with

sudo chmod 777 /usr/lib/ruby

How to fix a bundle install nio4r error on Rails 5.0.0

I was able to fix the problem with:

brew update 

and

bundle update


Related Topics



Leave a reply



Submit