atom feed10 messages in com.googlegroups.rubyonrails-talk[Rails] Re: gem install rails (Errno:...
FromSent OnAttachments
Jesús DugarteApr 9, 2010 1:48 pm 
Anthony CrumleyApr 9, 2010 11:29 pm 
Rahul MehtaApr 10, 2010 2:02 am 
Chris MorrisApr 10, 2010 10:06 pm 
Jesús DugarteApr 12, 2010 11:25 am 
Jesús DugarteApr 12, 2010 11:26 am 
Jesús DugarteApr 12, 2010 12:28 pm 
Jesús DugarteApr 12, 2010 1:07 pm 
Nikolay KotlyarovApr 15, 2010 2:10 pm 
Jesús DugarteApr 15, 2010 2:29 pm 
Subject:[Rails] Re: gem install rails (Errno::ENOENT) No such file or directory
From:Jesús Dugarte (lis@ruby-forum.com)
Date:Apr 12, 2010 1:07:19 pm
List:com.googlegroups.rubyonrails-talk

Jesús Dugarte wrote:

I have two PCs, one with Windows XP and another with Windows Vista. I'm working as an administrator in both computers. I'm using Ruby 1.8.7 and Rubygems 1.3.6. When I try to install Rails I get this error:

C:\>gem install rails ERROR: While executing gem ... (Errno::ENOENT) No such file or directory - C:/Users/Jesús Dugarte

I have installed Rails several times before (although I haven't done it in about a year), and I'd never had this problem before. Has anything changed in the installation? I've found several cases similar to mine in internet, but none of the proposed solutions works for me.

Thanks,

Using this http://stackoverflow.com/questions/849660/how-to-stop-the-gem-utility-from-accessing-my-home-directory as a base, I manage to make it work. My gem.bat looks like this now:

@ECHO OFF SET _HOMEPATH=%HOMEPATH% SET HOMEPATH=\Ruby IF NOT "%~f0" == "~f0" GOTO :WinNT @"ruby.exe" "C:\Ruby\bin\gem" %1 %2 %3 %4 %5 %6 %7 %8 %9 GOTO :EOF :WinNT @"ruby.exe" "%~dpn0" %* :EOF SET HOMEPATH=%_HOMEPATH%

Thanks,