[Haskell-beginners] Error when running `cabal install cabal-install`
pengyu.ut at gmail.com
Thu Apr 23 17:46:45 PDT 2015
On Thu, Apr 23, 2015 at 7:39 PM, Ryan Schmidt <ryandesign at macports.org> wrote:
>> On Apr 23, 2015, at 7:23 PM, Peng Yu <pengyu.ut at gmail.com> wrote:
>>> Long story short: Try
>>> $> cabal install --extra-include-dirs=/opt/local/include --extra-lib-dirs=/opt/local/lib
>> I tried it but it still shows the error messages.
>> ~$ cabal install --extra-include-dirs=/opt/local/include
>> --extra-lib-dirs=/opt/local/lib cabal-install
>> Resolving dependencies...
>> Configuring cabal-install-188.8.131.52...
>> Failed to install cabal-install-184.108.40.206
>> Build log ( /Users/py/.cabal/logs/cabal-install-220.127.116.11.log ):
>> cabal: Error: some packages failed to install:
>> cabal-install-18.104.22.168 failed during the configure step. The exception was:
>> user error ('/usr/bin/ghc' exited with an error:
> You've installed ghc into /usr/bin? That's probably not a good idea. Prefix /usr is only for the OS vendor to install software into.
This is what installed from the haskell installer. I agree this might
not be a good idea. But I have no control over it.
More information about the macports-users