running p5c (was Re: Plan to Update GPC)
Thomas Schneider <[email protected]> Sat, 15 Aug 2020 20:58:29 -0400
| Newsgroups | gmane.comp.compilers.gpc |
|---|---|
| Message-ID | <[email protected]> |
Gale/Scott: > > egg 320% ./configure > > ./configure: Command not found. > > > > % chmod a+rx configure > > % ls -l configure > > -rwxr-xr-x 1 schneidt admin 6469 Jan 5 2018 configure* > > % ./configure > > ./configure: Command not found. > > % > > > > This is really weird. > > Are you running MacOS 10.15? > > The default shell was changed from bash to zsh. I don't know if a clean install of 10.15 gives you just zsh and NO bash but if that is the case then the: > > #!/bin/bash > > in the configure script file can't find a working bash shell to orrectly execute the script. > > To check, open up Terminal and type in and execute the command "bash" [without the ""'s]. If you have a bash shell installed you'll get something like: > > bash-3.2$ > > or some variation of that depending on the version of bash installed. A great point. I'm not running Apple macOS 10.15 yet on the machine I'm doing this. So bash is there. I looked on my 10.15 machine and it gives a warning about "The default interactive shell is now zsh." but does run bash 3.2. So that's not the problem. I figured it must be deeper into the code. Then, using vim to look at the configure file I discovered that it is a dos file. I used my very handy wtch program https://alum.mit.edu/www/toms/delila/wtch.html to find out "what characters are in a file". This program shows the characters being used. It has saved me many many times over the years. It confirmed that the file lines have control-M on them. Apparently a line with just a control-M gets interepreted by bash as a weird command that it cannot find. I removed all control-Ms (with my 'no-m' or 'nom' script, http://users.fred.net/tds/lab/ftp/nom) Now the no-m copy nomconfigure runs: % nomconfigure *** No flip was found flip does not exist, has PATH been set up? attempting to make it nomconfigure: ./bin/make_flip: /bin/bash^M: bad interpreter: No such file or directory *** Unable to make flip *** No ip_pascal was found So there are other errors. p5c is not ready for use on macOS. Tom Thomas D. Schneider, Ph.D. Senior Investigator National Institutes of Health National Cancer Institute Center for Cancer Research RNA Biology Laboratory Biological Information Theory Group Frederick, Maryland 21702-1201 [email protected] https://alum.mit.edu/www/toms