osxに最新のhappstack-serverをインストールしようとしています。彼らはちょうどlibcryptoppに依存関係を追加しました。私はそれを動作させることはできません。だから、osxにhappstack-server 6.5.3をインストールする - libcryptoppがありません
~$ cabal install happstack-server
Resolving dependencies...
Configuring happstack-server-6.5.3...
cabal: Missing dependency on a foreign library:
* Missing C library: cryptopp
This problem can usually be solved by installing the system package that
provides this library (you may need the "-dev" version). If the library is
already installed but in a non-standard location then you can use the flags
--extra-include-dirs= and --extra-lib-dirs= to specify where it is.
cabal: Error: some packages failed to install:
happstack-server-6.5.3 failed during the configure step. The exception was:
ExitFailure 1
、その後私は
sudo port install libcryptopp
のlib /ローカルの/ opt /にlibcryptopp.aを入れた後、私は--extra-LIB-dirsに再びhappstack-サーバーをインストールし、MacPortsのでlibcryptoppをインストール
cabal install happstack-server --extra-lib-dirs=/opt/local/lib
それは罰金インストールし、すべてのものは、私が実際に実行 happstackサーバーまで動作しているようです。
私は間違っていますか?それとも、これは砂嵐のバグですか?私はmacports経由でlibをインストールした後も.dylibを持っていないだけで、.aだけです。強引なアプローチとしてghc --make Hello.hs
is even crazier
エラーがおそらくある 'Hello.hs'間違った 'iconv'ライブラリが原因です。私はどちらが忘れていますが、システム1がHaskellで動作しないと思うので、macports 'iconv'をインストールする必要があります。または、他の方法ラウンド。 Macはパッケージや場所をインストールする方法が非常に多いため、ちょっと混乱している。しかし、あなたがそれを理解したら、それはうまくいくと聞きます。 –