Dear sir: I've got a problem when I was installing gpc. The instruction told me to run the following command: configure --enable-languages=pascal, but I cannot find an executable file such as configure.exe, and I have read the help entirely but I still don't know where I can get it. Please help me! Thanks. yours, Alan Sun
Alan Sun wrote:
I've got a problem when I was installing gpc. The instruction told me to run the following command: configure --enable-languages=pascal, but I cannot find an executable file such as configure.exe, and I have read the help entirely but I still don't know where I can get it. Please help me! Thanks.
configure is a shell script, included with the sources.
You didn't specify your platform, but from your other mail I see you seem to be on DJGPP. To run shell scripts there, you first need to get bash for DJGPP, then invoke it as `bash configure' or start bash first and then type `./configure' in bash.
But I don't know if there are currently other problems when building on DJGPP (I always cross-build my DJGPP versions from Linux which was much easier some time ago, but things might have become better on DJGPP in the meantime). Perhaps someone else can say more about it.
Frank
Frank Heckenbach wrote:
Alan Sun wrote:
I've got a problem when I was installing gpc. The instruction told me to run the following command: configure --enable-languages=pascal, but I cannot find an executable file such as configure.exe, and I have read the help entirely but I still don't know where I can get it. Please help me! Thanks.
configure is a shell script, included with the sources.
You didn't specify your platform, but from your other mail I see you seem to be on DJGPP. To run shell scripts there, you first need to get bash for DJGPP, then invoke it as `bash configure' or start bash first and then type `./configure' in bash.
But I don't know if there are currently other problems when building on DJGPP (I always cross-build my DJGPP versions from Linux which was much easier some time ago, but things might have become better on DJGPP in the meantime). Perhaps someone else can say more about it.
Indeed gpc can be compiled natively on djgpp from the gpc alpha sources,
found in the directory alphas on agnes, if you have a complete enough djgpp setup. But there are some djgpp specific issues which apply also when compiling gcc and the other members of the Gnu Compiler Collection suite (gpp g77 ...). The best way is to download from simtelnet the file gpc2953s.zip which contains what is necessary to compile gpc with the then last gpc alpha (gpc-20010623.tar.gz), and read the readme.gpc file in the build directory (you will need in addition _original_ gcc and libg++ gnu sources, _not_ the djgpp modified ones contained in simtelnet). Replacing gpc-20010623.tar.gz with a more recent alpha and editing the file build/all.bat to give the correct gpc filename will enable you to compile it in the same way (simply issuing all from the build directory if all the files are there).
Now if you are only a gpc user and do'nt mind to compile the compiler itself, the simplest way is to download the _two_ binaries gcc2953b.zip _and_ gpc2953b.zip from a simtelnet mirror and install them in your djgpp tree in the usual way. Now read the file %DJDIR%\gnu\gcc-2.953\gcc\p\readme.djgpp (unzipped from gpc2953b.zip) which explains extra steps to do (you will need auxiliary libraries for any serious work).
For more recent versions, each time I compile a new gpc alpha (this way) and check that the whole test suite runs without error I put it on agnes under the constant link ftp://agnes.dida.physik.uni-essen.de/home/maurice/gpc2953b.zip
(presently it is gpc-20010924)
Hope this helps
Maurice