Hi.
I installed the binary version of 2.01 and 0.29 from Glasgow on linux.
Set the environment variable GLASGOW_HASKELL_ROOT.
When I tried to compile a Haskell programm I got following error message
GLAGOW_HASKELL_ROOT environment variable is set;
But can't untangle /loca/fp/lib/ghc/2.01/i386-unknown-linux.
(Installation error)
I had a look at the perl script ghc-2.01.
I compared it with the running ghc-0.26 script and made the following
corrections according to the 0.26 version and it runs.
The same can be applied to the ghc-0.29 script.
Bye,
Ulrike
- Ulrike Klusik | Horse sense is what keeps horses -
- | from betting on people -
- |----------| - W.C.Fields - -
- [EMAIL PROTECTED] |-----------------------------
- http://www.mathematik.uni-marburg.de/~klusik -
The patch:
------------------------------------------------------------------ cut here ---
115,116c115,116
< if ('/local/fp/lib/ghc/2.01/sparc-sun-solaris2' =~
/.*(\/lib\/ghc\/\d\.\d\d\/[^-]-[^-]-[^-]\/.*)/) {
< $InstLibDirGhc = $ENV{'GLASGOW_HASKELL_ROOT'} . $1;
---
> if ('/local/fp/lib/ghc/2.01/sparc-sun-solaris2/' =~
>/^\/(local\/fp|usr\/local)(\/.*)/ ) {
> $InstLibDirGhc = $ENV{'GLASGOW_HASKELL_ROOT'} . $2;
122,124c122,125
< if ('/local/fp/lib/ghc/2.01' =~ /.*(\/lib\/ghc\/\d\.\d\d\/.*)/) {
< $InstDataDirGhc = $ENV{'GLASGOW_HASKELL_ROOT'} . $2;
< } else {
---
> if ('/local/fp/lib/ghc/2.01' =~ /\/(local\/fp|usr\/local)(\/.*)/ ) {
> $InstDataDirGhc = $ENV{'GLASGOW_HASKELL_ROOT'} . $2;
> } else {