Fail to Install Gems - My First Gems

Dear all,

I was trying to install first ruby gems.
I have successfully done the following:

$ ruby setup.rb config --prefix=/home/mystuff
$ ruby setup.rb setup

But when I run this command:

$ ruby setup.rb install

…sth…
As of RubyGems 0.8.0, library stubs are no longer needed.
Searching $LOAD_PATH for stubs to optionally delete (may take a
while)…
…done.
No library stubs found.

Consequently I can’t install antying like that with Gems.
“gem” command doesn’t work.

$ gem --help
/home/ewijaya/.ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:32:in
gem_original_require': no such file to load -- sources (LoadError) from /home/ewijaya/.ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:32:inrequire’
from
/home/ewijaya/.ruby/lib/ruby/site_ruby/1.8/rubygems/source_info_cache.rb:6

How can I resolve this problem?

I am using:
ruby 1.8.6 (2007-03-13 patchlevel 0) [i686-linux]


Edward

On Aug 31, 2007, at 9:58 PM, Foolish Brat wrote:

$ ruby setup.rb install

source_info_cache.rb:6
You probably need to:

$ export GEM_HOME=/home/mystuff/gems

Corey

Corey J. wrote:

On Aug 31, 2007, at 9:58 PM, Foolish Brat wrote:

$ ruby setup.rb install

source_info_cache.rb:6
You probably need to:

$ export GEM_HOME=/home/mystuff/gems

Corey

Hi Corey,

Yes I already have that, in my .bash_profile

export GEM_HOME=/home/ewijaya/.rubygem:

Which then I run this command:
$ ruby setup.rb config --prefix=/home/ewijaya/.rubygem
…etc…

but the problem still remains.

On Aug 31, 2007, at 22:58, Foolish Brat wrote:

Corey

but the problem still remains.

You want GEM_PATH, not GEM_HOME.

Had this recently.
Search your system for sources-0.0.1.gem
then:
gem install /path/to/sources-0.0.1.gem

YMMV.

MarkT