Installing on Leopard

Johan Tibell johan.tibell at gmail.com
Tue Dec 11 07:22:22 EST 2007


I have some problems installing 6.8.1 on Mac OS X Leopard. First I
installed readline using ports:

$ sudo port install readline
<snip>

Then GHC
$ ./configure --prefix=$HOME && make install

make -C rts       install      DOING_BIN_DIST=YES
cc -E -undef -traditional -P -DINSTALLING \
               -DIMPORT_DIR='"/Users/tibell/lib/ghc-6.8.1/imports"' \
               -DLIB_DIR='"/Users/tibell/lib/ghc-6.8.1"' \
               -DINCLUDE_DIR='"/Users/tibell/lib/ghc-6.8.1/include"' \
               -DDATA_DIR='"/Users/tibell/share/ghc-6.8.1"' \
               -DHTML_DIR='"/Users/tibell/share/ghc-6.8.1/html/libraries/rts"' \
               -DHADDOCK_IFACE='"/Users/tibell/share/ghc-6.8.1/html/libraries/rts/rts.haddock"'
\
               -I../includes \
               -x c -DGMP_INCLUDE_DIRS='' -DGMP_LIB_DIRS='' -I
-Iinclude -DPACKAGE=rts -DVERSION=
-DPKG_LIBDIR='"/Users/tibell/lib/ghc-6.8.1"'
-DPKG_DATADIR='"/Users/tibell/share/ghc-6.8.1"' package.conf.in \
            | grep -v '^#pragma GCC' \
            | sed -e 's/""//g' -e 's/:[   ]*,/: /g' \
            | /Users/tibell/Downloads/ghc-6.8.1/utils/ghc-pkg/ghc-pkg.bin
--global-conf /Users/tibell/lib/ghc-6.8.1/package.conf update -
--force
dyld: Library not loaded: /opt/local/lib/libgmp.3.dylib
  Referenced from: /Users/tibell/Downloads/ghc-6.8.1/utils/ghc-pkg/ghc-pkg.bin
  Reason: image not found
/bin/sh: line 1: 60782 Done                    cc -E -undef
-traditional -P -DINSTALLING
-DIMPORT_DIR='"/Users/tibell/lib/ghc-6.8.1/imports"'
-DLIB_DIR='"/Users/tibell/lib/ghc-6.8.1"'
-DINCLUDE_DIR='"/Users/tibell/lib/ghc-6.8.1/include"'
-DDATA_DIR='"/Users/tibell/share/ghc-6.8.1"'
-DHTML_DIR='"/Users/tibell/share/ghc-6.8.1/html/libraries/rts"'
-DHADDOCK_IFACE='"/Users/tibell/share/ghc-6.8.1/html/libraries/rts/rts.haddock"'
-I../includes -x c -DGMP_INCLUDE_DIRS='' -DGMP_LIB_DIRS='' -I
-Iinclude -DPACKAGE=rts -DVERSION=
-DPKG_LIBDIR='"/Users/tibell/lib/ghc-6.8.1"'
-DPKG_DATADIR='"/Users/tibell/share/ghc-6.8.1"' package.conf.in
     60783                       | grep -v '^#pragma GCC'
     60784                       | sed -e 's/""//g' -e 's/:[   ]*,/: /g'
     60786 Trace/BPT trap          |
/Users/tibell/Downloads/ghc-6.8.1/utils/ghc-pkg/ghc-pkg.bin
--global-conf /Users/tibell/lib/ghc-6.8.1/package.conf update -
--force
make[1]: *** [install] Error 133
make: *** [install] Error 2

-------------------

I thought GHC shipped with its own GMP lib.

-- Johan


More information about the Glasgow-haskell-users mailing list