
Hi, trying out haskell. Have osx 10.7 and ghc 7.0.4 via homebrew When attempting to compile a program via cabal i get ghc: could not execute: opt I assume I have something missing / not configured with my env. Can someone point me in the direction ? Thanks

Hi Graham,
opt is the is the LLVM optimizer, so you need to install LLVM.
Cheers,
Oliver
On Sat, Mar 3, 2012 at 9:39 PM, Graham Berks
Hi, trying out haskell.
Have osx 10.7 and ghc 7.0.4 via homebrew
When attempting to compile a program via cabal i get
ghc: could not execute: opt
I assume I have something missing / not configured with my env.
Can someone point me in the direction ?
Thanks
_______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

you can use brew install llvm to install llvm. It worked for me.
Regards
Mukesh Tiwari
On Mar 3, 6:58 pm, G
Thanks, i though the llvm was part of the OS install these days. Not that I know much about OSX coding.
Will download and try it.
Thanks
_______________________________________________ Haskell-Cafe mailing list Haskell-C...@haskell.orghttp://www.haskell.org/mailman/listinfo/haskell-cafe

On Sat, Mar 3, 2012 at 08:39, Graham Berks
Hi, trying out haskell.
Have osx 10.7 and ghc 7.0.4 via homebrew
When attempting to compile a program via cabal i get
ghc: could not execute: opt
Xcode 4 includes only part of LLVM; ghc has apparently found that part and is trying to use it, but "opt" is one of the pieces that isn't there. You'll need to install a full LLVM or find out how to get ghc to not use -fllvm by default (I *think* that's what's going on?). -- brandon s allbery allbery.b@gmail.com wandering unix systems administrator (available) (412) 475-9364 vm/sms
participants (5)
-
Brandon Allbery
-
G
-
Graham Berks
-
mukesh tiwari
-
Oliver Batchelor