[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Fail to Install Gems - My First Gems

Foolish Brat

9/1/2007 4:58:00 AM

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]


--
Edward
--
Posted via http://www.ruby-....

4 Answers

Corey Jewett

9/1/2007 5:35:00 AM

0

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

> 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

Foolish Brat

9/1/2007 5:58:00 AM

0

Corey Jewett 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.

--
Posted via http://www.ruby-....

Mark T

9/1/2007 9:03:00 AM

0

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

YMMV.

MarkT

Eric Hodel

9/10/2007 2:52:00 AM

0

On Aug 31, 2007, at 22:58, Foolish Brat wrote:
> Corey Jewett 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.

You want GEM_PATH, not GEM_HOME.

--
Poor workers blame their tools. Good workers build better tools. The
best workers get their tools to do the work for them. -- Syndicate Wars