Errors installing 'Haskell Charts'

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Errors installing 'Haskell Charts'

dokondr
I am trying to install HaskellCharts at:
http://dockerz.net/twd/HaskellCharts

Running:


    cabal update
    cabal install gtk2hs-buildtools
    cabal install gtk
    cabal install chart

goes well untill 'cabal install chart' which results in:

C:\wks\RCA>cabal install chart
Resolving dependencies...
C:\Users\DKONDR~1\AppData\Local\Temp\cairo-0.12.03136\cairo-0.12.0\Gtk2HsSetup.h
s:25:2: warning: #warning Setup.hs is guessing the version of Cabal. If compilat
ion of Setup.hs fails use -DCABAL_VERSION_MINOR=x for Cabal version 1.x.0 when b
uilding (prefixed by --ghc-option= when using the 'cabal' command)
[1 of 2] Compiling Gtk2HsSetup      ( C:\Users\DKONDR~1\AppData\Local\Temp\cairo
-0.12.03136\cairo-0.12.0\Gtk2HsSetup.hs, C:\Users\DKONDR~1\AppData\Local\Temp\ca
iro-0.12.03136\cairo-0.12.0\dist\setup\Gtk2HsSetup.o )
[2 of 2] Compiling Main             ( C:\Users\DKONDR~1\AppData\Local\Temp\cairo
-0.12.03136\cairo-0.12.0\Setup.hs, C:\Users\DKONDR~1\AppData\Local\Temp\cairo-0.
12.03136\cairo-0.12.0\dist\setup\Main.o )
Linking C:\Users\DKONDR~1\AppData\Local\Temp\cairo-0.12.03136\cairo-0.12.0\dist\
setup\setup.exe ...
Configuring cairo-0.12.0...
setup.exe: The program pkg-config version >=0.9.0 is required but it could not
be found.
C:\Users\DKONDR~1\AppData\Local\Temp\glib-0.12.03136\glib-0.12.0\Gtk2HsSetup.hs:
25:2: warning: #warning Setup.hs is guessing the version of Cabal. If compilatio
n of Setup.hs fails use -DCABAL_VERSION_MINOR=x for Cabal version 1.x.0 when bui
lding (prefixed by --ghc-option= when using the 'cabal' command)
[1 of 2] Compiling Gtk2HsSetup      ( C:\Users\DKONDR~1\AppData\Local\Temp\glib-
0.12.03136\glib-0.12.0\Gtk2HsSetup.hs, C:\Users\DKONDR~1\AppData\Local\Temp\glib
-0.12.03136\glib-0.12.0\dist\setup\Gtk2HsSetup.o )
[2 of 2] Compiling Main             ( C:\Users\DKONDR~1\AppData\Local\Temp\glib-
0.12.03136\glib-0.12.0\Setup.hs, C:\Users\DKONDR~1\AppData\Local\Temp\glib-0.12.
03136\glib-0.12.0\dist\setup\Main.o )
Linking C:\Users\DKONDR~1\AppData\Local\Temp\glib-0.12.03136\glib-0.12.0\dist\se
tup\setup.exe ...
Configuring glib-0.12.0...
setup.exe: The program pkg-config version >=0.9.0 is required but it could not
be found.
cabal: Error: some packages failed to install:
Chart-0.14 depends on glib-0.12.0 which 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.


Where to get glib-0.12.0 ?

Thanks!

_______________________________________________
Haskell-Cafe mailing list
[hidden email]
http://www.haskell.org/mailman/listinfo/haskell-cafe
Reply | Threaded
Open this post in threaded view
|

Re: Errors installing 'Haskell Charts'

Daniel Fischer
On Friday 10 June 2011, 17:51:34, Dmitri O.Kondratiev wrote:
> Configuring cairo-0.12.0...
> setup.exe: The program pkg-config version >=0.9.0 is required but it
> could not be found.

You need the (non-Haskell) programme pkg-config, you should be able to get
it from e.g. http://www.freedesktop.org/wiki/Software/pkg-config

