syphilis has asked for the wisdom of the Perl Monks concerning the following question:

Hi,
I installed Cygwin (including its perl distro) but Cygwin's bash shell is unable to find perl (bash: perl: command not found) - and I can't find it either. Having nominated E:/cygwin as the "root" directory, I expected to find perl somewhere under E:/cygwin/usr, but it's not there. If I rerun setup and select to install Perl, I get the message that there is nothing to install (which I take to mean that as far as setup is concerned, Perl is already installed.)

How do I get rid of my current Cygwin installation so that I can install again from scratch ? (Is simply deleting the E:/cygwin directory sufficient ? I've tried that but it hasn't helped.)

How best to proceed ?

Cheers,
Rob

Replies are listed 'Best First'.
Re: Where does Cygwin put perl ?
by Skeeve (Parson) on Mar 12, 2015 at 08:10 UTC

    Old thread - I know

    But I came across it because I had the very same problem after upgrading my cygwin.

    As here is no clear statement if and how it was solved, I thought I'd better tell what I did to solve my issue:

    cygcheck -s -v -r > cygcheck.out grep -i incomplete cygcheck.out

    I simply reinstalled all of those incomplete packages.

    I think they came in because there were some problems during installation with incomplete downloads and processes which couldn't be stopped. But they seemed to be gone when I choose "retry".

    Apparently this was not the case and even when I tried to reinstall the incomplete packages, I again received the "incomplete downloads" message. This time when retrying, I choose another mirror host and finally it worked.


    s$$([},&%#}/&/]+}%&{})*;#$&&s&&$^X.($'^"%]=\&(|?*{%
    +.+=%;.#_}\&"^"-+%*).}%:##%}={~=~:.")&e&&s""`$''`"e
      So helpful. Perl was not downloading from the mirror I had chosen and I didn't realize I should just try a different mirror.
Re: Where does Cygwin put perl ?
by cdarke (Prior) on May 15, 2006 at 11:17 UTC
    Cygwin puts perl.exe in the Cygwin bin directory. Are you sure it was included in the download?
    You need to remove Cygwin from the registry. Look for something like HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions.
Re: Where does Cygwin put perl ?
by sdsaran (Pilgrim) on May 15, 2006 at 11:46 UTC
    Hi Rob,

    Please find the perl.exe under E:/cygwin/bin folder.

    If you are not having it, just run setup.exe once again. It will update/install the package anytime.

    During setup.exe exectuion, you can find the perl in Interpreters category. If your cygwin has perl, then package selection option will show the "keep" flag.

    Regards, Sdsaran
      you can find the perl in Interpreters category

      I thought perl would be in the category named "Perl" and didn't select "Interpreters" .... silly me. (I also selected both "Base" and "Devel" for installation - as well as a number of other categories.)

      Unfortunately, whenever I rerun setup.exe, no matter what I select, it doesn't install anything, but just tells me that nothing needs to be installed. I downloaded the lot, btw - all 600-odd MB (inadvertently, of course).

      Anyway, some parts have obviously been installed as there's a desktop icon I can click on to open Cygwin's bash shell. All I have to do is work out how to install the other bits I want - which is basically just perl and gcc. Apparently I haven't worked out how to operate setup.exe correctly ... I'll try to follow the documentation on the Cygwin website. In the meantime, if someone has advice that may be useful, please be forthcoming with it.

      Could I (eg) extract the various relevant tar.bz2 files that I downloaded to E:/cygwin ? I just tried that with gcc-core-3.4.4-1.tar.bz2 and, so long as I add /cygdrive/e/usr/bin to $PATH, then 'gcc -v' outputs what it should.

      Anyway, don't anybody stress too much. I realize this was always OT, and if it gets too frustrating for me I'm happy just to chuck it all to the shithouse. I'm quite comfortable building and running perl on both linux and windows (both mingw-built and msvc-built) so I don't really need the aggravation of coming to terms with Cygwin. Basically, I was bored and looking at extending my horizons a little .... but maybe I've bitten off more than I can chew.

      Thanks for the replies so far received, guys

      Cheers,
      Rob