
On Tue, Jun 01, 2010 at 06:05:10PM +0200, Gabor PALI wrote:
Hej!
On Tue, Jun 1, 2010 at 4:41 PM, Eugene Dzhurinsky
wrote: Can somebody please advice what do I miss there?
[snip]
Configuring cairo-0.11.0... setup: gtk2hsC2hs is required but it could not be found.
Perhaps you will need to install c2hs? Like ´cabal install c2hs´?
I did that, but still no luck: ================================================================================= Script started on Tue Jun 1 19:57:32 2010 Resolving dependencies... Configuring random-1.0.0.2... Preprocessing library random-1.0.0.2... Building random-1.0.0.2... [1 of 1] Compiling System.Random ( System/Random.hs, dist/build/System/Random.o ) Registering random-1.0.0.2... Installing library in /home/bofh/.cabal/lib/random-1.0.0.2/ghc-6.12.1 Registering random-1.0.0.2... Configuring haskell98-1.0.1.1... Preprocessing library haskell98-1.0.1.1... Building haskell98-1.0.1.1... [ 1 of 30] Compiling Word ( Word.hs, dist/build/Word.o ) [ 2 of 30] Compiling Storable ( Storable.hs, dist/build/Storable.o ) [ 3 of 30] Compiling StablePtr ( StablePtr.hs, dist/build/StablePtr.o ) [ 4 of 30] Compiling Ptr ( Ptr.hs, dist/build/Ptr.o ) [ 5 of 30] Compiling MarshalUtils ( MarshalUtils.hs, dist/build/MarshalUtils.o ) [ 6 of 30] Compiling MarshalError ( MarshalError.hs, dist/build/MarshalError.o ) [ 7 of 30] Compiling MarshalArray ( MarshalArray.hs, dist/build/MarshalArray.o ) [ 8 of 30] Compiling MarshalAlloc ( MarshalAlloc.hs, dist/build/MarshalAlloc.o ) [ 9 of 30] Compiling Int ( Int.hs, dist/build/Int.o ) [10 of 30] Compiling ForeignPtr ( ForeignPtr.hs, dist/build/ForeignPtr.o ) [11 of 30] Compiling CTypes ( CTypes.hs, dist/build/CTypes.o ) [12 of 30] Compiling CString ( CString.hs, dist/build/CString.o ) [13 of 30] Compiling CForeign ( CForeign.hs, dist/build/CForeign.o ) [14 of 30] Compiling CError ( CError.hs, dist/build/CError.o ) [15 of 30] Compiling Bits ( Bits.hs, dist/build/Bits.o ) [16 of 30] Compiling Time ( Time.hs, dist/build/Time.o ) [17 of 30] Compiling Ratio ( Ratio.hs, dist/build/Ratio.o ) [18 of 30] Compiling Random ( Random.hs, dist/build/Random.o ) [19 of 30] Compiling Monad ( Monad.hs, dist/build/Monad.o ) [20 of 30] Compiling Maybe ( Maybe.hs, dist/build/Maybe.o ) [21 of 30] Compiling Locale ( Locale.hs, dist/build/Locale.o ) [22 of 30] Compiling List ( List.hs, dist/build/List.o ) [23 of 30] Compiling IO ( IO.hs, dist/build/IO.o ) [24 of 30] Compiling Directory ( Directory.hs, dist/build/Directory.o ) [25 of 30] Compiling Complex ( Complex.hs, dist/build/Complex.o ) [26 of 30] Compiling Char ( Char.hs, dist/build/Char.o ) [27 of 30] Compiling System ( System.hs, dist/build/System.o ) [28 of 30] Compiling CPUTime ( CPUTime.hs, dist/build/CPUTime.o ) [29 of 30] Compiling Ix ( Ix.hs, dist/build/Ix.o ) [30 of 30] Compiling Array ( Array.hs, dist/build/Array.o ) Registering haskell98-1.0.1.1... Installing library in /home/bofh/.cabal/lib/haskell98-1.0.1.1/ghc-6.12.1 Registering haskell98-1.0.1.1... /tmp/cairo-0.11.09066/cairo-0.11.0/Gtk2HsSetup.hs:25:0: warning: #warning Setup.hs is guessing the version of Cabal. If compilation of Setup.hs fails use -DCABAL_VERSION_MINOR=x for Cabal version 1.x.0 when building (prefixed by --ghc-option= when using the 'cabal' command) [1 of 2] Compiling Gtk2HsSetup ( /tmp/cairo-0.11.09066/cairo-0.11.0/Gtk2HsSetup.hs, /tmp/cairo-0.11.09066/cairo-0.11.0/dist/setup/Gtk2HsSetup.o ) [2 of 2] Compiling Main ( /tmp/cairo-0.11.09066/cairo-0.11.0/Setup.hs, /tmp/cairo-0.11.09066/cairo-0.11.0/dist/setup/Main.o ) Linking /tmp/cairo-0.11.09066/cairo-0.11.0/dist/setup/setup ... Configuring cairo-0.11.0... setup: gtk2hsC2hs is required but it could not be found. /tmp/glib-0.11.09066/glib-0.11.0/Gtk2HsSetup.hs:25:0: warning: #warning Setup.hs is guessing the version of Cabal. If compilation of Setup.hs fails use -DCABAL_VERSION_MINOR=x for Cabal version 1.x.0 when building (prefixed by --ghc-option= when using the 'cabal' command) [1 of 2] Compiling Gtk2HsSetup ( /tmp/glib-0.11.09066/glib-0.11.0/Gtk2HsSetup.hs, /tmp/glib-0.11.09066/glib-0.11.0/dist/setup/Gtk2HsSetup.o ) [2 of 2] Compiling Main ( /tmp/glib-0.11.09066/glib-0.11.0/Setup.hs, /tmp/glib-0.11.09066/glib-0.11.0/dist/setup/Main.o ) Linking /tmp/glib-0.11.09066/glib-0.11.0/dist/setup/setup ... Configuring glib-0.11.0... setup: gtk2hsC2hs is required but it could not be found. cabal: Error: some packages failed to install: cairo-0.11.0 failed during the configure step. The exception was: ExitFailure 1 gio-0.11.0 depends on glib-0.11.0 which failed to install. glib-0.11.0 failed during the configure step. The exception was: ExitFailure 1 gtk-0.11.0 depends on glib-0.11.0 which failed to install. pango-0.11.0 depends on glib-0.11.0 which failed to install. Script done on Tue Jun 1 19:58:47 2010 ================================================================================= and =================================================================================
c2hs There must be exactly one binding file (suffix .chs), and optionally one or more header files (suffix .h). Try the option `--help' on its own for more information. =================================================================================
so c2hs is installed. -- Eugene N Dzhurinsky