Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
RubyGems - trouble with .gemrc gempath setting
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  1 message - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Eric Landuyt  
View profile  
 More options Dec 11 2005, 1:45 pm
Newsgroups: comp.lang.ruby
From: "Eric Landuyt" <r...@advalvas.be>
Date: Sun, 11 Dec 2005 19:45:39 +0100
Local: Sun, Dec 11 2005 1:45 pm
Subject: RubyGems - trouble with .gemrc gempath setting
Hi guys,

I'm having a strange error with RubyGems when specifying a repository in a
subdir of my home directory (RubyGems itself was installed globally).

First, here is my .bashrc:
 export RUBYOPT=rubygems
(no GEM_* variables defined).

I run the following (for example to install ruvi, but the same error is
occuring with others packages, like rake, ...):

 eric@localhost ~ $ gem install ruvi
 Attempting local installation of 'ruvi'
 Local gem file not found: ruvi*.gem
 Attempting remote installation of 'ruvi'
 Updating Gem source index for: http://gems.rubyforge.org
 ERROR:  While executing gem ... (Errno::EACCES)
     Permission denied - /usr/lib/ruby/gems/1.8/cache/ruvi-0.4.12.gem

Ok. Seems quite logical, I don't have rw access to the global repository.
So, I created ~/.gemrc as follow:

 gemhome: /home/eric/.gems
 gempath:
  - /home/eric/.gems
  - /usr/lib/ruby/gems/1.8
 gem: --gen-rdoc --run-tests

Now, retrying:

 eric@localhost ~ $ gem install ruvi
 Attempting local installation of 'ruvi'
 Local gem file not found: ruvi*.gem
 Attempting remote installation of 'ruvi'
 Updating Gem source index for: http://gems.rubyforge.org
 Successfully installed ruvi-0.4.12

Ok, it was installed succesfully ('gemhome' setting used). But:

 eric@localhost ~ $ ruvi
 /usr/lib/ruby/site_ruby/1.8/rubygems.rb:204:in `report_activate_error':
Could  not find RubyGem ruvi (> 0) (Gem::LoadError)
         from /usr/lib/ruby/site_ruby/1.8/rubygems.rb:141:in `activate'
         from /usr/lib/ruby/site_ruby/1.8/rubygems.rb:37:in
`require_gem_with_options'
         from /usr/lib/ruby/site_ruby/1.8/rubygems.rb:31:in `require_gem'
         from /home/eric/.gems/bin/ruvi:17

It seems 'gempath' is not properly used. Finally, if I try:

 export GEM_PATH=/home/eric/.gems

then ruvi is working properly!
So, any idea why this is not working with the 'gempath' as specified in my
.gemrc ?

Thank you in advance,

Eric Landuyt


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »