Sunday, December 4, 2011

Cygwin - not able to install properly with error log "abnormal exit: exit code=-6"

First install of cygwin as Administrator account was successful on my new Windows Server 2008 and everything was working fine.

So, decided not to use Administrator account and thus removed all cygwin installation and tried to install again with the different OS Account ORACLE (Local Admin Group) and damn thing wont install.
Cygwin install takes about half hour to finish and then you see that cygwin\bin folder is almost empty and when you look into the log files (c:\cygwin\var\log\setup.log) you will see this error "abnormal exit: exit code=-6" for almost every single exe that needs to be copied into my c:\cygwin floder!!!

After doing some research found that its the thing DEP (Data Execution Prevention) is enabled and that thing is somehow blocking these cygwin installation to copy files!!!


How to Disable DEP:
Open Command window (Run as Administrator) and enter the following and reboot.

C:\>bcdedit /set nx AlwaysOff

Once booted, cygwin install went thru fine without any errors.

Check the next blog which is related when you disable DEP.



No comments:

Post a Comment