This Question is Not Answered

1 "correct" answer available (4 pts)
4 Replies Last post: May 3, 2014 8:09 PM by Louis-Philippe Carignan  
Louis-Philippe Carignan Newbie 5 posts since
Apr 19, 2014
Currently Being Moderated

Apr 29, 2014 7:28 PM

Debugging problem in RubyMine 6.3

Hi,

 

I tried debugging a RoR app with RubyMine 6.3 on Mac OS X (Mavericks) with Ruby 2.0.0.

 

Unfortunately, when I start my debugging environment, I get this error message from RubyMine:

 

Error running Development: Ballyhoo

            Failed to Install Gems. Following gems were not installed:

            /Applications/RubyMine.app/rb/gems/debase-0.0.9.gem:  While executing gem ... (Errno::EACCES)

            Permission denied - /Users/lpcarignan/.gem/ruby/2.0.0/extensions/universal-darwin-13 Building native extensions.  This could take a while...

 

As RubyMine couldn't install debase, I tried to install it manually in /Applications/RubyMine/rb/gems. It installed without any problems.

 

Then, when I run the debugger again, I get this error message:

 

usr/bin/ruby -e at_exit{sleep(1)};$stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift) /Users/lpcarignan/.gem/ruby/2.0.0/gems/ruby-debug-ide-0.4.23.beta1/bin/rdebug-ide --disable-int-handler --port 56037 --dispatcher-port 56038 -- /Users/lpcarignan/RubymineProjects/Ballyhoo/bin/rails server -b 0.0.0.0 -p 3000 -e development

/Library/Ruby/Site/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require': cannot load such file -- debase_internals (LoadError)

from /Library/Ruby/Site/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'

from /Users/lpcarignan/.gem/ruby/2.0.0/gems/debase-0.0.9/lib/debase.rb:4:in `<top (required)>'

from /Library/Ruby/Site/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'

from /Library/Ruby/Site/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'

from /Users/lpcarignan/.gem/ruby/2.0.0/gems/ruby-debug-ide-0.4.23.beta1/lib/ruby-debug-ide.rb:8:in `<top (required)>'

from /Users/lpcarignan/.gem/ruby/2.0.0/gems/ruby-debug-ide-0.4.23.beta1/bin/rdebug-ide:8:in `require_relative'

from /Users/lpcarignan/.gem/ruby/2.0.0/gems/ruby-debug-ide-0.4.23.beta1/bin/rdebug-ide:8:in `<top (required)>'

from -e:1:in `load'

from -e:1:in `<main>'

 

Would somebody have an idea on what I should do to fix this?

 

Debugger problems seem to be a recurring theme with RubyMine:

 

 

Thanks,

 

Louis-Philippe

Fred Boldireff Newbie 2 posts since
Apr 29, 2014
Currently Being Moderated
Apr 29, 2014 11:38 PM in response to: Louis-Philippe Carignan
Re: Debugging problem in RubyMine 6.3

Hi Louis-Philippe,

 

My personal experience would suggest to stay away from using the Apple system provided ruby. You can't stay up to date, and you will bump either into problems when building gems with native extensions (who needs Universal Binaries anymore?), or some permission issues on the file system forcing you to use sudo.

 

You have the choice of using RVM (if you need to develop serveral projects with different ruby versions), or installing ruby via Homebrew (that's what I do, as I use only ruby 2.1.1 both in dev and in prod).

 

Using my 'brewed' ruby 2.1.1, I can use the Rubymine 6.3 debugger without any problem.

 

Cheers,

Fred.

Fred Boldireff Newbie 2 posts since
Apr 29, 2014
Currently Being Moderated
May 2, 2014 10:01 PM in response to: Louis-Philippe Carignan
Re: Debugging problem in RubyMine 6.3

Hi Louis-Philippe,

 

Before digging into your rails problem, I think something went wrong during your ruby 2.1.1 installation: have a look at my screenshot, the folder is named 2.1.1 not 2.1.1_1...

 

You should try a:

 

%brew remove ruby

 

... check your /usr/local/Cellar doesn't have any ruby folder, then:

 

%brew install ruby

 

Fred.

Attachments:

More Like This

  • Retrieving data ...