Today, after upgrading haskell platform, bumped onto a strange cabal installer problem:
The solution was to change the install-dirs in ~/.cabal/config,
i.e.
install dirs user
prefix: /Users/myuser/Library/Haskell
install dirs global
prefix: /Library/Haskell
Why? See this section in the cabal FAQ.
$ cabal install distributive-0.4.4 Resolving dependencies...
[1 of 1] Compiling Main ( /var/folders/2k/6dnfg_x43_a21poayfbpnby40000gn/T/distributive-0.4.4-27117/distributive-0.4.4/dist/setup/setup.hs, /var/folders/2k/6dnfg_x43_a21poayfbpnby40000gn/T/distributive-0.4.4-27117/distributive-0.4.4/dist/setup/Main.o )
Linking /var/folders/2k/6dnfg_x43_a21poayfbpnby40000gn/T/distributive-0.4.4-27117/distributive-0.4.4/dist/setup/setup ...
Configuring distributive-0.4.4...
Building distributive-0.4.4...
Preprocessing library distributive-0.4.4...
[1 of 2] Compiling Data.Distributive.Generic ( src/Data/Distributive/Generic.hs, dist/build/Data/Distributive/Generic.o )
[2 of 2] Compiling Data.Distributive ( src/Data/Distributive.hs, dist/build/Data/Distributive.o )
ld: library not found for -lHStransformers-compat-0.3.3.4-ghc7.8.3
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Failed to install distributive-0.4.4
cabal: Error: some packages failed to install:
distributive-0.4.4 failed during the building phase. The exception was:
ExitFailure 1
[1 of 1] Compiling Main ( /var/folders/2k/6dnfg_x43_a21poayfbpnby40000gn/T/distributive-0.4.4-27117/distributive-0.4.4/dist/setup/setup.hs, /var/folders/2k/6dnfg_x43_a21poayfbpnby40000gn/T/distributive-0.4.4-27117/distributive-0.4.4/dist/setup/Main.o )
Linking /var/folders/2k/6dnfg_x43_a21poayfbpnby40000gn/T/distributive-0.4.4-27117/distributive-0.4.4/dist/setup/setup ...
Configuring distributive-0.4.4...
Building distributive-0.4.4...
Preprocessing library distributive-0.4.4...
[1 of 2] Compiling Data.Distributive.Generic ( src/Data/Distributive/Generic.hs, dist/build/Data/Distributive/Generic.o )
[2 of 2] Compiling Data.Distributive ( src/Data/Distributive.hs, dist/build/Data/Distributive.o )
ld: library not found for -lHStransformers-compat-0.3.3.4-ghc7.8.3
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Failed to install distributive-0.4.4
cabal: Error: some packages failed to install:
distributive-0.4.4 failed during the building phase. The exception was:
ExitFailure 1
The solution was to change the install-dirs in ~/.cabal/config,
i.e.
install dirs user
prefix: /Users/myuser/Library/Haskell
install dirs global
prefix: /Library/Haskell
Why? See this section in the cabal FAQ.
Comments
Post a Comment
Please be relevant, helpful and nice.