_______________________________________________
Haskell-Cafe mailing list
[hidden email]
http://www.haskell.org/mailman/listinfo/haskell-cafe
Reply | Threaded
Open this post in threaded view
|

Re: Errors installing 'Haskell Charts'

Eugene Kirpichov
In reply to this post by dokondr
Hi,

You forgot to install gtk2hs-buildtools, it includes pkg-config.

2011/6/10 Dmitri O.Kondratiev <[hidden email]>:

> I am trying to install HaskellCharts at:
> http://dockerz.net/twd/HaskellCharts
>
> Running:
>
>
>     cabal update
>     cabal install gtk2hs-buildtools
>     cabal install gtk
>     cabal install chart
>
> goes well untill 'cabal install chart' which results in:
>
> C:\wks\RCA>cabal install chart
> Resolving dependencies...
> C:\Users\DKONDR~1\AppData\Local\Temp\cairo-0.12.03136\cairo-0.12.0\Gtk2HsSetup.h
> s:25:2: warning: #warning Setup.hs is guessing the version of Cabal. If
> compilat
> ion of Setup.hs fails use -DCABAL_VERSION_MINOR=x for Cabal version 1.x.0
> when b
> uilding (prefixed by --ghc-option= when using the 'cabal' command)
> [1 of 2] Compiling Gtk2HsSetup      (
> C:\Users\DKONDR~1\AppData\Local\Temp\cairo
> -0.12.03136\cairo-0.12.0\Gtk2HsSetup.hs,
> C:\Users\DKONDR~1\AppData\Local\Temp\ca
> iro-0.12.03136\cairo-0.12.0\dist\setup\Gtk2HsSetup.o )
> [2 of 2] Compiling Main             (
> C:\Users\DKONDR~1\AppData\Local\Temp\cairo
> -0.12.03136\cairo-0.12.0\Setup.hs,
> C:\Users\DKONDR~1\AppData\Local\Temp\cairo-0.
> 12.03136\cairo-0.12.0\dist\setup\Main.o )
> Linking
> C:\Users\DKONDR~1\AppData\Local\Temp\cairo-0.12.03136\cairo-0.12.0\dist\
> setup\setup.exe ...
> Configuring cairo-0.12.0...
> setup.exe: The program pkg-config version >=0.9.0 is required but it could
> not
> be found.
> C:\Users\DKONDR~1\AppData\Local\Temp\glib-0.12.03136\glib-0.12.0\Gtk2HsSetup.hs:
> 25:2: warning: #warning Setup.hs is guessing the version of Cabal. If
> compilatio
> n of Setup.hs fails use -DCABAL_VERSION_MINOR=x for Cabal version 1.x.0 when
> bui
> lding (prefixed by --ghc-option= when using the 'cabal' command)
> [1 of 2] Compiling Gtk2HsSetup      (
> C:\Users\DKONDR~1\AppData\Local\Temp\glib-
> 0.12.03136\glib-0.12.0\Gtk2HsSetup.hs,
> C:\Users\DKONDR~1\AppData\Local\Temp\glib
> -0.12.03136\glib-0.12.0\dist\setup\Gtk2HsSetup.o )
> [2 of 2] Compiling Main             (
> C:\Users\DKONDR~1\AppData\Local\Temp\glib-
> 0.12.03136\glib-0.12.0\Setup.hs,
> C:\Users\DKONDR~1\AppData\Local\Temp\glib-0.12.
> 03136\glib-0.12.0\dist\setup\Main.o )
> Linking
> C:\Users\DKONDR~1\AppData\Local\Temp\glib-0.12.03136\glib-0.12.0\dist\se
> tup\setup.exe ...
> Configuring glib-0.12.0...
> setup.exe: The program pkg-config version >=0.9.0 is required but it could
> not
> be found.
> cabal: Error: some packages failed to install:
> Chart-0.14 depends on glib-0.12.0 which 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.
>
>
> Where to get glib-0.12.0 ?
>
> Thanks!
>
> _______________________________________________
> Haskell-Cafe mailing list
> [hidden email]
> http://www.haskell.org/mailman/listinfo/haskell-cafe
>
>



