gem install ERROR: While executing gem ... (Errno::EEXIST) on Windows 7 x64

815 views
Skip to first unread message

ThOrkhan

unread,
Feb 9, 2010, 6:18:06 PM2/9/10
to RubyInstaller
Hi everybody,

i'm not sure if this x64 specific, but today i received the
Update for Rights Management Services Client for Windows 7 for x64-
based Systems (KB979099) Patch
via Windows Update.

After installation it was not possible to install gems anymore, i
always received this error:

gem install nokogiri
ERROR: While executing gem ... (Errno::EEXIST)
File exists - C:

I deinstalled the update and everything is working flawless as before.


Cheers,
Thore

Luis Lavena

unread,
Feb 10, 2010, 2:49:10 AM2/10/10
to rubyin...@googlegroups.com
On Wed, Feb 10, 2010 at 12:18 AM, ThOrkhan <thore.k...@gmail.com> wrote:
> Hi everybody,
>

Hello,

This is similar to the report here:

http://groups.google.com/group/rubyinstaller/browse_thread/thread/f79c24cbca7bb37b

Did you upgrade from Windows Vista in the past?

I can't try and look for that update since I'm running RC1 of Windows
7 x64. Still waiting for my final copy of Pro version.

Can you try the following inside a irb session?

irb(main):001:0> File.exists?("C:/Windows")
=> true
irb(main):002:0> File.directory?("C:/Windows")
=> true
irb(main):003:0> Dir.mkdir("C:/foo")
=> 0
irb(main):004:0> require 'fileutils'
=> true
irb(main):005:0> FileUtils.touch("C:/foo/bar")
=> ["C:/foo/bar"]

And then check these files really exist:
C:\Users\Luis>dir C:\
C:\Users\Luis>dir C:\foo

Thank you.

--
Luis Lavena
AREA 17
-
Perfection in design is achieved not when there is nothing more to add,
but rather when there is nothing more to take away.
Antoine de Saint-Exupéry

vegangeek

unread,
Apr 6, 2010, 2:45:33 PM4/6/10
to RubyInstaller


I also got the same error. Since on my Mac I run gem updates using
sudo, I tried running the Console as administrator and it allowed the
gem update to work.

-robb

Luis Lavena

unread,
Apr 7, 2010, 9:15:24 AM4/7/10
to rubyin...@googlegroups.com

Please see the separated thread about the permission issue:

http://groups.google.com/group/rubyinstaller/browse_thread/thread/df7b7c217ad7d882

If you can perform the fix described here:

http://support.microsoft.com/kb/970789

Reply all
Reply to author
Forward
0 new messages