betweenGo

Unable to start Cygwin shell from Windows command prompt

by Frank Kim on Mar.07, 2007, under Cygwin, Windows

After installing Cygwin when I tried to start the shell from a Windows command prompt by entering the “sh” command a window would pop up with this error.

The procedure entry point rl_getenv_hook could not be located in the dynamic link library cygreadline6.dll.

After seeing this error I would have to manually kill the sh process using the Windows Task Manager.

There was a thread about this on the Cygwin mailing list. I did what was suggested and discovered that bin/sh.exe and bin/bash.exe were exactly the same. Yet for some reason when I ran bash from the Windows command prompt I did not get this error.

I then tried rerunning the Cygwin installer. Even though nothing was installed that seemed to solve the problem, i.e. I was able to run sh from the Windows command prompt. This was possibly because the bash postinstall script was run correctly.

Update: After reboot I am experiencing the same problem again. Aargh! :-(

  • Share/Bookmark

Related posts:

  1. Moving Your Cygwin Installation
  2. Shell Scripts with Windows LF’s Fail in Latest Cygwin
  3. Cygwin Bash cannot execute DOS formatted scripts
  4. Cygwin 1.7.x, mounts and /etc/fstab
  5. Microsoft Windows Vista Error 0×80070091 and Cygwin


1 Comment for this entry

Leave a Reply

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!