--
Eugene Kirpichov
Principal Engineer, Mirantis Inc. http://www.mirantis.com/
Editor, http://fprog.ru/

_______________________________________________
Haskell-Cafe mailing list
[hidden email]
http://www.haskell.org/mailman/listinfo/haskell-cafe
Reply | Threaded
Open this post in threaded view
|

Re: Errors installing 'Haskell Charts'

dokondr
Trying to install the same stuff on Mac OS X 10.6.7 I get problems both with gtk2hs-buildtools and pkg-config, (see below).

Any ideas where to get pre-built glib and pkg-config both for Win32 and Mac OS X?

====== Problems on Mac OS X with gtk2hs-buildtools :
cabal install gtk
Resolving dependencies...

/var/folders/Bo/BobN2Ap5GZW51e9o-n2Ack+++TI/-Tmp-/cairo-0.12.04207/cairo-0.12.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      ( /var/folders/Bo/BobN2Ap5GZW51e9o-n2Ack+++TI/-Tmp-/cairo-0.12.04207/cairo-0.12.0/Gtk2HsSetup.hs, /var/folders/Bo/BobN2Ap5GZW51e9o-n2Ack+++TI/-Tmp-/cairo-0.12.04207/cairo-0.12.0/dist/setup/Gtk2HsSetup.o )

/var/folders/Bo/BobN2Ap5GZW51e9o-n2Ack+++TI/-Tmp-/cairo-0.12.04207/cairo-0.12.0/Gtk2HsSetup.hs:201:69:
    Couldn't match expected type `PackageDBStack'
           against inferred type `PackageDB'
    In the sixth argument of `registerPackage', namely `packageDb'
    In the expression:
        registerPackage
          verbosity installedPkgInfo pkg lbi inplace packageDb
    In a case alternative:
        _ | modeGenerateRegFile -> die "Generate Reg File not supported"
          | modeGenerateRegScript -> die "Generate Reg Script not supported"
          | otherwise
          -> registerPackage
               verbosity installedPkgInfo pkg lbi inplace packageDb

/var/folders/Bo/BobN2Ap5GZW51e9o-n2Ack+++TI/-Tmp-/glib-0.12.04207/glib-0.12.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      ( /var/folders/Bo/BobN2Ap5GZW51e9o-n2Ack+++TI/-Tmp-/glib-0.12.04207/glib-0.12.0/Gtk2HsSetup.hs, /var/folders/Bo/BobN2Ap5GZW51e9o-n2Ack+++TI/-Tmp-/glib-0.12.04207/glib-0.12.0/dist/setup/Gtk2HsSetup.o )

/var/folders/Bo/BobN2Ap5GZW51e9o-n2Ack+++TI/-Tmp-/glib-0.12.04207/glib-0.12.0/Gtk2HsSetup.hs:201:69:
    Couldn't match expected type `PackageDBStack'
           against inferred type `PackageDB'
    In the sixth argument of `registerPackage', namely `packageDb'
    In the expression:
        registerPackage
          verbosity installedPkgInfo pkg lbi inplace packageDb
    In a case alternative:
        _ | modeGenerateRegFile -> die "Generate Reg File not supported"
          | modeGenerateRegScript -> die "Generate Reg Script not supported"
          | otherwise
          -> registerPackage
               verbosity installedPkgInfo pkg lbi inplace packageDb
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.
Resolving dependencies...

/var/folders/Bo/BobN2Ap5GZW51e9o-n2Ack+++TI/-Tmp-/cairo-0.12.04224/cairo-0.12.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      ( /var/folders/Bo/BobN2Ap5GZW51e9o-n2Ack+++TI/-Tmp-/cairo-0.12.04224/cairo-0.12.0/Gtk2HsSetup.hs, /var/folders/Bo/BobN2Ap5GZW51e9o-n2Ack+++TI/-Tmp-/cairo-0.12.04224/cairo-0.12.0/dist/setup/Gtk2HsSetup.o )

