Send Beginners mailing list submissions to
        [email protected]

To subscribe or unsubscribe via the World Wide Web, visit
        http://www.haskell.org/mailman/listinfo/beginners
or, via email, send a message with subject or body 'help' to
        [email protected]

You can reach the person managing the list at
        [email protected]

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Beginners digest..."


Today's Topics:

   1. Re:  Cabal dependencies problem (Daniel Fischer)
   2. Re:  HUnit - testing for failed pattern match (Edward Z. Yang)
   3. Re:  Anyone have problems with cabal and SDL? (Tom Murphy)
   4. Re:  GTK Haskell and Error on Win32, anyone see the issue?
      (aditya siram)


----------------------------------------------------------------------

Message: 1
Date: Tue, 22 Feb 2011 14:22:20 +0100
From: Daniel Fischer <[email protected]>
Subject: Re: [Haskell-beginners] Cabal dependencies problem
To: [email protected]
Message-ID: <[email protected]>
Content-Type: text/plain;  charset="iso-8859-1"

On Tuesday 22 February 2011 11:43:03, Jun HU wrote:
> Hello everyone,
>
> I've some problems with cabal dependency mechanism. For example,
> when i try to install package "funsat",

>
> while the current array package is on version array-0.3.0.2.  The
> package has back compatibility problem.  Any advice is appreciated... 

For funsat, you can try

$ cabal install funsat-0.6.0

Version 0.6.0 doesn't have the explicit dependency on array-0.2.* and 
containers-0.2.*, so it should work (and it built on hackage with 6.12).

Generally, when a package doesn't build because of restrictive 
dependencies, you can try the following:

$ cabal unpack problem-package
$ cd problem-package
-- Edit the .cabal file, adjust dependencies and don't forget to bump the 
version number (append a '.1' to it). If you don't increment the version 
number, cabal might want to reinstall the package when you build a library 
depending on it.
-- take a deep breath and cross your fingers
$ cabal install

If there are compilation errors, it might or might not be worth trying to 
fix the code.

In any case, notify the maintainer of the dependency problem, if you 
modified the .cabal and it worked, tell the maintainer that it did.

> thank you in advance.
>
> Sincerely,
>
> Jun




------------------------------

Message: 2
Date: Tue, 22 Feb 2011 09:31:57 -0500
From: "Edward Z. Yang" <[email protected]>
Subject: Re: [Haskell-beginners] HUnit - testing for failed pattern
        match
To: Xavier Shay <[email protected]>
Cc: beginners <[email protected]>
Message-ID: <1298385053-sup-2436@ezyang>
Content-Type: text/plain; charset=UTF-8

Hello Xavier

A partial function will emit an exception, which must be caught from
IO.  I'm sure HUnit has an appropriate mechanism for handling this,
but I strongly suggest you redesign your function to be total: instead
of omitting pattern matches, change it to use Maybe and return Nothing
in the 'otherwise' case.

Cheers,
Edward

Excerpts from Xavier Shay's message of Tue Feb 22 05:59:12 -0500 2011:
> Hello,
> 
> Given the following contrived function:
> 
>    giveMeThree x
>    | x == 3 = True
> 
> How do I test with HUnit that 2 is invalid input?
> 
>    giveMeThreeTests =
>      [ "Likes 3" ~: True ~=? giveMeThree 3
>      , "Dislikes 2" ~: ..... -- what?
>      ]
> 
> I couldn't find anything mentioned in the HUnit user guide. References 
> to appropriate documentation appreciated.
> 
> Cheers,
> Xavier
> 



------------------------------

Message: 3
Date: Tue, 22 Feb 2011 09:53:08 -0500
From: Tom Murphy <[email protected]>
Subject: Re: [Haskell-beginners] Anyone have problems with cabal and
        SDL?
To: Stephen Tetley <[email protected]>
Cc: [email protected]
Message-ID:
        <[email protected]>
Content-Type: text/plain; charset="iso-8859-1"

I'm using Mac OS X 10.6.

Sorry, everyone, for just dumping a bunch of terminal output here, but:
When I tried to install SDL-0.6.2 in Cabal, I ultimately end up with the
same error:

