invalid path for gem

View: New views
3 Messages — Rating Filter:   Alert me  

invalid path for gem

by nrolland :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Hi,



When going to tools -> ruby gems, I can see my local gems.

Upon retrieving remote gems, the following error occurs :


>

> *** 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 !






---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...


invalid path for gem

by nrolland :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


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






---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...


invalid path for gem

by nrolland :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


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






---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...