/var/folders/Bo/BobN2Ap5GZW51e9o-n2Ack+++TI/-Tmp-/cairo-0.12.04224/cairo-0.12.0/Gtk2HsSetup.hs:201:69:
    Couldn't match expected type `PackageDBStack'
           against inferred type `PackageDB'
    In the sixth argument of `registerPackage', namely `packageDb'
    In the expression:
        registerPackage
          verbosity installedPkgInfo pkg lbi inplace packageDb
    In a case alternative:
        _ | modeGenerateRegFile -> die "Generate Reg File not supported"
          | modeGenerateRegScript -> die "Generate Reg Script not supported"
          | otherwise
          -> registerPackage
               verbosity installedPkgInfo pkg lbi inplace packageDb

/var/folders/Bo/BobN2Ap5GZW51e9o-n2Ack+++TI/-Tmp-/glib-0.12.04224/glib-0.12.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      ( /var/folders/Bo/BobN2Ap5GZW51e9o-n2Ack+++TI/-Tmp-/glib-0.12.04224/glib-0.12.0/Gtk2HsSetup.hs, /var/folders/Bo/BobN2Ap5GZW51e9o-n2Ack+++TI/-Tmp-/glib-0.12.04224/glib-0.12.0/dist/setup/Gtk2HsSetup.o )

/var/folders/Bo/BobN2Ap5GZW51e9o-n2Ack+++TI/-Tmp-/glib-0.12.04224/glib-0.12.0/Gtk2HsSetup.hs:201:69:
    Couldn't match expected type `PackageDBStack'
           against inferred type `PackageDB'
    In the sixth argument of `registerPackage', namely `packageDb'
    In the expression:
        registerPackage
          verbosity installedPkgInfo pkg lbi inplace packageDb
    In a case alternative:
        _ | modeGenerateRegFile -> die "Generate Reg File not supported"
          | modeGenerateRegScript -> die "Generate Reg Script not supported"
          | otherwise
          -> registerPackage
               verbosity installedPkgInfo pkg lbi inplace packageDb
cabal: Error: some packages failed to install:
Chart-0.14 depends on glib-0.12.0 which 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.


====== Problems on Mac OS X with pkg-config

checking dynamic linker characteristics... darwin10.7.0 dyld
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
configure: creating ./config.lt
config.lt: creating libtool
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking dependency style of gcc... (cached) gcc3
checking for default search path for .pc files... ${libdir}/pkgconfig:${datadir}/pkgconfig:/usr/lib/pkgconfig\
:/usr/share/pkgconfig
checking for --with-system-include-path... /usr/include
checking for --with-system-library-path... /usr/lib
checking whether to list both direct and indirect dependencies... no
checking for Win32... no
checking for pkg-config... no
./configure: line 13540: --exists: command not found
configure: error: pkg-config and glib-2.0 not found, please set GLIB_CFLAGS and GLIB_LIBS to the correct values


_______________________________________________
Haskell-Cafe mailing list
[hidden email]
http://www.haskell.org/mailman/listinfo/haskell-cafe
Reply | Threaded
Open this post in threaded view
|

Re: Errors installing 'Haskell Charts'

Henning Thielemann

On Fri, 10 Jun 2011, Dmitri O.Kondratiev wrote:

> /var/folders/Bo/BobN2Ap5GZW51e9o-n2Ack+++TI/-Tmp-/cairo-0.12.04207/cairo-0.12.0/Gtk2HsSetup.hs:201:69:
>     Couldn't match expected type `PackageDBStack'
>            against inferred type `PackageDB'
>     In the sixth argument of `registerPackage', namely `packageDb'
>     In the expression:
>         registerPackage
>           verbosity installedPkgInfo pkg lbi inplace packageDb
>     In a case alternative:
>         _ | modeGenerateRegFile -> die "Generate Reg File not supported"
>           | modeGenerateRegScript -> die "Generate Reg Script not supported"
>           | otherwise
>           -> registerPackage
>                verbosity installedPkgInfo pkg lbi inplace packageDb
This looks like an incompatibility between cabal versions. Try switching
between Cabal-1.10 and Cabal-1.8.


_______________________________________________
Haskell-Cafe mailing list
[hidden email]
http://www.haskell.org/mailman/listinfo/haskell-cafe