Hi,
I realise this is probably more of a MinGW problem than a GNU Pascal problem, but I thought someone here might know the solution. I've seen a few similar reports in the mailing list archives, but I cannot seem to find one that is identical.
First off, I'll tell you how I went about installing Gnu Pascal to run under (networked) Windows XP:-
1. Run MinGW-3.1.0-1.exe 2. Run MSYS-1.0.9.exe and point it at the MinGW installation. 3. Install gpc-mingw-gcc-2.95.3-6-depends.tar.gz 4. Run gpc-2.1-mingw-1.exe 5. Add c:\mingw\bin to the (Windows XP) command path. So far so good, everything works, and I'm able to compile hello.pas from MSYS with no problems!
The problem occurs after I change directory from C: (where everything is installed) to another drive. Then when I try to compile hello.pas, I get:-
$ cd /s/ $ gpc hello.pas c:\mingw\bin\gpc.exe: installation problem, cannot exec `gpcpp': No such file or directory
Can someone please advise? Is this to do with mounting? My mounts look something like this (if it helps):-
C:\msys\1.0\bin on /usr/bin type user (binmode,cygexec,noumount) C:\msys\1.0\bin on /bin type user (binmode,cygexec,noumount) C:\msys\1.0 on / type user (binmode,noumount) C:\msys\1.0 on /usr type user (binmode,noumount) c:\mingw on /mingw type user (binmode) a: on /a type user (binmode,noumount) c: on /c type user (binmode,noumount) d: on /d type user (binmode,noumount) p: on /p type user (binmode,noumount) s: on /s type user (binmode,noumount) t: on /t type user (binmode,noumount)
Any help greatly appreciated!
cheers, Ian
On 7 Nov 2003 at 11:45, Ian Miller wrote:
Hi,
I realise this is probably more of a MinGW problem than a GNU Pascal problem, but I thought someone here might know the solution. I've seen a few similar reports in the mailing list archives, but I cannot seem to find one that is identical.
First off, I'll tell you how I went about installing Gnu Pascal to run under (networked) Windows XP:-
- Run MinGW-3.1.0-1.exe
- Run MSYS-1.0.9.exe and point it at the MinGW installation.
- Install gpc-mingw-gcc-2.95.3-6-depends.tar.gz
- Run gpc-2.1-mingw-1.exe
- Add c:\mingw\bin to the (Windows XP) command path.
So far so good, everything works, and I'm able to compile hello.pas from MSYS with no problems!
The problem occurs after I change directory from C: (where everything is installed) to another drive. Then when I try to compile hello.pas, I get:-
$ cd /s/ $ gpc hello.pas c:\mingw\bin\gpc.exe: installation problem, cannot exec `gpcpp': No such file or directory
Can someone please advise? Is this to do with mounting?
Try setting the "GPC_EXEC_PREFIX" environment variable - e.g., export GPC_EXEC_PREFIX=/mingw/lib/gcc-lib/
First try it at the command prompt, and, if it works, then you can make it persistent in your /etc/profile file, or (better still) in your $HOME/.profile file.
Best regards, The Chief --------- Prof. Abimbola Olowofoyeku (The African Chief) Web: http://www.bigfoot.com/~african_chief/
On Fri, 7 Nov 2003, Prof. A Olowofoyeku (The African Chief) wrote:
On 7 Nov 2003 at 11:45, Ian Miller wrote:
Hi,
I realise this is probably more of a MinGW problem than a GNU Pascal problem, but I thought someone here might know the solution. I've seen a few similar reports in the mailing list archives, but I cannot seem to find one that is identical.
First off, I'll tell you how I went about installing Gnu Pascal to run under (networked) Windows XP:-
- Run MinGW-3.1.0-1.exe
- Run MSYS-1.0.9.exe and point it at the MinGW installation.
- Install gpc-mingw-gcc-2.95.3-6-depends.tar.gz
- Run gpc-2.1-mingw-1.exe
- Add c:\mingw\bin to the (Windows XP) command path.
So far so good, everything works, and I'm able to compile hello.pas from MSYS with no problems!
The problem occurs after I change directory from C: (where everything is installed) to another drive. Then when I try to compile hello.pas, I get:-
$ cd /s/ $ gpc hello.pas c:\mingw\bin\gpc.exe: installation problem, cannot exec `gpcpp': No such file or directory
Can someone please advise? Is this to do with mounting?
Try setting the "GPC_EXEC_PREFIX" environment variable - e.g., export GPC_EXEC_PREFIX=/mingw/lib/gcc-lib/
"to another drive" - dosen't that mean it should be "c:/mingw/lib/gcc-lib/" ? (That's what you'd need back in the old DOS days)
Russ
On 7 Nov 2003 at 8:54, Russell Whitaker wrote:
[...]
Try setting the "GPC_EXEC_PREFIX" environment variable - e.g., export GPC_EXEC_PREFIX=/mingw/lib/gcc-lib/
"to another drive" - dosen't that mean it should be "c:/mingw/lib/gcc-lib/" ?
Probably. But I haven't seen this problem in a very long time, and I can't reproduce it with my gcc-20030830.
Best regards, The Chief -------- Prof. Abimbola A. Olowofoyeku (The African Chief) web: http://www.bigfoot.com/~african_chief/
chiefsoft@bigfoot.com writes:
On 7 Nov 2003 at 8:54, Russell Whitaker wrote:
[...]
Try setting the "GPC_EXEC_PREFIX" environment variable - e.g., export GPC_EXEC_PREFIX=/mingw/lib/gcc-lib/
"to another drive" - dosen't that mean it should be "c:/mingw/lib/gcc-lib/" ?
Probably. But I haven't seen this problem in a very long time, and I can't reproduce it with my gcc-20030830.
Hi,
Thanks for your help. Just to update you all, setting GPC_EXEC_PREFIX to either
/c/mingw/lib/gcc-lib/ or c:/mingw/lib/gcc-lib/
will work. But as Russell points out, you must specify the drive letter. For reference, the version of GCC I have installed is "gcc.exe (GCC) 3.2.3 (mingw special 20030504-1)".
cheers, Ian
imiller@jwheatley.ac.uk writes:
Thanks for your help. Just to update you all, setting GPC_EXEC_PREFIX to either
/c/mingw/lib/gcc-lib/ or c:/mingw/lib/gcc-lib/
Just as a footnote, if you wish to use GPC from both the Windows command line and MSYS, then it is probably best to set up a Windows environment variable GPC_EXEC_PREFIX=c:\mingw\lib\gcc-lib\ (rather than setting the variable in MSYS's /etc/profile, where Windows cannot see it).
cheers, Ian