[Haskell-beginners] GTK Haskell and Error on Win32, anyone see the issue?

Patrick Lynch kmandpjlynch at verizon.net
Wed Feb 23 22:58:04 CET 2011


Good afternoon,

I can't give any help in regard to installing GTK...
I tried it on Windows Vista and on an Apple iMac...but alas with no success...
I spent about a week on this effort...

If anyone wants to set up a 'task force 'to get this GTK install working for 'newbies' - count me in...

Good day

  ----- Original Message ----- 
  From: Berlin Brown 
  To: aditya siram 
  Cc: beginners at haskell.org 
  Sent: Tuesday, February 22, 2011 1:45 AM
  Subject: 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 at 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 at 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 at 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 at haskell.org
      > http://www.haskell.org/mailman/listinfo/beginners
      >
      >





    -- 

    Berlin Brown (berlin dot brown at gmail.com)
    http://botnode.com
    http://berlinbrowndev.blogspot.com/



  OK, I tried that and get the following output.


  glib-0.12.0 failed during the configure step. The exception was:
  ExitFailure 1


  Bot Berlin at student-paris ~
  $ cabal install glib -v
  C:\Program Files\Haskell Platform\2010.2.0.0\bin\ghc.exe --numeric-version
  looking for package tool: ghc-pkg near compiler in C:\Program Files\Haskell
  Platform\2010.2.0.0\bin
  found package tool in C:\Program Files\Haskell
  Platform\2010.2.0.0\bin\ghc-pkg.exe
  C:\Program Files\Haskell Platform\2010.2.0.0\bin\ghc-pkg.exe --version
  C:\Program Files\Haskell Platform\2010.2.0.0\bin\ghc.exe --supported-languages
  Reading installed packages...
  C:\Program Files\Haskell Platform\2010.2.0.0\bin\ghc-pkg.exe dump --global
  C:\Program Files\Haskell Platform\2010.2.0.0\bin\ghc-pkg.exe dump --user
  C:\Program Files\Haskell Platform\2010.2.0.0\bin\ghc.exe --print-libdir
  Reading available packages...
  Resolving dependencies...
  selecting glib-0.12.0 (hackage) and discarding glib-0.11.0, 0.11.1 and 0.11.2
  selecting haskell98-1.0.1.1 (installed or hackage) and discarding
  haskell98-1.0, 1.0.1.0 and 1.1.0.0
  selecting process-1.0.1.3 (installed or hackage) and discarding
  directory-1.1.0.0, filepath-1.0, process-1.0.0.0, 1.0.1.1, 1.0.1.2 and 1.0.1.4
  selecting random-1.0.0.2 (installed or hackage) and discarding random-1.0.0.0,
  1.0.0.1 and 1.0.0.3
  selecting 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 and
  1.2.0.4
  selecting directory-1.0.1.1 (installed or hackage) and discarding
  directory-1.0.0.0, 1.0.0.3, 1.0.1.0, 1.0.1.2 and filepath-1.2.0.0
  selecting old-time-1.0.0.5 (installed or hackage) and discarding
  old-time-1.0.0.0, 1.0.0.2, 1.0.0.3, 1.0.0.4 and 1.0.0.6
  selecting old-locale-1.0.0.2 (installed or hackage) and discarding
  old-locale-1.0.0.0 and 1.0.0.1
  selecting filepath-1.1.0.4 (installed or hackage) and discarding
  filepath-1.1.0.0, 1.1.0.1, 1.1.0.2 and 1.1.0.3
  selecting containers-0.3.0.0 (installed or hackage) and discarding
  containers-0.1.0.0, 0.1.0.1, 0.2.0.0, 0.2.0.1 and 0.4.0.0
  selecting 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.1
  selecting bytestring-0.9.1.7 (installed or hackage) and discarding
  bytestring-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.9
  selecting 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.2
  selecting base-3.0.3.2 (installed) and 4.2.0.2 (installed) and discarding
  syb-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.3
  selecting 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\Application
  Data\cabal\packages\hackage.haskell.org\glib\0.12.0\glib-0.12.0.tar.gz to
  C:\DOCUME~1\BOTBER~1\LOCALS~1\Temp\glib-0.12.07116...
  Creating
  C:\DOCUME~1\BOTBER~1\LOCALS~1\Temp\glib-0.12.07116\glib-0.12.0\dist\setup (and
  its 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.12
  0\dist\setup\setup.exe -odir C:\DOCUME~1\BOTBER~1\LOCALS~1\Temp\glib-0.12.07116\glib-0.12.0\dist\se
  up -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.6
  C:\DOCUME~1\BOTBER~1\LOCALS~1\Temp\glib-0.12.07116\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_MIN
  R=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\Gtk2HsSe
  up.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.exe
  configure --verbose=2 --ghc --prefix=C:\Documents and Settings\Bot
  Berlin\Application Data\cabal --user --flags=closure_signals --constraint=base
  ==4.2.0.2 --constraint=containers ==0.3.0.0 --constraint=haskell98 ==1.0.1.1
  Configuring glib-0.12.0...
  Flags chosen: closure_signals=True
  Dependency base ==4.2.0.2: using base-4.2.0.2
  Dependency containers ==0.3.0.0: using containers-0.3.0.0
  Dependency haskell98 ==1.0.1.1: using haskell98-1.0.1.1
  Dependency glib-2.0 -any: using version 2.20.3
  Dependency gobject-2.0 -any: using version 2.20.3
  Using Cabal-1.8.0.6 compiled by ghc-6.12
  Using compiler: ghc-6.12.3
  Using install prefix: C:\Documents and Settings\Bot Berlin\Application
  Data\cabal
  Binaries installed in: C:\Documents and Settings\Bot Berlin\Application
  Data\cabal\bin
  Libraries installed in: C:\Documents and Settings\Bot Berlin\Application
  Data\cabal\glib-0.12.0\ghc-6.12.3
  Private binaries installed in: C:\Documents and Settings\Bot
  Berlin\Application Data\cabal\glib-0.12.0
  Data files installed in: C:\Documents and Settings\Bot Berlin\Application
  Data\cabal\glib-0.12.0
  Documentation installed in: C:\Documents and Settings\Bot Berlin\Application
  Data\cabal\doc\glib-0.12.0
  Using alex version 2.3.3 found on system at: C:\Program Files\Haskell
  Platform\2010.2.0.0\lib\extralibs\bin\alex.exe
  Using ar found on system at: C:\Program Files\Haskell
  Platform\2010.2.0.0\mingw\bin\ar.exe
  No c2hs found
  No cpphs found
  No ffihugs found
  Using gcc version 3.4.5 found on system at: C:\Program Files\Haskell
  Platform\2010.2.0.0\mingw\bin\gcc.exe
  Using ghc version 6.12.3 found on system at: C:\Program Files\Haskell
  Platform\2010.2.0.0\bin\ghc.exe
  Using ghc-pkg version 6.12.3 found on system at: C:\Program Files\Haskell
  Platform\2010.2.0.0\bin\ghc-pkg.exe
  No greencard found
  Using gtk2hsC2hs found on system at: C:\Documents and Settings\Bot
  Berlin\Application Data\cabal\bin\gtk2hsC2hs.exe
  Using gtk2hsHookGenerator found on system at: C:\Documents and Settings\Bot
  Berlin\Application Data\cabal\bin\gtk2hsHookGenerator.exe
  Using gtk2hsTypeGen found on system at: C:\Documents and Settings\Bot
  Berlin\Application Data\cabal\bin\gtk2hsTypeGen.exe
  Using haddock version 2.6.1 found on system at: C:\Program Files\Haskell
  Platform\2010.2.0.0\bin\haddock.exe
  Using happy version 1.18.5 found on system at: C:\Program Files\Haskell
  Platform\2010.2.0.0\lib\extralibs\bin\happy.exe
  No hmake found
  Using hsc2hs version 0.67 found on system at: C:\Program Files\Haskell
  Platform\2010.2.0.0\bin\hsc2hs.exe
  No hscolour found
  No hugs found
  No jhc found
  Using ld found on system at: C:\Program Files\Haskell
  Platform\2010.2.0.0\mingw\bin\ld.exe
  No lhc found
  No lhc-pkg found
  No nhc98 found
  Using pkg-config version 0.23 found on system at: C:\Program
  Files\Gtk+\bin\pkg-config.exe
  Using ranlib found on system at: C:\projects\tools\cygwin\bin\ranlib.exe
  Using strip found on system at: C:\projects\tools\cygwin\bin\strip.exe
  Using tar found on system at: C:\projects\tools\cygwin\bin\tar.exe
  C:\Program Files\Gtk+\bin\pkg-config.exe --modversion glib-2.0
  C:\Program Files\Gtk+\bin\pkg-config.exe --modversion gobject-2.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.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 at haskell.org
  http://www.haskell.org/mailman/listinfo/beginners
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/beginners/attachments/20110223/d4bf3cd7/attachment-0001.htm>


More information about the Beginners mailing list