2016-07-07 7 views
0

gdを依存関係としてインストールしようとしていますが、Cライブラリがインストールされていないと失敗します。WindowsにGDライブラリをインストールする

Configuring gd-3000.7.3... 
setup-Simple-Cabal-1.22.5.0-ghc-7.10.3.exe: Missing dependencies on foreign 
libraries: 
* Missing (or bad) header file: gd.h 
* Missing C libraries: gd, png, jpeg, fontconfig, freetype, expat 
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. 
If the header file does exist, it may contain errors that are caught by the C 
compiler at the preprocessing stage. In this case you can re-run configure 
with the verbosity flag -v3 to see the error messages. 

私はそれを登録するために、私はそれをインストールする必要があり見当がつかないしかし私はGD for Windowsを事前に構築されました。

答えて

0

最新バージョンのスタックバンドMSYS2は、pacman package managerを提供します。

まず自身が

stack exec -- pacman -S mingw-w64-x86_64-gd 
+0

おかげ経由でインストールすることができ

stack exec -- pacman -Syu 

GD [Redditの上/ U/tejon](https://www.reddit.com/を使用してMSYS環境を更新しようr/haskellgamedev/comments/4jpthu/windows_sdl2_is_now_almost_painless_via_stack /)を使用します。 –

関連する問題