Sometimes you boot Cygwin, try to start-up X by invoking the “$ startx” command and you get this annoying message:
This problem is probably due to using incompatible versions of the cygwin DLL. Search for cygwin1.dll using the Windows Start->Find/Search facility and delete all but the most recent version. The most recent version *should* reside in x:\cygwin\bin, where ‘x’ is the drive on which you have installed the cygwin distribution. Rebooting is also suggested if you are unable to find another cygwin DLL.
You look for a duplicate cygwin1.dll and nothing shows up!… (hurray for windows search…)
Here’s my quickfix:
First of all you really have a duplicate cygwin1.dll.
One in the right place:
And another in the wrong place…
Don’t worry if actually don’t see the dll inside the system32 folder, THAT IS the problem (I faked things a bit to do the printscreens)
First, navigate to your computer drive into th System32 folder inside the Windows folder:
Then turn on the option to see invisible files. It should appear.
If it doesn’t work (like it happened to me) use a file manager from another program like Filezilla (the FTP manager) and turn on the option to see invisible files.
Navigate to that folder and then locate the duplicate and delete it from the System32 folder:
Remove the cygwin1.dll from the system32 folder using Filezilla file manager:
(Originally published on 2007-09-14, updated on 2007-11-08)