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 schneidt@mail.nih.gov https://alum.mit.edu/www/toms
On Aug 15, 2020, at 5:58 PM, Thomas Schneider schneidt@mail.nih.gov wrote:
[snip]
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
I suspect you're getting non-unix text file issues somewhere too with that problem.
As a general observation, all the text files in the distribution should have a unix text file conversion/sanitizing process run on them just as a preventative to avoid any further problems with this type of issue.
There's something of a chicken or egg irony with the flip tool. If you need a working copy of the tool to fix the source code text files needed to build it but you don't have one, how are you going to get the needed tool built? And if you have some other means of fixing the text files why bother with building a different tool that you don't really need for the project?
*** No ip_pascal was found
But this is the issue that will require a lot of work to get everything working - none of the required pascal compilers (gpc version 20070904 or IP Pascal) have working implementations on non-ancient MacOS versions. The configure --help text implies fpc is a suitable pascal compiler; however, trying to use fpc won't even get past the configure compiler availability checking. Once past that, you're still missing the fpc tuned build directory like exists for gpc and IP Pascal.
I don't have any idea on how difficult or easy it would be to get it working with fpc on MacOS.
Gale Paeper gpaeper@empirenet.com
Gale,
The issue is the line endings. The archive was not set up properly.
The FPC directory and toolchain was removed because FPC cannot compile the toolchain.
Regards,
Scott Franco
--------- Original Message --------- Subject: Re: running p5c (was Re: Plan to Update GPC) From: "Gale Paeper" gpaeper@empirenet.com Date: 8/16/20 11:19 am To: "Gnu Pascal" gpc@gnu.de
On Aug 15, 2020, at 5:58 PM, Thomas Schneider schneidt@mail.nih.gov wrote:
[snip]
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
I suspect you're getting non-unix text file issues somewhere too with that problem.
As a general observation, all the text files in the distribution should have a unix text file conversion/sanitizing process run on them just as a preventative to avoid any further problems with this type of issue.
There's something of a chicken or egg irony with the flip tool. If you need a working copy of the tool to fix the source code text files needed to build it but you don't have one, how are you going to get the needed tool built? And if you have some other means of fixing the text files why bother with building a different tool that you don't really need for the project?
*** No ip_pascal was found
But this is the issue that will require a lot of work to get everything working - none of the required pascal compilers (gpc version 20070904 or IP Pascal) have working implementations on non-ancient MacOS versions. The configure --help text implies fpc is a suitable pascal compiler; however, trying to use fpc won't even get past the configure compiler availability checking. Once past that, you're still missing the fpc tuned build directory like exists for gpc and IP Pascal.
I don't have any idea on how difficult or easy it would be to get it working with fpc on MacOS.
Gale Paeper gpaeper@empirenet.com
_______________________________________________ Gpc mailing list Gpc@gnu.de https://www.g-n-u.de/mailman/listinfo/gpc