Cygwin1.dll

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.

cygwin1.dll error - incompatible versions of the 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:

C:\WINDOWS\system32

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.

Filezilla see invisible files

Navigate to that folder and then locate the duplicate and delete it from the System32 folder:

Filezilla navigate to system32 folder inside Windows system

Remove the cygwin1.dll from the system32 folder using Filezilla file manager:

Remove the cygwin1.dll from the system32 folder using Filezilla file manager

(Originally published on 2007-09-14, updated on 2007-11-08)

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>