Problems installing 7.6.2 on MACOS
Dominic Steinitz
dominic at steinitz.org
Wed Mar 27 16:55:05 CET 2013
Answering my own question: it seems I made a rookie mistake and specified --prefix=/Library/Haskell which is where 7.4.1 lives. I just specified --prefix=/usr/lib and as far as I can tell everything works.
On 27 Mar 2013, at 11:40, Dominic Steinitz <dominic at steinitz.org> wrote:
> Hi,
>
> I followed the instructions pointed to from here: http://www.haskell.org/ghc/download_ghc_7_6_2#macosx_x86_64
>
>> bash-3.2$ ./configure --prefix=/Library/Haskell
>
>
>> bash-3.2$ sudo make install
>
>
> But sadly I get:
>
>> bash-3.2$ ghc-pkg list
>> ghc-pkg: missing --global-package-db option, location of global package database unknown
>
>
> and
>
>> bash-3.2$ ghc --make nnClassifier.lhs -O2
>> ghc: missing -B<dir> option
>
>
> Any advice on how to get 7.6.2 working would be much appreciated.
>
> Dominic.
>
> Here's some more information:
>
>> bash-3.2$ which ghc-pkg
>> /Library/Haskell/lib/ghc-7.6.2/ghc-pkg
>> bash-3.2$ which ghc
>> /Library/Haskell/lib/ghc-7.6.2/ghc
>
> 7.4.1 still works fine:
>
>> bash-3.2$ ghc-pkg-7.4.1 list
>> /Library/Frameworks/GHC.framework/Versions/7.4.1-x86_64/usr/lib/ghc-7.4.1/package.conf.d:
>> Cabal-1.14.0
>> GLUT-2.1.2.1
>
>
>> bash-3.2$ ghc-7.4.1 --make nnClassifier.lhs -O2 -fforce-recomp
>> [1 of 6] Compiling MatrixPlus ( MatrixPlus.hs, MatrixPlus.o )
>> [2 of 6] Compiling NeuralNet ( NeuralNet.hs, NeuralNet.o )
>> [3 of 6] Compiling Backprop ( Backprop.hs, Backprop.o )
>> [4 of 6] Compiling MarineExplore ( MarineExplore.hs, MarineExplore.o )
>> [5 of 6] Compiling Runner ( Runner.hs, Runner.o )
>> [6 of 6] Compiling Main ( nnClassifier.lhs, nnClassifier.o )
>> Linking nnClassifier ...
>> ld: warning: directory not found for option '-L/opt/local/lib/'
>> bash-3.2$ ./nnClassifier
>> Reading training labels...
>> Read 100 labels[(1,0),(2,1),(3,0),(4,1),(5,0),(6,0),(7,1),(8,0),(9,1),(10,0)]
>> Reading training images...
>> 9:9
>> 9:9
>
>
More information about the Glasgow-haskell-users
mailing list