2013-05-17 13 views
9

私はhaskellでunicodeを試してみたいと思います。Data.Textのドキュメントではtext-icuが必要です。これは私が試したものです:Mac OSXでカバール付きのテキストicuをインストールする

のMac OS X 10.6.8

~/haskell_programs$ cabal update 
Downloading the latest package list from hackage.haskell.org 

~/haskell_programs$ cabal install text-icu 
Resolving dependencies... 
Downloading text-icu-0.6.3.5... 
Configuring text-icu-0.6.3.5... 
cabal: Missing dependencies on foreign libraries: 
* Missing C libraries: icui18n, icudata, icuuc 
This problem can usually be solved by installing the system packages that 
provide these libraries (you may need the "-dev" versions). If the libraries 
are already installed but in a non-standard location then you can use the 
flags --extra-include-dirs= and --extra-lib-dirs= to specify where they are. 
Failed to install text-icu-0.6.3.5 
cabal: Error: some packages failed to install: 
text-icu-0.6.3.5 failed during the configure step. The exception was: 
ExitFailure 1 

私は同じ問題を抱えていたWindowsユーザーによってポストを見つけました。私は本当に出て、それらのCライブラリをインストールする必要がありますか?それとも、私のシステムのどこかに「置き忘れた」のですか?

ありがとうございました。

+2

私はこれがオフトピックである任意の意味を見ることができません。あまりにもローカライズされていません。 – AndrewC

答えて

18

あなたが自作を使用しているしている場合、これは私が使用するコマンドです:

DYLD_LIBRARY_PATH=/usr/local/opt/icu4c/lib      \ 
     cabal install text-icu          \ 
      --extra-include-dirs=/usr/local/opt/icu4c/include  \ 
      --extra-lib-dirs=/usr/local/opt/icu4c/lib 
+0

または醸造リンクicu4c --force –

関連する問題