I did:
cabal update
cabal install gtk2hs-buildtools
But stuck here:
>cabal install gtk
Resolving dependencies...
[1 of 2] Compiling SetupWrapper ( C:Users1AppDataLocalTempgtk-0.12.5.4
-4000gtk-0.12.5.4SetupWrapper.hs, C:Users1AppDataLocalTempgtk-0.12.5.4-4
000gtk-0.12.5.4distsetupSetupWrapper.o )
[2 of 2] Compiling Main ( C:Users1AppDataLocalTempgtk-0.12.5.4
-4000gtk-0.12.5.4Setup.hs, C:Users1AppDataLocalTempgtk-0.12.5.4-4000gtk
-0.12.5.4distsetupMain.o )
Linking C:Users1AppDataLocalTempgtk-0.12.5.4-4000gtk-0.12.5.4distsetup
setup.exe ...
[1 of 2] Compiling Gtk2HsSetup ( Gtk2HsSetup.hs, distsetup-wrapperGtk2HsS
etup.o )
[2 of 2] Compiling Main ( SetupMain.hs, distsetup-wrapperMain.o )
Linking dist/setup-wrappersetup.exe ...
Configuring gtk-0.12.5.4...
setup.exe: The pkg-config package gtk+-2.0 is required but it could not be
found.
Failed to install gtk-0.12.5.4
cabal: Error: some packages failed to install:
gtk-0.12.5.4 failed during the configure step. The exception was:
ExitFailure 1
But I have such files in folders C:gtkallinonein
:
libgthread-2.0-0.dll
And C:gtkallinonelib
:
gthread-2.0.lib
gthread-2.0.def
I have this path in PATH
environment:
C:gtkallinonein
How to install it?
*UPD*
After installing gtk-0.12.5.4
I encountered the problem of lack m.dll
.
I uninstalled them with ghc-pkg uregister
.
Now see th updated answer.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…