Debugging in an offline RubyMine3.0 installation

Hello,


I've installed RubyMine3.0 on my Ubuntu 10.04 machine which is connected to the Internet, and everything went smoothly.

I than tries to intall it on a similar machine which is not connected to the Internet and I have troubles debugging.

When starting the application with debug mode, I get a a mesaage saying the gem ruby-debug-ide is outdated, and whether I would like to update it.
Choosing no will work. choosing yes will fail saying ruby-debug-ide-0.4.15.gem & ruby-debug-base-0.10.5.jb2.gem are missing. I copied those gems from the Internet machine's RubyMine folder, and installed them on the offline machine. ruby-debug-ide failed to install (duel to lack of Internet), and ruby-debug-base was installed successfuly. This didn't help and I got the same result - It's like RubyMine has a different gem repository, since ruby-debug-base was installed successfuly.

I also tried copying the whole RubyMine folder from the online machine to the offline one, but nothing changed.
BTW, the RubyMine 2.0 on the same offline machine, work just fine.

My questions are:
1. How can I install ruby-debug-ide-0.4.15.gem on an offline machine?
2. Why RubyMine doesn't recognize installed gems (ruby-debug-base-0.10.5.jb2.gem)
3. Is debugging with old gems OK? If so, how can I get rid of the "gems are outdated" message every time I try to debug?


Please Advise,
Thanks,
Eytan.

14 comments
Comment actions Permalink

Hello Eytan,

My questions are:
1. How can I install ruby-debug-ide-0.4.15.gem on an offline machine?

You can just download the corresponding gem on online machine and copy it to the offline machine using flash stick as a possible solution.

2. Why RubyMine doesn't recognize installed gems (ruby-debug-base-0.10.5.jb2.gem)
3. Is debugging with old gems OK? If so, how can I get rid of the "gems are outdated" message every time I try to debug?

You should install the latest available gems. We've done a lot of work for fixing ruby debug crucial bugs lately and it is strongly recommended to have the latest gems installed to prevent segfaults, emergency exits etc.

Regards,
Oleg

0
Comment actions Permalink

Hi Oleg,

As I said, I did manage to copy the correct gems from the onlime machine to the offline one, but I've encountered two problems:

1. Installing the ruby-debug-ide.gem on the offline machine falis - the gem file was copied to the machine, but running "gem install ruby-debug-ide-0.4.16.gem" result in the following errors:
ERROR: Failed ro build gem native extensions
/usr/bin/ruby1.8 mkrtf_conf.rb
ERROR: http://rubygems.org/ does not appear ti be a repository

2. installing ruby-debug-base succedded (you can see it when running "gem list ruby-debu-base"), but rubymine does not recognize it, and still warns it is not updated.

Please advise,
Thanks,
Eytan

0
Comment actions Permalink

Hello Eytan,

There are several dependencies which should be installed before you can compile ruby-debug gems. Please try to install the following deb packages:

sudo apt-get install build-essential ruby1.8-dev

Hope this helps,
Oleg

0
Comment actions Permalink

Hi Oleg,

These packages are already installed on the machine (with the same version as on the online machine):
bulid-essential: 11.4build1
ruby1.8-dev: 1.8.7.249-2

Can you think of another reason why I fail installing the ruby-debug-ide.gem?

Thank you,
Eytan.

0
Comment actions Permalink

Eytan,

In order to help you, could you please describe your environment more precisely?
Ruby version, how did you install it - via package/from sources?
What ruby related gems\packages do you have installed?

Regards,
Oleg

0
Comment actions Permalink

Here is my system specification:

Ubuntu: 10.04
Ruby version:  1.8.7 pathlevel 249

Related ruby installations:
ruby1.8-dev
irb
rdoc
ri
rubygems
libmysql-ruby
buli-essential
rubygems 1.3.7
libopenssl-ruby
mongrel
mongrel-cluster
mongrel-doc


Installed gems:
actionmailer 2.3.8
actionpack 2.3.8
activerecord 2.3.8
activeresource 2.3.8
activesupport 2.3.8
columnize 0.2
gastercsv 1.4.0
fastthred 1.0.6
haml 3.0.13
less 1.2.21
linecache 0.43
mutter 0.5.3
passenger 2.2.8
polyglot 0.3.1
rack 1.1.0
rails 2.3.8
rake 0.8.7
ruby-debug 0.10.3
ruby-debug-base 0.10.5.jb2
ruby-debug-ide 0.4.2
rubygems-update 1.3.7
snmp 1.0.2
treetop 1.4.8

Hope that helps...
Eytan.

0
Comment actions Permalink

Oh,,, and the ruby packages were installed using simple: "apt-get install" commands.

Thanks a lot,
Eytan

0
Comment actions Permalink

Please attach the installation log (after another effort to install this gem from the command line), maybe it will show us some crucial information.

0
Comment actions Permalink

Where can I find the gem installation log?

Thanks,
Eytan

0
Comment actions Permalink

Hi Oleg,

I really suspect the problem is due to lack of Internet connection.
Did you try installing & debugging RubyMine3.0 and ruby-debug-ide.gem on an offline machine?

Thanks,
Eytan.

0
Comment actions Permalink

I haven't tryied this, however I've asked our QA engineer to reproduce it on the offline machine.

Regards,
Oleg

0
Comment actions Permalink

Could you please try to install gem ruby-debug-ide-0.4.16.gem from the command line and report full console output here?

Regards,
Oleg

0
Comment actions Permalink

We were able to reproduce the problem and filed a bug here: http://youtrack.jetbrains.net/issue/RUBY-7401

0
Comment actions Permalink

Tried it. Got the same error:

ERROR: http:/rubygems.org/ does not appear to be a repository
Building native extensions. This could take a while...
ERROR: Error installing ruby-debug-ide-0.4.16.gem:
ERROR: Failed to build native extension.

/usr/bin/ruby1.8 mkrf_conf.rb
ERROR: http://rubygems.org/ does not appear to be a repository

Gem files will remain installed in /usr/lib/ruby/gems/1.8/gems/ruby-debug-ide-0.4.16 for inspection.
Results logged to /usr/lib/ruby/gems/1.8/gems/ruby-debug-ide-0.4.16/ext/gem_make.out


But I see you opened a bug. Wating for the fix...

Thanks,
Eytan.

0

Please sign in to leave a comment.