July 13, 2010 Patch
It is very likely that this problem was caused by installing E Text Editor on Windows 7. To ensure compatibility with TextMate on Windows, E automatically installs Cygwin. During installation, a bash script is launched that tries to change permissions to C :. Here's the line:
chmod ow `cygpath $HOMEDRIVE`
Obviously, when Cygwin sets permissions, it creates a mess in the Windows ACL permissions. To protect the integrity of the system root drive, Windows UAC does something known as virtualization or data redirection. More info here . In our case, instead of spoiling the rights to the real root directory, virtualization launches and violates the access rights to the VirtualStore directory (% localappdata% \ VirtualStore), making it root inaccessible (although any directories inside remain intact and accessible). When Ruby installs gems, it tries to access the root directory C: \, which UAC forbids, so it tries to access% localappdata% \ VirtualStore, which it cannot if you have damaged permissions, so you get denied.
You can fix this by deleting the wrong permissions from VirtualStore (you will need to display the protected system files in Explorer to see VirtualStore). The correct permissions must be inherited from the parent folder and should be:
SYSTEM (full control) *your users* (full control) Administrators (full control)
Here is an example of matching broken permissions with the correct permissions:
http://gist.github.com/471087
Author E is aware of this issue and is working on a fix.
This seems like a strange permission error, which apparently only happens on Windows 7. Try opening an elevated command prompt and installing it there. Here is what I get when picking up:
[C:\Users\charlesr]gem install activeldap Successfully installed activeldap-1.2.2 1 gem installed Installing ri documentation for activeldap-1.2.2... Installing RDoc documentation for activeldap-1.2.2...
If I run the standard command line, I get the following:
[C:\Users\charlesr]gem install activeldap ERROR: While executing gem ... (Errno::EEXIST) File exists - C:
I will update this answer if a better solution appears. It was never necessary to increase when installing gems in Windows, and therefore the behavior that we see here is incorrect.
The following issues are discussed here: http://groups.google.com/group/rubyinstaller/browse_thread/thread/df7b7c217ad7d882