(newbie question) gem

T

Tena Sakai

Hi,

I am a Ruby newbie.

The version I am using is:

ruby 1.8.7 (2008-08-11 patchlevel 72) [x86_64-linux]

The following commands work (or I haven't found anything
disagreeable so far):

irb
ruby
ri

But gem doesn't work for me. Here's what happens:

$ gem
/usr/local/bin/gem:8:in `require': no such file to load -- rubygems =
(LoadError)
from /usr/local/bin/gem:8

I look at /usr/local/bin/gem and here are three lines, starting at line =
8:

require 'rubygems'
require 'rubygems/gem_runner'
require 'rubygems/exceptions'

So the complaint is that it doesn't find these files.

I ran find, like this:

$ sudo find / -name rubygems\*
Password:
/home/tsakai/Notes/Ruby/ruby-1.9.1-p129/lib/rubygems
=
/home/tsakai/Notes/Ruby/ruby-1.9.1-p129/lib/rubygems/rubygems_version.rb
/home/tsakai/Notes/Ruby/ruby-1.9.1-p129/lib/rubygems.rb
/home/tsakai/Notes/Ruby/ruby-1.9.1-p129/test/rubygems
/usr/local/lib/ruby/1.9.1/rubygems
/usr/local/lib/ruby/1.9.1/rubygems/rubygems_version.rb
/usr/local/lib/ruby/1.9.1/rubygems.rb
$=20

I have reasons that I don't want to use 1.9.1. I do want to use 1.8.7.

So... My question is where do I have to go to get what's
necessary to run gems under 1.8.7?

Also, if there are some tips as to what I must do to get
it working, I would appreciate it very much.

Thank you in advance.

Regards,

Tena Sakai
(e-mail address removed)
 
K

Ken Burgett

[Note: parts of this message were removed to make it a legal post.]

I had trouble with gem on 64 bit linux systems in the past. I had to resort
to building gem from source to get any resolution. The latest 32-bit
version of Ubuntu, 9.04, has gem version 1.3.1, which I believe resolves
this problem.

2009/7/31 Tena Sakai said:
Hi,

I am a Ruby newbie.

The version I am using is:

ruby 1.8.7 (2008-08-11 patchlevel 72) [x86_64-linux]

The following commands work (or I haven't found anything
disagreeable so far):

irb
ruby
ri

But gem doesn't work for me. Here's what happens:

$ gem
/usr/local/bin/gem:8:in `require': no such file to load -- rubygems
(LoadError)
from /usr/local/bin/gem:8

I look at /usr/local/bin/gem and here are three lines, starting at line 8:

require 'rubygems'
require 'rubygems/gem_runner'
require 'rubygems/exceptions'

So the complaint is that it doesn't find these files.

I ran find, like this:

$ sudo find / -name rubygems\*
Password:
/home/tsakai/Notes/Ruby/ruby-1.9.1-p129/lib/rubygems
/home/tsakai/Notes/Ruby/ruby-1.9.1-p129/lib/rubygems/rubygems_version.rb
/home/tsakai/Notes/Ruby/ruby-1.9.1-p129/lib/rubygems.rb
/home/tsakai/Notes/Ruby/ruby-1.9.1-p129/test/rubygems
/usr/local/lib/ruby/1.9.1/rubygems
/usr/local/lib/ruby/1.9.1/rubygems/rubygems_version.rb
/usr/local/lib/ruby/1.9.1/rubygems.rb
$

I have reasons that I don't want to use 1.9.1. I do want to use 1.8.7.

So... My question is where do I have to go to get what's
necessary to run gems under 1.8.7?

Also, if there are some tips as to what I must do to get
it working, I would appreciate it very much.

Thank you in advance.

Regards,

Tena Sakai
(e-mail address removed)


--
Regards,

Ken

Seek wisdom through disbelief
 
T

Tena Sakai

Hi Ken,

Thank you for your response.

I solved the problem in a different way. I went to
http://rubyonrails.org/download
and navigated to download a file rubygems-1.3.5.tgz.

I untar'ed and extracted the tar file. Then I typed:
ruby setup.rb
and it seems all is well (though I haven't really
done enough testing yet).

In case I find a behavior that ruffles feather, I
will post what I find.

Regards,

Tena Sakai
(e-mail address removed)


-----Original Message-----
From: Ken Burgett [mailto:[email protected]]
Sent: Fri 7/31/2009 3:12 PM
To: ruby-talk ML
Subject: Re: (newbie question) gem
=20
I had trouble with gem on 64 bit linux systems in the past. I had to =
resort
to building gem from source to get any resolution. The latest 32-bit
version of Ubuntu, 9.04, has gem version 1.3.1, which I believe resolves
this problem.

2009/7/31 Tena Sakai said:
Hi,

I am a Ruby newbie.

The version I am using is:

ruby 1.8.7 (2008-08-11 patchlevel 72) [x86_64-linux]

The following commands work (or I haven't found anything
disagreeable so far):

irb
ruby
ri

But gem doesn't work for me. Here's what happens:

$ gem
/usr/local/bin/gem:8:in `require': no such file to load -- rubygems
(LoadError)
from /usr/local/bin/gem:8

I look at /usr/local/bin/gem and here are three lines, starting at = line 8:

require 'rubygems'
require 'rubygems/gem_runner'
require 'rubygems/exceptions'

So the complaint is that it doesn't find these files.

I ran find, like this:

$ sudo find / -name rubygems\*
Password:
/home/tsakai/Notes/Ruby/ruby-1.9.1-p129/lib/rubygems
= /home/tsakai/Notes/Ruby/ruby-1.9.1-p129/lib/rubygems/rubygems_version.rb
/home/tsakai/Notes/Ruby/ruby-1.9.1-p129/lib/rubygems.rb
/home/tsakai/Notes/Ruby/ruby-1.9.1-p129/test/rubygems
/usr/local/lib/ruby/1.9.1/rubygems
/usr/local/lib/ruby/1.9.1/rubygems/rubygems_version.rb
/usr/local/lib/ruby/1.9.1/rubygems.rb
$

I have reasons that I don't want to use 1.9.1. I do want to use = 1.8.7.

So... My question is where do I have to go to get what's
necessary to run gems under 1.8.7?

Also, if there are some tips as to what I must do to get
it working, I would appreciate it very much.

Thank you in advance.

Regards,

Tena Sakai
(e-mail address removed)


--=20
Regards,

Ken

Seek wisdom through disbelief
 
E

Eric Hodel

I solved the problem in a different way. I went to
http://rubyonrails.org/download
and navigated to download a file rubygems-1.3.5.tgz.

I untar'ed and extracted the tar file. Then I typed:
ruby setup.rb
and it seems all is well (though I haven't really
done enough testing yet).

This is correct. You need to install RubyGems in each ruby
installation you wish to use.
 

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,990
Messages
2,570,211
Members
46,796
Latest member
SteveBreed

Latest Threads

Top