Unable to install ruby-debug-ide RubyMine 2016 Arch linux

I'm attempting to install ruby-debug-ide on an Arch system. It's not yet up in one of their many repos (just issued a merge to add it to quarry) for Ruby gems. I tried installing it as root with `gem install ruby-debug-ide --no-user-install`, and I receive this error.
 

Building native extensions. This could take a while...
ERROR: Error installing ruby-debug-ide:
ERROR: Failed to build gem native extension.

current directory: /usr/lib/ruby/gems/2.3.0/gems/ruby-debug-ide-0.6.0/ext
/usr/bin/ruby mkrf_conf.rb
Installing base gem
Building native extensions. This could take a while...

current directory: /usr/lib/ruby/gems/2.3.0/gems/ruby-debug-ide-0.6.0/ext
/usr/bin/ruby -rubygems /usr/lib/ruby/gems/2.3.0/gems/rake-11.1.2/bin/rake RUBYARCHDIR=/usr/lib/ruby/gems/2.3.0/extensions/x86_64-linux/2.3.0/ruby-debug-ide-0.6.0 RUBYLIBDIR=/usr/lib/ruby/gems/2.3.0/extensions/x86_64-linux/2.3.0/ruby-debug-ide-0.6.0
/usr/bin/ruby: No such file or directory -- /usr/lib/ruby/gems/2.3.0/gems/rake-11.1.2/bin/rake (LoadError)

rake failed, exit code 1

Gem files will remain installed in /usr/lib/ruby/gems/2.3.0/gems/ruby-debug-ide-0.6.0 for inspection.
Results logged to /usr/lib/ruby/gems/2.3.0/extensions/x86_64-linux/2.3.0/ruby-debug-ide-0.6.0/gem_make.out

Anyone know how to install the debugger correctly?

1 comment

I had this same problem, it should be just a matter of having write access to the directory the gems are being installed to.

7:15:21 PM Error running set-custom-icons: Failed to Install Gems. Following gems were not installed:
/usr/share/rubymine/rb/gems/ruby-debug-ide-0.6.1.beta2.gem:  Error installing ruby-debug-ide-0.6.1.beta2.gem:
     ERROR: Failed to build gem native extension.      current directory: /home/nick/.gem/ruby/2.3.0/gems/ruby-debug-ide-0.6.1.beta2/ext /usr/bin/ruby mkrf_conf.rb Installing base gem You don't have write permissions for the /usr/lib/ruby/gems/2.3.0 directory. /usr/lib/ruby/2.3.0/rubygems/installer.rb:685:in `verify_gem_home'   /usr/lib/ruby/2.3.0/rubygems/installer.rb:805:in `pre_install_checks'   /usr/lib/ruby/2.3.0/rubygems/installer.rb:272:in `install'   /usr/lib/ruby/2.3.0/rubygems/request_set.rb:167:in `block in install'   /usr/lib/ruby/2.3.0/rubygems/request_set.rb:151:in `each'   /usr/lib/ruby/2.3.0/rubygems/request_set.rb:151:in `install'   /usr/lib/ruby/2.3.0/rubygems/dependency_installer.rb:405:in `install'   mkrf_conf.rb:35:in `rescue in '   mkrf_conf.rb:28:in `'  rake failed, exit code 1  Gem files... (show balloon)

I ran:

sudo chown -R nick:nick /usr/lib/ruby/gems/2.3.0
0

Please sign in to leave a comment.