Fail to Install Gems - My First Gems

F

Foolish Brat

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:in
`require'
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]
 
C

Corey Jewett

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:in
`require'
from
/home/ewijaya/.ruby/lib/ruby/site_ruby/1.8/rubygems/
source_info_cache.rb:6

You probably need to:

$ export GEM_HOME=/home/mystuff/gems

Corey
 
F

Foolish Brat

Corey said:
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.
 
M

Mark T

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

YMMV.

MarkT
 
E

Eric Hodel

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.

You want GEM_PATH, not GEM_HOME.
 

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

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top