----- Original Message -----From: Berlin BrownTo: aditya siramSent: Tuesday, February 22, 2011 1:45 AMSubject: Re: [Haskell-beginners] GTK Haskell and Error on Win32, anyone see the issue?
On Tue, Feb 22, 2011 at 12:53 AM, Berlin Brown <berlin.brown@gmail.com> wrote:
Here is the include, I will try installing in different steps.C:\Documents and Settings\bbrown>echo %INCLUDE%C:\Program Files\libxml2\libxml2-dev_2.7.7-1_win32\include--
On Tue, Feb 22, 2011 at 12:22 AM, aditya siram <aditya.siram@gmail.com> wrote:
What does 'echo %INCLUDE%' and 'echo %PATH%' output? You might want to
try installing the dependencies separately to see where its going
wrong. For instance 'cabal install glib' and 'cabal install cairo'
etc. Let me know if I can help you further.
-deech
> _______________________________________________
On Mon, Feb 21, 2011 at 11:01 PM, Berlin Brown <berlin.brown@gmail.com> wrote:
> I am following the steps outlined here but I am still getting errors related
> to my install of gtk
>
> Here is one of the first errors:
>
> tup\setup.exe ...
> Configuring cairo-0.12.0...
> setup.exe: Missing dependencies on foreign libraries:
> * Missing C libraries: z, cairo
> 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.
>
> http://www.haskell.org/haskellwiki/Gtk2Hs
>
>
> Here is the output:
> C:\Documents and Settings\Bot User>echo %LIB%
> C:\Program Files\Gtk+\lib
>
> C:\Documents and Settings\Bot User>echo %PKG_CONFIG_PATH%
> C:\Program Files\Gtk+\lib\pkgconfig;C:\
> Program Files\Gtk+\include\libglade-2.0;C:\Program
> Files\libxml2\libxml2-dev_2.7.7-1_win32\lib\pkgconfig
>
> I got the install of GTK and everything worked:
> http://ftp.gnome.org/pub/GNOME/binaries/win32/glade3/3.6/glade3-3.6.7-with-GTK+.exe
>
>
> Microsoft Windows XP [Version 5.1.2600]
>
> C:\Documents and Settings\Bot User>cabal update
> Downloading the latest package list from hackage.haskell.org
>
> Version:
> C:\Documents and Settings\Bot User>ghc --version
> The Glorious Glasgow Haskell Compilation System, version 6.12.3
>
>
> C:\Documents and Settings\Bot User>cabal install gtk2hs-buildtools
> Resolving dependencies...
> Configuring gtk2hs-buildtools-0.12.0...
> Preprocessing executables for gtk2hs-buildtools-0.12.0...
> ...
> hs\gtk2hsC2hs-tmp\GenBind.o )
> [41 of 41] Compiling Main ( c2hs\toplevel\Main.hs,
> dist\build\gtk2hs
> C2hs\gtk2hsC2hs-tmp\Main.o )
> Linking dist\build\gtk2hsC2hs\gtk2hsC2hs.exe ...
> Installing executable(s) in C:\Documents and Settings\Bot User\Application
> Data\cabal\bin
>
> Here is where it fails:
>
> C:\Documents and Settings\Bot User>cabal install gtk
> Resolving dependencies...
> C:\DOCUME~1\BOTBER~1\LOCALS~1\Temp\cairo-0.12.03164\cairo-0.12.0\Gtk2HsSetup.hs:
> 25: 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
> build
> ing (prefixed by --ghc-option= when using the 'cabal' command)
> [1 of 2] Compiling Gtk2HsSetup (
> C:\DOCUME~1\BOTBER~1\LOCALS~1\Temp\cairo-0
> .12.03164\cairo-0.12.0\Gtk2HsSetup.hs,
> C:\DOCUME~1\BOTBER~1\LOCALS~1\Temp\cairo-
> 0.12.03164\cairo-0.12.0\dist\setup\Gtk2HsSetup.o )
> [2 of 2] Compiling Main (
> C:\DOCUME~1\BOTBER~1\LOCALS~1\Temp\cairo-0
> .12.03164\cairo-0.12.0\Setup.hs,
> C:\DOCUME~1\BOTBER~1\LOCALS~1\Temp\cairo-0.12.0
> 3164\cairo-0.12.0\dist\setup\Main.o )
> Linking
> C:\DOCUME~1\BOTBER~1\LOCALS~1\Temp\cairo-0.12.03164\cairo-0.12.0\dist\se
> tup\setup.exe ...
> Configuring cairo-0.12.0...
> setup.exe: Missing dependencies on foreign libraries:
> * Missing C libraries: z, cairo
> 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.
> C:\DOCUME~1\BOTBER~1\LOCALS~1\Temp\glib-0.12.03164\glib-0.12.0\Gtk2HsSetup.hs:25
> : 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
> buildin
> g (prefixed by --ghc-option= when using the 'cabal' command)
> [1 of 2] Compiling Gtk2HsSetup (
> C:\DOCUME~1\BOTBER~1\LOCALS~1\Temp\glib-0.
> 12.03164\glib-0.12.0\Gtk2HsSetup.hs,
> C:\DOCUME~1\BOTBER~1\LOCALS~1\Temp\glib-0.1
> 2.03164\glib-0.12.0\dist\setup\Gtk2HsSetup.o )
> [2 of 2] Compiling Main (
> C:\DOCUME~1\BOTBER~1\LOCALS~1\Temp\glib-0.
> 12.03164\glib-0.12.0\Setup.hs,
> C:\DOCUME~1\BOTBER~1\LOCALS~1\Temp\glib-0.12.0316
> 4\glib-0.12.0\dist\setup\Main.o )
> Linking
> C:\DOCUME~1\BOTBER~1\LOCALS~1\Temp\glib-0.12.03164\glib-0.12.0\dist\setu
> p\setup.exe ...
> Configuring glib-0.12.0...
> setup.exe: Missing dependencies on foreign libraries:
> * Missing C libraries: gobject-2.0, glib-2.0, intl
> 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.
> cabal: Error: some packages failed to install:
> cairo-0.12.0 failed during the configure step. The exception was:
> ExitFailure 1
> gio-0.12.0 depends on glib-0.12.0 which failed to install.
> glib-0.12.0 failed during the configure step. The exception was:
> ExitFailure 1
> gtk-0.12.0 depends on glib-0.12.0 which failed to install.
> pango-0.12.0 depends on glib-0.12.0 which failed to install.
>
> C:\Documents and Settings\Bot User>
>
> --
> Berlin Brown (berlin dot brown at gmail.com)
> http://botnode.com
> http://berlinbrowndev.blogspot.com/
>
> Beginners mailing list
> Beginners@haskell.org
> http://www.haskell.org/mailman/listinfo/beginners
>
>
OK, I tried that and get the following output.glib-0.12.0 failed during the configure step. The exception was:ExitFailure 1Bot Berlin@student-paris ~$ cabal install glib -vC:\Program Files\Haskell Platform\2010.2.0.0\bin\ghc.exe --numeric-versionlooking for package tool: ghc-pkg near compiler in C:\Program Files\HaskellPlatform\2010.2.0.0\binfound package tool in C:\Program Files\HaskellPlatform\2010.2.0.0\bin\ghc-pkg.exeC:\Program Files\Haskell Platform\2010.2.0.0\bin\ghc-pkg.exe --versionC:\Program Files\Haskell Platform\2010.2.0.0\bin\ghc.exe --supported-languagesReading installed packages...C:\Program Files\Haskell Platform\2010.2.0.0\bin\ghc-pkg.exe dump --globalC:\Program Files\Haskell Platform\2010.2.0.0\bin\ghc-pkg.exe dump --userC:\Program Files\Haskell Platform\2010.2.0.0\bin\ghc.exe --print-libdirReading available packages...Resolving dependencies...selecting glib-0.12.0 (hackage) and discarding glib-0.11.0, 0.11.1 and 0.11.2selecting haskell98-1.0.1.1 (installed or hackage) and discardinghaskell98-1.0, 1.0.1.0 and 1.1.0.0selecting process-1.0.1.3 (installed or hackage) and discardingdirectory-1.1.0.0, filepath-1.0, process-1.0.0.0, 1.0.1.1, 1.0.1.2 and 1.0.1.4selecting random-1.0.0.2 (installed or hackage) and discarding random-1.0.0.0,1.0.0.1 and 1.0.0.3selecting time-1.1.4 (installed or hackage) and discarding time-1.0, 1.1.2.0,1.1.2.1, 1.1.2.2, 1.1.2.3, 1.1.2.4, 1.1.3, 1.2, 1.2.0.1, 1.2.0.2, 1.2.0.3 and1.2.0.4selecting directory-1.0.1.1 (installed or hackage) and discardingdirectory-1.0.0.0, 1.0.0.3, 1.0.1.0, 1.0.1.2 and filepath-1.2.0.0selecting old-time-1.0.0.5 (installed or hackage) and discardingold-time-1.0.0.0, 1.0.0.2, 1.0.0.3, 1.0.0.4 and 1.0.0.6selecting old-locale-1.0.0.2 (installed or hackage) and discardingold-locale-1.0.0.0 and 1.0.0.1selecting filepath-1.1.0.4 (installed or hackage) and discardingfilepath-1.1.0.0, 1.1.0.1, 1.1.0.2 and 1.1.0.3selecting containers-0.3.0.0 (installed or hackage) and discardingcontainers-0.1.0.0, 0.1.0.1, 0.2.0.0, 0.2.0.1 and 0.4.0.0selecting Win32-2.2.0.2 (installed or hackage) and discarding Win32-2.1,2.1.0.0, 2.2.0.0 and 2.2.0.1selecting bytestring-0.9.1.7 (installed or hackage) and discardingbytestring-0.9, 0.9.0.1, 0.9.0.2, 0.9.0.3, 0.9.0.4, 0.9.1.0, 0.9.1.1, 0.9.1.2,0.9.1.3, 0.9.1.4, 0.9.1.5, 0.9.1.6, 0.9.1.8 and 0.9.1.9selecting ghc-prim-0.2.0.0 (installed)selecting ffi-1.0 (installed)selecting rts-1.0 (installed)selecting array-0.3.0.1 (installed or hackage) and discarding array-0.1.0.0,0.2.0.0, 0.3.0.0 and 0.3.0.2selecting base-3.0.3.2 (installed) and 4.2.0.2 (installed) and discardingsyb-0.1.0.0, 0.1.0.1, 0.1.0.2, 0.1.0.3, 0.2, 0.2.1, 0.2.2 and 0.3selecting integer-gmp-0.2.0.1 (installed)selecting syb-0.1.0.2 (installed)In order, the following would be installed:glib-0.12.0 (new package)glib-0.12.0 has already been downloaded.Extracting C:\Documents and Settings\Bot Berlin\ApplicationData\cabal\packages\hackage.haskell.org\glib\0.12.0\glib-0.12.0.tar.gz toC:\DOCUME~1\BOTBER~1\LOCALS~1\Temp\glib-0.12.07116...CreatingC:\DOCUME~1\BOTBER~1\LOCALS~1\Temp\glib-0.12.07116\glib-0.12.0\dist\setup (andits parents)C:\Program Files\Haskell Platform\2010.2.0.0\bin\ghc.exe --make C:\DOCUME~1\BOTBER~1\LOCALS~1\Temp\lib-0.12.07116\glib-0.12.0\Setup.hs -o C:\DOCUME~1\BOTBER~1\LOCALS~1\Temp\glib-0.12.07116\glib-0.120\dist\setup\setup.exe -odir C:\DOCUME~1\BOTBER~1\LOCALS~1\Temp\glib-0.12.07116\glib-0.12.0\dist\seup -hidir C:\DOCUME~1\BOTBER~1\LOCALS~1\Temp\glib-0.12.07116\glib-0.12.0\dist\setup -i -iC:\DOCUME~\BOTBER~1\LOCALS~1\Temp\glib-0.12.07116\glib-0.12.0 -package Cabal-1.8.0.6C:\DOCUME~1\BOTBER~1\LOCALS~1\Temp\glib-0.12.07116\glib-0.12.0\Gtk2HsSetup.hs:25: warning: #warningSetup.hs is guessing the version of Cabal. If compilation of Setup.hs fails use -DCABAL_VERSION_MINR=x for Cabal version 1.x.0 when building (prefixed by --ghc-option= when using the 'cabal' command[1 of 2] Compiling Gtk2HsSetup ( C:\DOCUME~1\BOTBER~1\LOCALS~1\Temp\glib-0.12.07116\glib-0.12.\Gtk2HsSetup.hs, C:\DOCUME~1\BOTBER~1\LOCALS~1\Temp\glib-0.12.07116\glib-0.12.0\dist\setup\Gtk2HsSeup.o )[2 of 2] Compiling Main ( C:\DOCUME~1\BOTBER~1\LOCALS~1\Temp\glib-0.12.07116\glib-0.12.\Setup.hs, C:\DOCUME~1\BOTBER~1\LOCALS~1\Temp\glib-0.12.07116\glib-0.12.0\dist\setup\Main.o )Linking C:\DOCUME~1\BOTBER~1\LOCALS~1\Temp\glib-0.12.07116\glib-0.12.0\dist\setup\setup.exe ...C:\DOCUME~1\BOTBER~1\LOCALS~1\Temp\glib-0.12.07116\glib-0.12.0\dist\setup\setup.execonfigure --verbose=2 --ghc --prefix=C:\Documents and Settings\BotBerlin\Application Data\cabal --user --flags=closure_signals --constraint=base==4.2.0.2 --constraint=containers ==0.3.0.0 --constraint=haskell98 ==1.0.1.1Configuring glib-0.12.0...Flags chosen: closure_signals=TrueDependency base ==4.2.0.2: using base-4.2.0.2Dependency containers ==0.3.0.0: using containers-0.3.0.0Dependency haskell98 ==1.0.1.1: using haskell98-1.0.1.1Dependency glib-2.0 -any: using version 2.20.3Dependency gobject-2.0 -any: using version 2.20.3Using Cabal-1.8.0.6 compiled by ghc-6.12Using compiler: ghc-6.12.3Using install prefix: C:\Documents and Settings\Bot Berlin\ApplicationData\cabalBinaries installed in: C:\Documents and Settings\Bot Berlin\ApplicationData\cabal\binLibraries installed in: C:\Documents and Settings\Bot Berlin\ApplicationData\cabal\glib-0.12.0\ghc-6.12.3Private binaries installed in: C:\Documents and Settings\BotBerlin\Application Data\cabal\glib-0.12.0Data files installed in: C:\Documents and Settings\Bot Berlin\ApplicationData\cabal\glib-0.12.0Documentation installed in: C:\Documents and Settings\Bot Berlin\ApplicationData\cabal\doc\glib-0.12.0Using alex version 2.3.3 found on system at: C:\Program Files\HaskellPlatform\2010.2.0.0\lib\extralibs\bin\alex.exeUsing ar found on system at: C:\Program Files\HaskellPlatform\2010.2.0.0\mingw\bin\ar.exeNo c2hs foundNo cpphs foundNo ffihugs foundUsing gcc version 3.4.5 found on system at: C:\Program Files\HaskellPlatform\2010.2.0.0\mingw\bin\gcc.exeUsing ghc version 6.12.3 found on system at: C:\Program Files\HaskellPlatform\2010.2.0.0\bin\ghc.exeUsing ghc-pkg version 6.12.3 found on system at: C:\Program Files\HaskellPlatform\2010.2.0.0\bin\ghc-pkg.exeNo greencard foundUsing gtk2hsC2hs found on system at: C:\Documents and Settings\BotBerlin\Application Data\cabal\bin\gtk2hsC2hs.exeUsing gtk2hsHookGenerator found on system at: C:\Documents and Settings\BotBerlin\Application Data\cabal\bin\gtk2hsHookGenerator.exeUsing gtk2hsTypeGen found on system at: C:\Documents and Settings\BotBerlin\Application Data\cabal\bin\gtk2hsTypeGen.exeUsing haddock version 2.6.1 found on system at: C:\Program Files\HaskellPlatform\2010.2.0.0\bin\haddock.exeUsing happy version 1.18.5 found on system at: C:\Program Files\HaskellPlatform\2010.2.0.0\lib\extralibs\bin\happy.exeNo hmake foundUsing hsc2hs version 0.67 found on system at: C:\Program Files\HaskellPlatform\2010.2.0.0\bin\hsc2hs.exeNo hscolour foundNo hugs foundNo jhc foundUsing ld found on system at: C:\Program Files\HaskellPlatform\2010.2.0.0\mingw\bin\ld.exeNo lhc foundNo lhc-pkg foundNo nhc98 foundUsing pkg-config version 0.23 found on system at: C:\ProgramFiles\Gtk+\bin\pkg-config.exeUsing ranlib found on system at: C:\projects\tools\cygwin\bin\ranlib.exeUsing strip found on system at: C:\projects\tools\cygwin\bin\strip.exeUsing tar found on system at: C:\projects\tools\cygwin\bin\tar.exeC:\Program Files\Gtk+\bin\pkg-config.exe --modversion glib-2.0C:\Program Files\Gtk+\bin\pkg-config.exe --modversion gobject-2.0setup.exe: Missing dependencies on foreign libraries:* Missing C libraries: gobject-2.0, glib-2.0, intlThis problem can usually be solved by installing the system packages thatprovide these libraries (you may need the "-dev" versions). If the librariesare already installed but in a non-standard location then you can use theflags --extra-include-dirs= and --extra-lib-dirs= to specify where they are.cabal.exe: Error: some packages failed to install:glib-0.12.0 failed during the configure step. The exception was:ExitFailure 1
--
Berlin Brown (berlin dot brown at gmail.com)
http://botnode.com
http://berlinbrowndev.blogspot.com/
_______________________________________________
Beginners mailing list
Beginners@haskell.org
http://www.haskell.org/mailman/listinfo/beginners