Johan Tibell | 11 Dec 13:18

Installing on Leopard

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
(Continue reading)

Christian Maeder | 11 Dec 13:48
Favicon

Re: Installing on Leopard

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

Again, I don't know what binary distribution you've got, but try to
install gmp, too

> $ sudo port install readline
> <snip>

> --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

This could be my binary:
http://www.haskell.org/ghc/dist/6.8.1/maeder/ghc-6.8.1-i386-apple-darwin-tiger-optlibs.tar.bz2

Cheers Christian
Christian Maeder | 11 Dec 13:56
Favicon

Re: Installing on Leopard

Johan Tibell wrote:
> I thought GHC shipped with its own GMP lib.

This is the case for:
http://www.haskell.org/ghc/dist/6.8.1/chakravarty/ghc-6.8.1-i386-apple-darwin.tar.bz2
Johan Tibell | 11 Dec 18:45

Re: Installing on Leopard

On Dec 11, 2007 1:56 PM, Christian Maeder <Christian.Maeder <at> dfki.de> wrote:
> Johan Tibell wrote:
> > I thought GHC shipped with its own GMP lib.
>
> This is the case for:
> http://www.haskell.org/ghc/dist/6.8.1/chakravarty/ghc-6.8.1-i386-apple-darwin.tar.bz2

This is the one I used and I didn't install GMP per the instructions
but the error still seems related to GMP. What could be be the
problem?

Thanks!
Christian Maeder | 11 Dec 18:55
Favicon

Re: Installing on Leopard

Johan Tibell wrote:
> On Dec 11, 2007 1:56 PM, Christian Maeder <Christian.Maeder <at> dfki.de> wrote:
>> Johan Tibell wrote:
>>> I thought GHC shipped with its own GMP lib.
>> This is the case for:
>> http://www.haskell.org/ghc/dist/6.8.1/chakravarty/ghc-6.8.1-i386-apple-darwin.tar.bz2
> 
> This is the one I used and I didn't install GMP per the instructions
> but the error still seems related to GMP. What could be be the
> problem?

You need to install gmp from MacPorts so that you have:

/opt/local/lib/libgmp.3.dylib

HTH Christian
Johan Tibell | 11 Dec 19:27

Re: Installing on Leopard

> You need to install gmp from MacPorts so that you have:
>
> /opt/local/lib/libgmp.3.dylib

Thanks. That did it.

Gmane