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,
> 
> Jesús Dugarte.-

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%

Although I'm now wondering if there will be any unexpected consequence 
of having the .gem directory inside the ruby directory (C:\Ruby) and not 
where it used to be (C:\Users\Jesús Dugarte).

Thanks,

Jesús Dugarte.-
-- 
Posted via http://www.ruby-forum.com/.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to