Dominic Steinitz | 27 Mar 12:40 2013

Problems installing 7.6.2 on MACOS

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

Dominic Steinitz | 27 Mar 16:55 2013

Re: Problems installing 7.6.2 on MACOS

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

Bertram Felgenhauer | 7 Apr 18:13 2013

Re: Problems installing 7.6.2 on MACOS

Dear Dominic,

Dominic Steinitz wrote:
> > bash-3.2$ ./configure --prefix=/Library/Haskell
...
> > 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

These are the wrong executables; the right ones would be in
/Library/Haskell/bin . (For example, /Library/Haskell/bin/ghc
is a shell script that invokes the ghc binary with the appropriate
-B option.)

Bertram

Gmane