Ruby Install Problem Fedora 7

Hi,
I’m a total newbie on Ruby/Rails and Linux, and have recently installed
Fedora 7 as a VM (WMWare Fusion On Mac OS X). I’ve been trying to
install ruby, rails etc but I’ve hit a brick wall and cant get over!!!

basically whenever i try to do anything related to ruby setup i get the
following error
whilst trying to install rubygems from source:

[Mick@localhost tmp]$ cd rubygems-0.9.4
[Mick@localhost rubygems-0.9.4]$ ruby setup.rb
setup.rb:786:in require': no such file to load -- rbconfig (LoadError) from setup.rb:786:inload_rbconfig’
from setup.rb:768:in `invoke’
from setup.rb:1578

I’ve been tru every post, blog on the web and tried all the solutions
but nothing has worked. I first thought it was the rubygems package but
now i think its something else… i’ve used yum to remove ruby, irb,
rubygems etc, re-downloaded and installed with yum but every time the
above error occurs.

has anyone got any ideas???
Am totally lost…

Regards…
Mick

Note:
Firstly i did:
sudo yum install ruby ruby-doc ruby-irb
Installed: ruby-irb.i386 0:1.8.6.36-3.fc7
Dependency Installed: ruby.i386 0:1.8.6.36-3.fc7

Use the following procedure:

On Sep 15, 9:00 pm, Michael D. <ruby-forum-incom…@andreas-

cheers dima,
i’ve tried that install path before but the problem still exists…
there’s something wrong with the version of rubygems, even though i’ve
removed, updated, reinstalled it a dozen times!!! i’ve actually no
idea where to go with this now…

here’s my terminal output…

[Mick@localhost rubygems-0.9.4]$ sudo yum install install ruby
ruby-devel ruby-irb ruby-libs ruby-rdoc ruby-ri rubygems
Setting up Install Process
Parsing package install arguments
Resolving Dependencies
–> Running transaction check
—> Package rubygems.noarch 0:0.9.2-1.fc7 set to be updated
—> Package ruby-rdoc.i386 0:1.8.6.36-3.fc7 set to be updated
—> Package ruby-ri.i386 0:1.8.6.36-3.fc7 set to be updated
–> Finished Dependency Resolution

Dependencies Resolved

=============================================================================
Package Arch Version Repository
Size

Installing:
ruby-ri i386 1.8.6.36-3.fc7 updates
1.8 M
rubygems noarch 0.9.2-1.fc7 fedora
498 k
Installing for dependencies:
ruby-rdoc i386 1.8.6.36-3.fc7 updates
136 k

Transaction Summary

Install 3 Package(s)
Update 0 Package(s)
Remove 0 Package(s)

Total download size: 2.4 M
Is this ok [y/N]: y
Downloading Packages:
(1/3): ruby-ri-1.8.6.36-3 100% |=========================| 1.8 MB
00:17
(2/3): ruby-rdoc-1.8.6.36 100% |=========================| 136 kB
00:00
(3/3): rubygems-0.9.2-1.f 100% |=========================| 498 kB
00:11
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing: ruby-rdoc #########################
[1/3]
Installing: rubygems #########################
[2/3]
Installing: ruby-ri #########################
[3/3]

Installed: ruby-ri.i386 0:1.8.6.36-3.fc7 rubygems.noarch 0:0.9.2-1.fc7
Dependency Installed: ruby-rdoc.i386 0:1.8.6.36-3.fc7
Complete!
[Mick@localhost rubygems-0.9.4]$ gem install rails
–include-dependencies
/usr/lib/ruby/site_ruby/1.8/rubygems.rb:9:in require': no such file to load -- rbconfig (LoadError) from /usr/lib/ruby/site_ruby/1.8/rubygems.rb:9 from /usr/bin/gem:9:inrequire’
from /usr/bin/gem:9
[Mick@localhost rubygems-0.9.4]$

dima wrote:

I see that you install rubygems-0.9.2.
Latter you should perform updating rubygems to 0.9.4 version by
invoking the command:
gem update --system

Perhaps that will help :wink:

On Sep 17, 7:45 pm, Michael D. <ruby-forum-incom…@andreas-

cheers but no joy… same error again!!! (this is driving me crazy)…
i’m close to rebuilding the entire system…

[Mick@localhost ~]$ gem update --system
/usr/lib/ruby/site_ruby/1.8/rubygems.rb:9:in require': no such file to load -- rbconfig (LoadError) from /usr/lib/ruby/site_ruby/1.8/rubygems.rb:9 from /usr/bin/gem:9:inrequire’
from /usr/bin/gem:9
[Mick@localhost ~]$

I see that you install rubygems-0.9.2.
Latter you should perform updating rubygems to 0.9.4 version by
invoking the command:
gem update --system

Perhaps that will help :wink:

On Sep 17, 7:45 pm, Michael D. <ruby-forum-incom…@andreas-

ok, i dont think this is got to do with gems as such…
i downloaded 0.9.4 and tried to set it up…

[Mick@localhost Download]$ cd rubygems-0.9.4
[Mick@localhost rubygems-0.9.4]$ ruby setup.rb
setup.rb:786:in require': no such file to load -- rbconfig (LoadError) from setup.rb:786:inload_rbconfig’
from setup.rb:768:in `invoke’
from setup.rb:1578
[Mick@localhost rubygems-0.9.4]$

the common denomintator is “rbconfig”
has anyone got any idea what i need to do to update this?
or whats going on?

any help would be really appreciated… i just want to code!!! :slight_smile:

cheers…

I’m also having the exactly same error. Any help will be much
appriicated!

  • Mozammel

On Sep 19, 3:17 am, Michael D. <ruby-forum-incom…@andreas-

Sorry for this late response, but I have been overcomed with some
work.
To kip the story short. Before some minutes a go I have installed a
ruby and rubygems on my new fedora 7.
Here are the steps that I make:

[root@localhost dima]# yum install ruby ruby-devel ruby-irb ruby-libs
ruby-rdoc ruby-ri rubygems


Installed: ruby-devel.i386 0:1.8.6.36-3.fc7 ruby-ri.i386
0:1.8.6.36-3.fc7 rubygems.noarch 0:0.9.2-1.fc7

Dependency Installed: ruby.i386 0:1.8.6.36-3.fc7 ruby-irb.i386
0:1.8.6.36-3.fc7 ruby-libs.i386 0:1.8.6.36-3.fc7 ruby-rdoc.i386
0:1.8.6.36-3.fc7

Complete!

[root@localhost dima]# gem --version

0.9.2

[root@localhost dima]# gem update -system


RubyGems system software updated

[root@localhost dima]# gem --version

0.9.4

[root@localhost dima]# ruby --version

ruby 1.8.6 (2007-06-07 patchlevel 36) [i386-linux]

[root@localhost dima]# gem install rails -include-dependencies

It all pass OK, without any problem.

I was also having this problem after a few attempted re-installs. I’m
not certain, but I think the trick was to first run ‘yum remove
ruby-libs’, which I hadn’t done in previous re-install attempts.