Installing ghc-6.8.2 on Mac/Leopard http://d.hatena.ne.jp/hidewood/searchdiary?word=Leopard ---------------------------------------------------------------------- # ghc-6.8.2-i386-apple-darwin.tar.bz2 on the CD under devel/ghc # curl -O http://haskell.org/ghc/dist/6.8.2/chakravarty/ghc-6.8.2-i386-apple-darwin.tar.bz2 bzcat ghc-6.8.2-i386-apple-darwin.tar.bz2 | tar xvf - cd ghc-6.8.2 ./configure make sudo make install ---------------------------------------------------------------------- % ghci dyld: Library not loaded: /opt/local/lib/libreadline.5.2.dylib Referenced from: /usr/local/lib/ghc-6.8.2/ghc-6.8.2 Reason: image not found Trace/BPT trap ---------------------------------------------------------------------- # readline-5.2.tar.gz on the CD under devel/ghc # curl -O ftp://ftp.gnu.org/gnu/readline/readline-5.2.tar.gz gzcat readline-5.2.tar.gz | tar xvf - cd readline-5.2 ./configure make ---------------------------------------------------------------------- gcc -dynamic -arch_only `/usr/bin/arch` -install_name /usr/local/lib/libreadline.5.2.dylib -current_version 5.2 -compatibility_version 5 -v -o libreadline.5.2.dylib readline.so vi_mode.so funmap.so keymaps.so parens.so search.so rltty.so complete.so bind.so isearch.so display.so signals.so util.so kill.so undo.so macro.so input.so callback.so terminal.so text.so nls.so misc.so xmalloc.so history.so histexpand.so histfile.so histsearch.so shell.so mbutil.so tilde.so compat.so -lncurses Using built-in specs. Target: i686-apple-darwin9 Configured with: /var/tmp/gcc/gcc-5465~16/src/configure --disable-checking -enable-werror --prefix=/usr --mandir=/share/man --enable-languages=c,objc,c++,obj-c++ --program-transform-name=/^[cg][^.-]*$/s/$/-4.0/ --with-gxx-include-dir=/include/c++/4.0.0 --with-slibdir=/usr/lib --build=i686-apple-darwin9 --with-arch=apple --with-tune=generic --host=i686-apple-darwin9 --target=i686-apple-darwin9 Thread model: posix gcc version 4.0.1 (Apple Inc. build 5465) i686-apple-darwin9-gcc-4.0.1: -compatibility_version only allowed with -dynamiclib make[1]: *** [libreadline.5.2.dylib] Error 1 make: [shared] Error 2 (ignored) ---------------------------------------------------------------------- edit readline-5.2/support/shobj-conf darwin[78]*) SHOBJ_LDFLAGS='' darwin[789]*) SHOBJ_LDFLAGS='' ./configure CFLAGS="-isystem /usr/local/include" make sudo make install ---------------------------------------------------------------------- % ghci dyld: Library not loaded: /opt/local/lib/libgmp.3.dylib Referenced from: /usr/local/lib/ghc-6.8.2/ghc-6.8.2 Reason: image not found Trace/BPT trap ---------------------------------------------------------------------- # gmp-4.2.2.tar.bz2 on the CD under devel/ghc # curl -O ftp://ftp.gnu.org/gnu/gmp/gmp-4.2.2.tar.bz2 bzcat gmp-4.2.2.tar.bz2 | tar xvf - ./configure make make check sudo make install