I am having an issue that I'm hoping someone might have run into before and therefore can help me out with. I am having issue with installing the ruby-debug-ide gem in either 1.1 or 2.0 of rubymine. The error I recieve is as follows:
Following gems were not installed:
ruby-debug-ide: While executing gem ... (Errno::EACCES)
Permission denied - /opt/local/lib/ruby/gems/1.8/gems/ruby-debug-ide-0.4.9 Bulk updating Gem source index for: http://gems.rubyforge.org
Now I find this strange as gems will install fine using 'sudo gem install'. However when I try to install this particular gem using sudo gem install I get the following error:
s:1.8 ~s$ sudo gem install ruby-debug-ide -v=0.4.7
Bulk updating Gem source index for: http://gems.rubyforge.org
Building native extensions. This could take a while...
ERROR: Error installing ruby-debug-ide:
ERROR: Failed to build gem native extension.
/opt/local/bin/ruby extconf.rb install ruby-debug-ide -v=0.4.7
extconf.rb:10:in `initialize': wrong number of arguments (0 for 1) (ArgumentError)
from extconf.rb:10:in `new'
Gem files will remain installed in /opt/local/lib/ruby/gems/1.8/gems/ruby-debug-ide-0.4.7 for inspection.
Results logged to /opt/local/lib/ruby/gems/1.8/gems/ruby-debug-ide-0.4.7/ext/gem_make.out
I have about pulled my hair out on this one. I've tried env paths changes... and to be honest I'm not sure 100% what I should be looking for in my setup that might be causing this issue. Below are some outputs of various indicators of how I am setup. Yes I realize I am working way behind the curve. Unfortunately I am supporting an app that was written 4 years ago and was never brought up to speed. I am also fairly new to ruby/rails so I'm still learning as I go.
Any help will be appreciated!
Mac OSX 10.5.5
s:1.8 ~$ echo $PATH
s:1.8 ~$ rails -v
s:1.8 ~$ ruby -v
ruby 1.8.7 (2009-06-12 patchlevel 174) [i686-darwin9]
s:1.8 spspriggs$ gem -v
s:1.8 ~$ gem env
- RUBYGEMS VERSION: 1.0.1 (1.0.1)
- RUBY VERSION: 1.8.7 (2009-06-12 patchlevel 174) [i686-darwin9]
- INSTALLATION DIRECTORY: /opt/local/lib/ruby/gems/1.8
- RUBY EXECUTABLE: /opt/local/bin/ruby
- RUBYGEMS PLATFORMS:
- GEM PATHS:
- GEM CONFIGURATION:
- :update_sources => true
- :verbose => true
- :benchmark => false
- :backtrace => false
- :bulk_threshold => 1000
- REMOTE SOURCES: