GHC 6.0 Release: sparc-solaris2 binaries

Matt Fairtlough Matt Fairtlough <matt@dcs.shef.ac.uk>
Tue, 3 Jun 2003 17:08:37 +0100 (BST)


I am having trouble installing the package in a non-standard place.  After
downloading and unpacking I did:

> ./configure --prefix=/home/matt
creating cache ./config.cache
checking host system type... sparc-sun-solaris2.9
...
<usual reports, not relevant to problem reported I think>
...
updating cache ./config.cache
creating ./config.status
creating Makefile
****************************************************
Configuration done, ready to either 'make install'
or 'make in-place'.
(see README and INSTALL files for more info.)
****************************************************

So this looks ok; and is confirmed by:

> make show-install-setup
Install setup...
bindir  = /home/matt/bin
libdir  = /home/matt/lib/ghc-6.0 (libdir  = /home/matt/lib/ghc-6.0)
datadir = /home/matt/share/ghc-6.0 (datadir = /home/matt/share/ghc-6.0)
> make install >&! install.log 

> more install.log
Configuring ghc, version 6.0, on sparc-sun-solaris2 ...
Creating a configured version of ghc-asm ..
Done.
Creating a configured version of ghc-split ..
Done.
Creating a configured version of ghc-6.0 ..
Done.
Creating a configured version of ghci-6.0 ..
Done.
Creating a configured version of ghc-pkg-6.0 ..
Done.
Creating a configured version of hsc2hs ..
Done.
./mkdirhier /home/matt/bin
(cd lib/sparc-sun-solaris2; find . -type d -exec sh -c '../.././mkdirhier $0 
/ho
me/matt/lib/ghc-6.0/$0' {} \; )
(cd share; find . -type d -exec sh -c '.././mkdirhier 
/home/matt/share/ghc-6.0/$
0' {} \; )
for i in  ghc-6.0 ghci-6.0 ghc-pkg-6.0 hsc2hs ""; do \
   if test -n "$i" ; then /usr/local/bin/ginstall -c -m 755   
bin/sparc-sun-sola
ris2/$i /home/matt/bin; fi; \
done;
for i in hp2ps ghcprof ""; do \
   if test -n "$i" ; then /usr/local/bin/ginstall -c -m 755   
bin/sparc-sun-sola
ris2/$i /home/matt/bin; fi; \
done;
Creating a symbolic link from ghc-6.0 to ghc
Creating a symbolic link from ghci-6.0 to ghci
Creating a symbolic link from ghc-pkg-6.0 to ghc-pkg
(cd lib/sparc-sun-solaris2; find . -type f -exec sh -c 'cp $0 
/home/matt/lib/ghc
-6.0/$0' {} \; )
for i in `(cd share; find . -type f )`; do \
   /usr/local/bin/ginstall -c -m 644   share/$i /home/matt/share/ghc-6.0/$i; 
\
done
./mkdirhier /home/matt/share/ghc-6.0/html 
if test -d share/html ; then cp -r share/html/* /home/matt/share/ghc-6.0/html 
; 
fi
for i in share/*.ps; do \
        cp $i /home/matt/share/ghc-6.0 ; \
done
cp: cannot stat `share/*.ps': No such file or directory
make: *** [install-docs] Error 1

ok, a problem with the documentation but I think this is the last thing make
install does so it shouldn't affect the binaries.

> ls -l `which ghc`
lrwxrwxrwx    1 matt     vt  7 Jun  3 16:54 /home/matt/bin/ghc -> ghc-6.0*

ok, looks reasonable, should work:

> ghc --version
/home/matt/bin/ghc: /usr/local/lib/ghc-6.0/ghc-6.0: not found

oops, who said anything about /usr/local?

> more /home/matt/bin/ghc
#! /bin/sh
bindir='/home/matt/bin'
libdir='/home/matt/lib/ghc-6.0'
libexecdir='/home/matt/lib/ghc-6.0'
datadir='/home/matt/share/ghc-6.0'
SED='/usr/local/bin/sed'
DEFAULT_TMPDIR='/tmp'
#!/bin/sh
GHCBIN="/usr/local/lib/ghc-6.0/ghc-6.0";
TOPDIROPT="-B/usr/local/lib/ghc-6.0";
# Mini-driver for GHC
exec $GHCBIN $TOPDIROPT ${1+"$@"}

That doesn't look right at all.

Matt.

-----------------------------------------------------------------------
Matt Fairtlough	 0114-22-21826  http://www.dcs.shef.ac.uk/~matt/
-----------------------------------------------------------------------