Problems installing ruby gems on linux

Hi,

I am really finding this frustrating. i am trying to install ruby gems
to allow me to try out rails.

I have tried it on two linux systems. I can install ruby no problem.
but when I run ruby setup.rb I get the error:

./rubygems.rb:8:in require': no such file to load -- rubygems/ defaults (LoadError) from ./rubygems.rb:8 from setup.rb:24:inrequire’
from setup.rb:24

I think its a library link fault. but if anyone has any ideas I would
be very greatful.

Thanks

On Sun, Oct 4, 2009 at 11:26 PM, mpcengineer
[email protected] wrote:

defaults (LoadError)
from ./rubygems.rb:8
from setup.rb:24:in `require’
from setup.rb:24

I think its a library link fault. but if anyone has any ideas I would
be very greatful.

Can you describe your environment?
What and How have you installed so far?
What’s you linux flavor?
What is setup.rb?


Leonardo M…
There’s no place like ~

Hi,

Linux box is Linpus Lite on a Aspire One Netbook.
Ruby version is ruby 1.8.6 (2007-09-24 patchlevel 111) [i386-linux]
Ruby is installed in /usr/bin/ruby

I have downloaded rubygems 1.3.5 and extracted the files. The install
readme requires you to run
sudo ruby setup.rb

This is supposed to install ruby gems. I just get the load errors.

Any thoughts anyone??

Thanks.

On Tue, 2009-10-06 at 13:45 -0700, mpcengineer wrote:

sudo ruby setup.rb

This is supposed to install ruby gems. I just get the load errors.

Any thoughts anyone??


maybe you should just ‘sudo su -’ so you get the full root environment
first before you execute ‘ruby setup.rb’

Craig


This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

On Wed, 2009-10-07 at 13:47 -0700, mpcengineer wrote:

There is a defaults.rb in the rubygems directory. It seems the
setup.rb script can not see it???

Any experts out there.


it might help if we saw the interaction but if I recall correctly,
linpus was a port of Fedora 9. Is it possible to install rubygems from
linpus packaging? How much of ruby is installed? ‘rpm -qa|grep ruby’ ?

Craig


This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

Thanks Craig,

tried sudo su -

Unfotunatly still get the same error.

I find it difficult to see what is going wrong. I can only think its
something to do library paths.

There is a defaults.rb in the rubygems directory. It seems the
setup.rb script can not see it???

Any experts out there.

Thanks.

Hi,

When running

ruby setup.rb

as the root I get the error ‘rubygems/defaults’ is missing.

I have a defaults.rb in the install directory. The error message
suggests setup.rb is looking in a rubygems directory.

I have read about a /lib/rubygems/ directory. I do not have any such
library directory. Could this be my problem???

Any help anyone… This is doing my head in.

Thanks.

Thanks Craig,

I ran the command you suggested and got.

[root@localhost rubygems-1.3.5]# rpm -qa|grep ruby
ruby-1.8.6.110-2.fc8
ruby-rdoc-1.8.6.110-2.fc8
ruby-mode-1.8.6.110-2.fc8
ruby-libs-1.8.6.110-2.fc8
eruby-libs-1.0.5-10
ruby-irb-1.8.6.110-2.fc8
ruby-ri-1.8.6.110-2.fc8
ruby-devel-1.8.6.110-2.fc8
eruby-1.0.5-10

Any help would be greatly appreciated. I am at a loss here.

Thanks.

Hi, is it possible to install Rubygems via the rpm package manager?

-Conrad

On Thu, Oct 29, 2009 at 2:23 PM, mpcengineer

Hi! It is also possible to install ruby from phusion, which is called
enterprise ruby. It comes with rubygems and has detailed installation
instructions.

2009/10/30, Conrad T. [email protected]:

Still can not install Rails.
be banging my head against a brick wall at present.

as the root I get the error ‘rubygems/defaults’ is missing.

ruby-libs-1.8.6.110-2.fc8
On Oct 7, 8:57 pm, Craig W. [email protected] wrote:

something to do library paths.
linpus packaging? How much of ruby is installed? ‘rpm -qa|grep ruby’


Von meinen Mobilgerät aus gesendet

Hi All,

Still can not install Rails.

I think it must be because I am doing a new install and not an
upgrade.

I wonder if the latest versions of rails no longer works when you do a
manual install. My guess is the manual install requires the library
paths to be present. But because this is a fresh update they are
missing.

Has anyone out there managed to do a fresh install of rails? I seem to
be banging my head against a brick wall at present.

Thanks

mpcengineer,

I just reinstalled my rails app on an ubuntu slice the other day. For
what it’s worth, I’d recommend apt-get. It’s been a real time-saver
for me:

  1. sudo apt-get update #updates the apt-get software
  2. sudo apt-get install rubygems # installs rubygems

Just those 2 commands did it for me. Let me know if you still have
the issue.