"
cm-macbookpro-3:roadmap colinmurphy$ cabal install -v SDL-0.6.2
/opt/local/bin/ghc --numeric-version
looking for package tool: ghc-pkg near compiler in /opt/local/bin
found package tool in /opt/local/bin/ghc-pkg
/opt/local/bin/ghc-pkg --version
/opt/local/bin/ghc --supported-languages
Reading installed packages...
/opt/local/bin/ghc-pkg dump --global
/opt/local/bin/ghc-pkg dump --user
Reading available packages...
Resolving dependencies...
selecting SDL-0.6.2 (hackage)
selecting base-3.0.3.1 (installed) and 4.1.0.0 (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 ghc-prim-0.1.0.0 (installed)
selecting integer-0.1.0.1 (installed)
selecting rts-1.0 (installed)
selecting syb-0.1.0.1 (installed)
In order, the following would be installed:
SDL-0.6.2 (new package)
SDL-0.6.2 has already been downloaded.
Extracting
/Users/colinmurphy/.cabal/packages/
hackage.haskell.org/SDL/0.6.2/SDL-0.6.2.tar.gz
to /var/folders/+p/+pUVycVKFDWsYP8YiYnM3k+++TM/-Tmp-/SDL-0.6.26837...
Creating
/var/folders/+p/+pUVycVKFDWsYP8YiYnM3k+++TM/-Tmp-/SDL-0.6.26837/SDL-0.6.2/dist/setup
(and its parents)
/opt/local/bin/ghc --make
/var/folders/+p/+pUVycVKFDWsYP8YiYnM3k+++TM/-Tmp-/SDL-0.6.26837/SDL-0.6.2/Setup.lhs
-o
/var/folders/+p/+pUVycVKFDWsYP8YiYnM3k+++TM/-Tmp-/SDL-0.6.26837/SDL-0.6.2/dist/setup/setup
-odir
/var/folders/+p/+pUVycVKFDWsYP8YiYnM3k+++TM/-Tmp-/SDL-0.6.26837/SDL-0.6.2/dist/setup
-hidir
/var/folders/+p/+pUVycVKFDWsYP8YiYnM3k+++TM/-Tmp-/SDL-0.6.26837/SDL-0.6.2/dist/setup
-i
-i/var/folders/+p/+pUVycVKFDWsYP8YiYnM3k+++TM/-Tmp-/SDL-0.6.26837/SDL-0.6.2
-package Cabal-1.6.0.3
[1 of 1] Compiling Main             (
/var/folders/+p/+pUVycVKFDWsYP8YiYnM3k+++TM/-Tmp-/SDL-0.6.26837/SDL-0.6.2/Setup.lhs,
/var/folders/+p/+pUVycVKFDWsYP8YiYnM3k+++TM/-Tmp-/SDL-0.6.26837/SDL-0.6.2/dist/setup/Main.o
)

/var/folders/+p/+pUVycVKFDWsYP8YiYnM3k+++TM/-Tmp-/SDL-0.6.26837/SDL-0.6.2/Setup.lhs:2:2:
    Warning: In the use of `defaultUserHooks'
             (imported from Distribution.Simple):
             Deprecated: "Use simpleUserHooks or autoconfUserHooks, unless
you need Cabal-1.2
             compatibility in which case you must stick with
defaultUserHooks"
Linking
/var/folders/+p/+pUVycVKFDWsYP8YiYnM3k+++TM/-Tmp-/SDL-0.6.26837/SDL-0.6.2/dist/setup/setup
...
ld: warning: -read_only_relocs cannot be used with x86_64
/var/folders/+p/+pUVycVKFDWsYP8YiYnM3k+++TM/-Tmp-/SDL-0.6.26837/SDL-0.6.2/dist/setup/setup
configure --verbose=2 --ghc --prefix=/Users/colinmurphy/.cabal --user
--constraint=base ==3.0.3.1
Warning: defaultUserHooks in Setup script is deprecated.
Configuring SDL-0.6.2...
Dependency base >=3 && <5 && ==3.0.3.1: using base-3.0.3.1
Using Cabal-1.6.0.3 compiled by ghc-6.10
Using compiler: ghc-6.10.4
Using install prefix: /Users/colinmurphy/.cabal
Binaries installed in: /Users/colinmurphy/.cabal/bin
Libraries installed in: /Users/colinmurphy/.cabal/lib/SDL-0.6.2/ghc-6.10.4
Private binaries installed in: /Users/colinmurphy/.cabal/libexec
Data files installed in: /Users/colinmurphy/.cabal/share/SDL-0.6.2
Documentation installed in: /Users/colinmurphy/.cabal/share/doc/SDL-0.6.2
Using alex version 2.3.1 found on system at: /opt/local/bin/alex
Using ar found on system at: /usr/bin/ar
No c2hs found
No cpphs found
No ffihugs found
Using gcc version 4.2.1 found on system at: /usr/bin/gcc
Using ghc version 6.10.4 found on system at: /opt/local/bin/ghc
Using ghc-pkg version 6.10.4 found on system at: /opt/local/bin/ghc-pkg
No greencard found
Using haddock version 2.4.2 found on system at: /opt/local/bin/haddock
Using happy version 1.18.4 found on system at: /opt/local/bin/happy
No hmake found
Using hsc2hs version 0.67 found on system at: /opt/local/bin/hsc2hs
No hscolour found
No hugs found
No jhc found
Using ld found on system at: /usr/bin/ld
No nhc98 found
Using pkg-config version 0.25 found on system at: /opt/local/bin/pkg-config
Using ranlib found on system at: /usr/bin/ranlib
Using strip found on system at: /usr/bin/strip
Using tar found on system at: /usr/bin/tar
sh configure --with-hc=ghc --prefix=/Users/colinmurphy/.cabal
configure: WARNING: unrecognized options: --with-hc
checking for sdl-config... no
checking for sdl11-config... no
configure: error: *** SDL not found! Get SDL from www.libsdl.org.
If you already installed it, check it's in the path. If problem remains,
please send a mail to the address that appears in ./configure --version
indicating your platform, the version of configure script and the problem.
cabal: Error: some packages failed to install:
SDL-0.6.2 failed during the configure step. The exception was:
exit: ExitFailure 1
cm-macbookpro-3:roadmap colinmurphy$
"

The final error is different, but it's still before the claim that SDL-0.6.2
can't be found.

Thanks for any help!
Tom





On Mon, Feb 21, 2011 at 2:23 PM, Stephen Tetley <[email protected]>wrote:

> Hi Tom
>
> What OS are you using?
>
> Could you try to install SDL-0.6.2 (i.e. the Haskell binding) with the
> verbose output from Cabal, probably -v for the command line switch.
>
> _______________________________________________
> Beginners mailing list
> [email protected]
> http://www.haskell.org/mailman/listinfo/beginners
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<http://www.haskell.org/pipermail/beginners/attachments/20110222/70f0bead/attachment-0001.htm>

------------------------------

Message: 4
Date: Tue, 22 Feb 2011 10:06:49 -0600
From: aditya siram <[email protected]>
Subject: Re: [Haskell-beginners] GTK Haskell and Error on Win32,
        anyone see the issue?
To: Berlin Brown <[email protected]>
Cc: [email protected]
Message-ID:
        <[email protected]>
Content-Type: text/plain; charset=ISO-8859-1

It looks like it's not finding the gobject-2.0, glib-2.0, intl dlls.
These should be sitting in the Program Files/GTK+/bin. What is the
output of 'echo %PATH%'?
-deech

On Tue, Feb 22, 2011 at 12:45 AM, Berlin Brown <[email protected]> wrote:
>
>
> On Tue, Feb 22, 2011 at 12:53 AM, Berlin Brown <[email protected]>
> 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 <[email protected]>
>> 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 <[email protected]>
>>> 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
>>> > [email protected]
>>> > 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@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
[email protected]
http://www.haskell.org/mailman/listinfo/beginners


End of Beginners Digest, Vol 32, Issue 41
*****************************************

Reply via email to