require net/ssh gem and korundum

  • Thread starter Bauduin Raphael
  • Start date
B

Bauduin Raphael

Hi,

I've installed korundum(KDE bindings) manually and net/ssh as a gem
(just upgraded rubygems to 0.8.4).

Here are the require lines I have:

require 'Korundum'
require 'tailWindow'
require 'sshtail' #generated with rbuic
require 'rubygems' #generated with rbuic
require 'net/ssh'

Everything works as long as I don't require net/ssh. The last require
gives me this error:

/usr/local/lib/site_ruby/1.8/rubygems.rb:263:in `const_missing':
uninitialized constant KDE::Config::CONFIG (NameError)
from /usr/local/lib/site_ruby/1.8/rubygems.rb:263:in `default_dir'
from /usr/local/lib/site_ruby/1.8/rubygems.rb:86:in `dir'
from /usr/local/lib/site_ruby/1.8/rubygems.rb:248:in `set_paths'
from /usr/local/lib/site_ruby/1.8/rubygems.rb:97:in `path'
from
/usr/local/lib/site_ruby/1.8/rubygems/loadpath_manager.rb:54:in
`build_paths'
from
/usr/local/lib/site_ruby/1.8/rubygems/loadpath_manager.rb:68:in
`search_gempath'
from
/usr/local/lib/site_ruby/1.8/rubygems/loadpath_manager.rb:4:in `require'
from ./tail.rb:7


I can use net/ssh in another script, so its installation is fine. Is
there a problem because I use a manually installed lib and a gem in the
same script?

Raph
 
R

Richard Dale

Bauduin said:
Hi,

I've installed korundum(KDE bindings) manually and net/ssh as a gem
(just upgraded rubygems to 0.8.4).

Here are the require lines I have:

require 'Korundum'
require 'tailWindow'
require 'sshtail' #generated with rbuic
require 'rubygems' #generated with rbuic
require 'net/ssh'

Everything works as long as I don't require net/ssh. The last require
gives me this error:

/usr/local/lib/site_ruby/1.8/rubygems.rb:263:in `const_missing':
uninitialized constant KDE::Config::CONFIG (NameError)
from /usr/local/lib/site_ruby/1.8/rubygems.rb:263:in
`default_dir' from /usr/local/lib/site_ruby/1.8/rubygems.rb:86:in
`dir' from /usr/local/lib/site_ruby/1.8/rubygems.rb:248:in
`set_paths' from /usr/local/lib/site_ruby/1.8/rubygems.rb:97:in
`path' from
/usr/local/lib/site_ruby/1.8/rubygems/loadpath_manager.rb:54:in
`build_paths'
from
/usr/local/lib/site_ruby/1.8/rubygems/loadpath_manager.rb:68:in
`search_gempath'
from
/usr/local/lib/site_ruby/1.8/rubygems/loadpath_manager.rb:4:in `require'
from ./tail.rb:7


I can use net/ssh in another script, so its installation is fine. Is
there a problem because I use a manually installed lib and a gem in the
same script?
I tried it and got the same error. Then I moved the rubygems require to
before the Korundum one and it worked ok though:

require 'rubygems'
require_gem 'net-ssh'

require 'Korundum'
....

I haven't actually tried calling methods in the net-ssh package though, so
there still might be incompatibility problems.

-- Richard
 
B

Bauduin Raphael

Richard said:
Bauduin Raphael wrote:



I tried it and got the same error. Then I moved the rubygems require to
before the Korundum one and it worked ok though:

require 'rubygems'
require_gem 'net-ssh'

require 'Korundum'
...

I haven't actually tried calling methods in the net-ssh package though, so
there still might be incompatibility problems.

Seems to work indeed. Not sure I'll continue with the gem though...

Raph
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,982
Messages
2,570,186
Members
46,742
Latest member
AshliMayer

Latest Threads

Top