[Haskell-beginners] Error when running `cabal install cabal-install`

Peng Yu pengyu.ut at gmail.com
Thu Apr 23 19:39:50 UTC 2015


~$ cabal --version
cabal-install version 1.18.0.5
using version 1.18.1.4 of the Cabal library
~$ ghc --version
The Glorious Glasgow Haskell Compilation System, version 7.8.3

I got the following error. Does anybody know how to resolve it? Thanks.

~$ cabal install cabal-install
Resolving dependencies...
Configuring Cabal-1.22.3.0...
Failed to install Cabal-1.22.3.0
Last 10 lines of the build log ( /Users/py/.cabal/logs/Cabal-1.22.3.0.log ):
cabal: Error: some packages failed to install:
Cabal-1.22.3.0 failed during the configure step. The exception was:
user error (Undefined symbols for architecture x86_64:
"_iconv", referenced from:
_hs_iconv in libHSbase-4.7.0.1.a(iconv.o)
(maybe you meant: _hs_iconv,
_base_GHCziIOziEncodingziIconv_iconvEncodingzuloc1_info ,
_base_GHCziIOziEncodingziIconv_iconvEncoding9_info ,
_base_GHCziIOziEncodingziIconv_iconvEncoding9_closure ,
_base_GHCziIOziEncodingziIconv_iconvEncoding8_info ,
_base_GHCziIOziEncodingziIconv_iconvEncodingzuloc_closure ,
_base_GHCziIOziEncodingziIconv_iconvEncoding10_info ,
_base_GHCziIOziEncodingziIconv_iconvEncoding6_closure ,
_base_GHCziIOziEncodingziIconv_iconvEncoding10_closure ,
_base_GHCziIOziEncodingziIconv_iconvEncoding3_closure ,
_base_GHCziIOziEncodingziIconv_iconvEncoding7_info , _hs_iconv_close ,
_base_GHCziIOziEncodingziIconv_iconvEncodingzuloc1_closure ,
_base_GHCziIOziEncodingziIconv_iconvEncoding2_info ,
_base_GHCziIOziEncodingziIconv_iconvEncoding8_closure ,
_base_GHCziIOziEncodingziIconv_iconvEncoding3_info ,
_base_GHCziIOziEncodingziIconv_iconvEncoding2_closure ,
_base_GHCziIOziEncodingziIconv_iconvEncoding7_closure ,
_base_GHCziIOziEncodingziIconv_iconvEncodingzuloc_info ,
_base_GHCziIOziEncodingziIconv_iconvEncoding4_closure ,
_base_GHCziIOziEncodingziIconv_iconvEncoding6_info , _hs_iconv_open )
"_iconv_close", referenced from:
_hs_iconv_close in libHSbase-4.7.0.1.a(iconv.o)
(maybe you meant: _hs_iconv_close)
"_iconv_open", referenced from:
_hs_iconv_open in libHSbase-4.7.0.1.a(iconv.o)
(maybe you meant: _hs_iconv_open)
"_locale_charset", referenced from:
_localeEncoding in libHSbase-4.7.0.1.a(PrelIOUtils.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see
invocation)
)
cabal-install-1.22.3.0 depends on Cabal-1.22.3.0 which failed to install.
~/ports$ gvim ~/.cabal/logs/


-- 
Regards,
Peng


More information about the Beginners mailing list