FeaturesPluginsDocs & SupportCommunityPartners

NetBeans Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  

invalid path for gem

 
Post new topic   Reply to topic    NetBeans Forums -> Ruby Users
View previous topic :: View next topic  
Author Message
nrolland



Joined: 01 Jun 2009
Posts: 3

PostPosted: Mon Jun 01, 2009 8:36 am    Post subject: invalid path for gem Reply with quote

Hi,

When going to tools -> ruby gems, I can see my local gems.
Upon retrieving remote gems, the following error occurs :
Quote:

*** REMOTE GEMS ***

ERROR: While executing gem ... (Errno::ENOENT)
No such file or directory - No such file or directory -
C:/HOMEWARE/NetBeans 6.5.1/ruby2/jruby-1.1.4/bin/Documents and Settings/nrolland


The path does not make any sense.

It corresponds to (JRUBY_HOME)/HOME
my jruby is located at C:/HOMEWARE/NetBeans 6.5.1/ruby2/jruby-1.1.4/bin
my HOME variable is "\Documents and Settings\nrolland"


I can't find where in the process such a non-sense arise..
I am stuck and can't install any gems with that problem !
Back to top
View user's profile Send private message
nrolland



Joined: 01 Jun 2009
Posts: 3

PostPosted: Mon Jun 01, 2009 9:45 am    Post subject: investigation Reply with quote

The origin lies in Gem.user_home returning a stupid path.
It is used in rubygems : spec_fetcher.rb : initialize

How do you fix that stuff...
Back to top
View user's profile Send private message
nrolland



Joined: 01 Jun 2009
Posts: 3

PostPosted: Mon Jun 01, 2009 10:16 am    Post subject: conclusion Reply with quote

So, if a "HOME" variable is defined on your computer, rubygems will use it before anything else:

def self.find_home
['HOME', 'USERPROFILE'].each do |homekey|
return ENV[homekey] if ENV[homekey]
end

So make sure you dont, or that it is expressed as an absolute path.

This stresses the problem with Java and ruby which are relying on non-rentrant mecanisms.
Which is why netbeans could not package in my case a self-contained jruby distribution.

Those should absolutely be proscribed, or given a way to override default mechanism. I think that is why 90 pct of java installation fails
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> Ruby Users All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB