Archive for January, 2009

rubygems.rb:142:in `activate’: can’t activate rubyforge

In : ruby, Posted by on Jan.01, 2009

My rails app is using the old version of rubyforge.

When I start the app using ./script/server. It complains about the rubyforge as:

/usr/lib/ruby/site_ruby/1.8/rubygems.rb:142:in `activate’: can’t activate rubyforge (= 0.4.5, runtim
e), already activated rubyforge-1.0.1 (Gem::Exception)
from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require’
from /usr/lib/ruby/gems/1.8/gems/activesupport-1.4.4/lib/active_support/dependencies.rb:495:
in `require’
from /usr/lib/ruby/gems/1.8/gems/activesupport-1.4.4/lib/active_support/dependencies.rb:342:
in `new_constants_in’
from /usr/lib/ruby/gems/1.8/gems/activesupport-1.4.4/lib/active_support/dependencies.rb:495:
in `require’
from /usr/lib/ruby/1.8/soap/streamHandler.rb:62
from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require’
from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require’
from /usr/lib/ruby/gems/1.8/gems/activesupport-1.4.4/lib/active_support/dependencies.rb:495:
in `require’
… 65 levels…
from /usr/lib/ruby/gems/1.8/gems/rails-1.2.5/lib/commands/server.rb:39
from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require’
from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require’
from ./script/server:3

What you need to do is uninstall rubyforge and reinstall it as:

[root@pony ]# gem uninstall rubyforge

Select gem to uninstall:
1. rubyforge-0.4.4
2. rubyforge-0.4.5
3. rubyforge-1.0.0
4. rubyforge-1.0.1
5. All versions
> 5
Successfully uninstalled rubyforge-0.4.4
Successfully uninstalled rubyforge-0.4.5
Successfully uninstalled rubyforge-1.0.0

You have requested to uninstall the gem:
rubyforge-1.0.1
hoe-1.5.0 depends on [rubyforge (>= 0.4.4)]
hoe-1.5.1 depends on [rubyforge (>= 0.4.4)]
hoe-1.5.3 depends on [rubyforge (>= 1.0.0)]
hoe-1.8.1 depends on [rubyforge (>= 1.0.0)]
hoe-1.8.2 depends on [rubyforge (>= 1.0.1)]
hoe-1.3.0 depends on [rubyforge (>= 0.4.4)]
hoe-1.7.0 depends on [rubyforge (>= 1.0.0)]
If you remove this gems, one or more dependencies will not be met.
Continue with Uninstall? [Yn]
Successfully uninstalled rubyforge-1.0.1
[root@pony ]# gem install rubyforge
Successfully installed rubyforge-1.0.1
1 gem installed
Installing ri documentation for rubyforge-1.0.1…
Installing RDoc documentation for rubyforge-1.0.1…



Adding a second IP address to Fedora Linux

In : linux, system, Posted by on Jan.01, 2009

http://www.oclc.org/support/documentation/ezproxy/technote/2l.htm

These are the steps to add the second IP address to your existing network adapter under non-SUSE distributions of Linux.

  1. Become root on your system, either by logging into that account or using the su command.
  2. Change your current directory to the /etc/sysconfig/network-scripts directory with the command:
    
    cd /etc/sysconfig/network-scripts
    
  3. Check for existing network adapters with the command:
     ls ifcfg-* 

    In most instances, you will see the files ifcfg-eth0 and ifcfg-lo.

  4. Edit /etc/hosts and add a line for your new address and name such as:
    24.249.162.195 www.xyz.org
  5. To create the new interface, you will copy ifcfg-eth0 to ifcfg-eth0:0 with the command:
    cp ifcfg-eth0 ifcfg-eth0:0 

    Next, edit icfg-eth0:0 and change the DEVICE line to be similar to:

    DEVICE=eth0:0 

    and change the IPADDR line to be similiar to:

    IPADDR=24.249.162.195 
  6. To activate the new IP address, issue a command similar to:
    ./ifup eth0:0