Send Beginners mailing list submissions to
        [email protected]

To subscribe or unsubscribe via the World Wide Web, visit
        http://mail.haskell.org/cgi-bin/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.  Building glib (C W Rose)
   2.  unsubscribe (Oldman, John)
   3.  Missing C libraries on windows (Cameron P-B)
   4. Re:  unsubscribe (Magnus Therning)
   5. Re:  Missing C libraries on windows (Elise Huard)


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

Message: 1
Date: Wed, 6 May 2015 16:05:21 +0000 (UTC)
From: C W Rose <[email protected]>
To: [email protected]
Subject: [Haskell-beginners] Building glib
Message-ID: <[email protected]>
Content-Type: text/plain; charset=us-ascii

I've been trying to build the glib package (pretty much any version) for
a few days now, with no success.  The sequence of results is:

===================================================================
cwr@sixpence cabal $ cabal --verbose --global
--package-db=/opt/cabal/package.conf.d install glib-0.12.5.4
'/opt/cabal/bin/alex' '--version'
'/opt/cabal/bin/cpphs' '--version'
'/usr/bin/gcc' '-dumpversion'
'/opt/cabal/bin/haddock' '--version'
'/opt/cabal/bin/happy' '--version'
'/usr/bin/hpc' 'version'
looking for tool hsc2hs near compiler in /usr/bin
found hsc2hs in /usr/bin/hsc2hs
'/usr/bin/hsc2hs' '--version'
'/opt/cabal/bin/HsColour' '-version'
'/usr/bin/ghc' '-c' '/tmp/6826.c' '-o' '/tmp/6826.o'
'/usr/bin/ld' '-x' '-r' '/tmp/6826.o' '-o' '/tmp/6827.o'
'/usr/bin/pkg-config' '--version'
'/bin/tar' '--help'
Reading available packages...
Warning: The package list for 'hackage.haskell.org' is 52.1 days old.
Run 'cabal update' to get the latest list of available packages.
Choosing modular solver.
Resolving dependencies...
Ready to install glib-0.12.5.4
Waiting for install task to finish...
Extracting
/opt/cabal/packages/hackage.haskell.org/glib/0.12.5.4/glib-0.12.5.4.tar.gz to
/tmp/glib-0.12.5.4-6826...
Updating glib.cabal with the latest revision from the index.
creating /tmp/glib-0.12.5.4-6826/glib-0.12.5.4/dist/setup
creating /tmp/glib-0.12.5.4-6826/glib-0.12.5.4/dist
creating /tmp/glib-0.12.5.4-6826/glib-0.12.5.4/dist/setup
copy /tmp/glib-0.12.5.4-6826/glib-0.12.5.4/Setup.hs to
/tmp/glib-0.12.5.4-6826/glib-0.12.5.4/dist/setup/setup.hs
'/usr/bin/ghc' '--make' '-odir'
'/tmp/glib-0.12.5.4-6826/glib-0.12.5.4/dist/setup' '-hidir'
'/tmp/glib-0.12.5.4-6826/glib-0.12.5.4/dist/setup' '-i'
'-i/tmp/glib-0.12.5.4-6826/glib-0.12.5.4' '-package-db'
'/opt/cabal/package.conf.d' '-package-id'
'Cabal-1.22.1.1-98c5a01d59dd973fd7113dbb82e82560'
'/tmp/glib-0.12.5.4-6826/glib-0.12.5.4/dist/setup/setup.hs' '-o'
'/tmp/glib-0.12.5.4-6826/glib-0.12.5.4/dist/setup/setup' '-threaded'
[1 of 2] Compiling SetupWrapper     (
/tmp/glib-0.12.5.4-6826/glib-0.12.5.4/SetupWrapper.hs,
/tmp/glib-0.12.5.4-6826/glib-0.12.5.4/dist/setup/SetupWrapper.o )

/tmp/glib-0.12.5.4-6826/glib-0.12.5.4/SetupWrapper.hs:118:28: Warning:
    In the use of `configCompiler'
    (imported from Distribution.Simple.Configure):
    Deprecated: "'configCompiler' is deprecated. Use 'configCompilerEx'
instead."
[2 of 2] Compiling Main             (
/tmp/glib-0.12.5.4-6826/glib-0.12.5.4/dist/setup/setup.hs,
/tmp/glib-0.12.5.4-6826/glib-0.12.5.4/dist/setup/Main.o )
Linking /tmp/glib-0.12.5.4-6826/glib-0.12.5.4/dist/setup/setup ...
/tmp/glib-0.12.5.4-6826/glib-0.12.5.4/dist/setup/setup configure --verbose=2
--ghc --prefix=/opt/cabal --bindir=/opt/cabal/bin --libdir=/opt/cabal/lib
--libsubdir=glib-0.12.5.4/ghc-7.6.3 --libexecdir=/opt/cabal/libexec
--datadir=/opt/cabal/share --datasubdir=glib-0.12.5.4
--docdir=/opt/cabal/share/doc/glib-0.12.5.4
--htmldir=/opt/cabal/share/doc/glib-0.12.5.4/html
--haddockdir=/opt/cabal/share/doc/glib-0.12.5.4/html
--sysconfdir=/opt/cabal/etc --enable-library-profiling --enable-optimization=2
--global --package-db=/opt/cabal/package.conf.d --flags=closure_signals
--dependency=utf8-string=utf8-string-0.3.8-51169ff3d90963aa54c0a13eee5c3a53
--dependency=containers=containers-0.5.0.0-e7e1a93d7945e93a00ce12660e9ff290
--dependency=base=base-4.6.0.1-220b875e77822b0e1bf50c8f35d37dff
--disable-tests --exact-configuration --disable-benchmarks
[1 of 2] Compiling Gtk2HsSetup      ( Gtk2HsSetup.hs,
dist/setup-wrapper/Gtk2HsSetup.o )
[2 of 2] Compiling Main             ( SetupMain.hs, dist/setup-wrapper/Main.o )
Linking dist/setup-wrapper/setup ...
unrecognized option `--sysconfdir=/opt/cabal/etc'

unrecognized option
`--dependency=utf8-string=utf8-string-0.3.8-51169ff3d90963aa54c0a13eee5c3a53'

unrecognized option
`--dependency=containers=containers-0.5.0.0-e7e1a93d7945e93a00ce12660e9ff290'

unrecognized option
`--dependency=base=base-4.6.0.1-220b875e77822b0e1bf50c8f35d37dff'

unrecognized option `--exact-configuration'
Failed to install glib-0.12.5.4
World file is already up to date.
cabal: Error: some packages failed to install:
glib-0.12.5.4 failed during the configure step. The exception was:
ExitFailure 1
cwr@sixpence cabal $ 
===================================================================

Moving to the default version of glib, I then get:

===================================================================
cwr@sixpence cabal $ cabal --verbose --global
--package-db=/opt/cabal/package.conf.d install glib
Reading available packages...
Choosing modular solver.
Resolving dependencies...
Ready to install glib-0.13.1.0
Waiting for install task to finish...
Extracting
/opt/cabal/packages/hackage.haskell.org/glib/0.13.1.0/glib-0.13.1.0.tar.gz to
/tmp/glib-0.13.1.0-3703...
Updating glib.cabal with the latest revision from the index.
creating /tmp/glib-0.13.1.0-3703/glib-0.13.1.0/dist/setup
creating /tmp/glib-0.13.1.0-3703/glib-0.13.1.0/dist
creating /tmp/glib-0.13.1.0-3703/glib-0.13.1.0/dist/setup
Failed to install glib-0.13.1.0
World file is already up to date.
cabal: Error: some packages failed to install:
glib-0.13.1.0 failed during the configure step. The exception was:
user error (The package 'glib' requires Cabal library version -any && >=1.18
but no suitable version is installed.)
cwr@sixpence cabal $ cabal --version
cabal-install version 1.18.0.2
using version 1.18.1.2 of the Cabal library 
cwr@sixpence cabal $ 
===================================================================

And moving to the default version of cabal, I get:

===================================================================
cwr@sixpence cabal $ cabal --verbose --global
--package-db=/opt/cabal/package.conf.d install glib
'/opt/cabal/bin/alex' '--version'
'/opt/cabal/bin/cpphs' '--version'
'/usr/bin/gcc' '-dumpversion'
'/opt/cabal/bin/haddock' '--version'
'/opt/cabal/bin/happy' '--version'
'/usr/bin/hpc' 'version'
looking for tool hsc2hs near compiler in /usr/bin
found hsc2hs in /usr/bin/hsc2hs
'/usr/bin/hsc2hs' '--version'
'/opt/cabal/bin/HsColour' '-version'
'/usr/bin/ghc' '-c' '/tmp/4186.c' '-o' '/tmp/4186.o'
'/usr/bin/ld' '-x' '-r' '/tmp/4186.o' '-o' '/tmp/4187.o'
'/usr/bin/pkg-config' '--version'
'/bin/tar' '--help'
Reading available packages...
Warning: The package list for 'hackage.haskell.org' is 51.4 days old.
Run 'cabal update' to get the latest list of available packages.
Choosing modular solver.
Resolving dependencies...
Ready to install glib-0.13.1.0
Waiting for install task to finish...
Extracting
/opt/cabal/packages/hackage.haskell.org/glib/0.13.1.0/glib-0.13.1.0.tar.gz to
/tmp/glib-0.13.1.0-4186...
Updating glib.cabal with the latest revision from the index.
creating /tmp/glib-0.13.1.0-4186/glib-0.13.1.0/dist/setup
creating /tmp/glib-0.13.1.0-4186/glib-0.13.1.0/dist
creating /tmp/glib-0.13.1.0-4186/glib-0.13.1.0/dist/setup
copy /tmp/glib-0.13.1.0-4186/glib-0.13.1.0/Setup.hs to
/tmp/glib-0.13.1.0-4186/glib-0.13.1.0/dist/setup/setup.hs
'/usr/bin/ghc' '--make' '-odir'
'/tmp/glib-0.13.1.0-4186/glib-0.13.1.0/dist/setup' '-hidir'
'/tmp/glib-0.13.1.0-4186/glib-0.13.1.0/dist/setup' '-i'
'-i/tmp/glib-0.13.1.0-4186/glib-0.13.1.0' '-package-db'
'/opt/cabal/package.conf.d' '-package-id'
'Cabal-1.22.1.1-98c5a01d59dd973fd7113dbb82e82560'
'/tmp/glib-0.13.1.0-4186/glib-0.13.1.0/dist/setup/setup.hs' '-o'
'/tmp/glib-0.13.1.0-4186/glib-0.13.1.0/dist/setup/setup' '-threaded'
[1 of 2] Compiling SetupWrapper     (
/tmp/glib-0.13.1.0-4186/glib-0.13.1.0/SetupWrapper.hs,
/tmp/glib-0.13.1.0-4186/glib-0.13.1.0/dist/setup/SetupWrapper.o )
[2 of 2] Compiling Main             (
/tmp/glib-0.13.1.0-4186/glib-0.13.1.0/dist/setup/setup.hs,
/tmp/glib-0.13.1.0-4186/glib-0.13.1.0/dist/setup/Main.o )
Linking /tmp/glib-0.13.1.0-4186/glib-0.13.1.0/dist/setup/setup ...
/tmp/glib-0.13.1.0-4186/glib-0.13.1.0/dist/setup/setup configure --verbose=2
--ghc --prefix=/opt/cabal --bindir=/opt/cabal/bin --libdir=/opt/cabal/lib
--libsubdir=glib-0.13.1.0/ghc-7.6.3 --libexecdir=/opt/cabal/libexec
--datadir=/opt/cabal/share --datasubdir=glib-0.13.1.0
--docdir=/opt/cabal/share/doc/glib-0.13.1.0
--htmldir=/opt/cabal/share/doc/glib-0.13.1.0/html
--haddockdir=/opt/cabal/share/doc/glib-0.13.1.0/html
--sysconfdir=/opt/cabal/etc --enable-library-profiling --enable-optimization=2
--global --package-db=/opt/cabal/package.conf.d --flags=closure_signals
--dependency=utf8-string=utf8-string-0.3.8-51169ff3d90963aa54c0a13eee5c3a53
--dependency=text=text-1.1.1.3-3a54592a9f7d64cef4851163d5553453
--dependency=containers=containers-0.5.0.0-e7e1a93d7945e93a00ce12660e9ff290
--dependency=bytestring=bytestring-0.10.0.2-14ba8002009bf89cdad6038c30eda3fd
--dependency=base=base-4.6.0.1-220b875e77822b0e1bf50c8f35d37dff
--disable-tests --exact-configuration --disable-benchmarks
[1 of 2] Compiling Gtk2HsSetup      ( Gtk2HsSetup.hs,
dist/setup-wrapper/Gtk2HsSetup.o )

Gtk2HsSetup.hs:167:16:
    Not in scope: `LBI.getComponentLocalBuildInfo'
Failed to install glib-0.13.1.0
Updating world file...
cabal: Error: some packages failed to install:
glib-0.13.1.0 failed during the configure step. The exception was:
ExitFailure 1
cwr@sixpence cabal $
===================================================================

Does anyone have any idea how to fix any or all of these errors?

Thanks - Will




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

Message: 2
Date: Wed, 6 May 2015 16:30:11 +0000
From: "Oldman, John" <[email protected]>
To: "[email protected]" <[email protected]>
Subject: [Haskell-beginners] unsubscribe
Message-ID:
        
<9038715df9b6dc429e2cd9e1a9180b3e01aa6...@017-ch1mpn4-093.017d.mgd.msft.net>
        
Content-Type: text/plain; charset="utf-8"

unsubscribe
****************************************************************************************
 Note: If the reader of this message is not the intended recipient, or an 
employee or agent responsible for delivering this message to the intended 
recipient, you are hereby notified that any dissemination, distribution or 
copying of this communication is strictly prohibited. If you have received this 
communication in error, please notify us immediately by replying to the message 
and deleting it from your computer. Thank you. 
****************************************************************************************
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<http://mail.haskell.org/pipermail/beginners/attachments/20150506/e03246de/attachment-0001.html>

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

Message: 3
Date: Wed, 6 May 2015 20:14:59 -0300
From: Cameron P-B <[email protected]>
To: [email protected]
Subject: [Haskell-beginners] Missing C libraries on windows
Message-ID:
        <cap_q9jp3pj8wjosflgcm7xuq3kfb8ecf6ttyehfoa+vmw6_...@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

I'm not sure if this is the right place for this, but I've repeatedly run
into issues when installing packages through cabal. It complains about
missing C libraries and then explains that I can solve the problem by
"installing the system package that provides this library". This has never
worked for me and so I assume I'm not doing it correctly.

For example, I am currently trying to install ftgl. Using
--extra-include-dirs and --extra-lib-dirs to point at the lib and include
of the c source folder of ftgl doesn't seem to work. Neither did putting
the dll's in the path.

The tutorial linked from the wiki:[
https://noamlewis.wordpress.com/2012/12/16/cabal-install-ftgl-on-windows-and-getting-exes-that-use-it-to-work/
]

also doesn't work for me. And so I was wondering if anyone has had more
recent success with that library and more generally if there were any
suggestions as to what I might be doing wrong.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<http://mail.haskell.org/pipermail/beginners/attachments/20150506/43cdc89d/attachment-0001.html>

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

Message: 4
Date: Thu, 7 May 2015 07:54:59 +0200
From: Magnus Therning <[email protected]>
To: The Haskell-Beginners Mailing List - Discussion of primarily
        beginner-level topics related to Haskell <[email protected]>
Subject: Re: [Haskell-beginners] unsubscribe
Message-ID:
        <caaexw5t+-wczc0bas7jtzbeyv7uvu0nm-c+2w+ie5p-soxv...@mail.gmail.com>
Content-Type: text/plain; charset=UTF-8

On 6 May 2015 at 18:30, Oldman, John <[email protected]> wrote:
> unsubscribe

You'll have more luck unsubscribing if you go to
http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners

/M

> ****************************************************************************************
> Note: If the reader of this message is not the intended recipient, or an
> employee or agent responsible for delivering this message to the intended
> recipient, you are hereby notified that any dissemination, distribution or
> copying of this communication is strictly prohibited. If you have received
> this communication in error, please notify us immediately by replying to the
> message and deleting it from your computer. Thank you.
> ****************************************************************************************
>
> _______________________________________________
> Beginners mailing list
> [email protected]
> http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners
>



-- 
Magnus Therning                      OpenPGP: 0xAB4DFBA4
email: [email protected]   jabber: [email protected]
twitter: magthe               http://therning.org/magnus


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

Message: 5
Date: Thu, 7 May 2015 11:35:33 +0200
From: Elise Huard <[email protected]>
To: The Haskell-Beginners Mailing List - Discussion of primarily
        beginner-level topics related to Haskell <[email protected]>
Subject: Re: [Haskell-beginners] Missing C libraries on windows
Message-ID:
        <CAHfyCqnroj=Bu8UjDgxtdNae2+b=7efzgenmk48yesaoech...@mail.gmail.com>
Content-Type: text/plain; charset=UTF-8

Hi Cameron,

which error message do you get?
I've hacked my way through such issues by manually adding an
extra-lib-dirs:
with the _absolute_ path in the executable or library section of the
cabal file, so that could be something to try.  It's not a final
solution obviously, but it would allow you to check whether it works
at all.
An example on github of this
https://github.com/nikki-and-the-robots/nikki/blob/master/src/testsuite/testsuite.cabal#L99

Elise

On 7 May 2015 at 01:14, Cameron P-B <[email protected]> wrote:
> I'm not sure if this is the right place for this, but I've repeatedly run
> into issues when installing packages through cabal. It complains about
> missing C libraries and then explains that I can solve the problem by
> "installing the system package that provides this library". This has never
> worked for me and so I assume I'm not doing it correctly.
>
> For example, I am currently trying to install ftgl. Using
> --extra-include-dirs and --extra-lib-dirs to point at the lib and include of
> the c source folder of ftgl doesn't seem to work. Neither did putting the
> dll's in the path.
>
> The tutorial linked from the
> wiki:[https://noamlewis.wordpress.com/2012/12/16/cabal-install-ftgl-on-windows-and-getting-exes-that-use-it-to-work/]
>
> also doesn't work for me. And so I was wondering if anyone has had more
> recent success with that library and more generally if there were any
> suggestions as to what I might be doing wrong.
>
> _______________________________________________
> Beginners mailing list
> [email protected]
> http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners
>


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

Subject: Digest Footer

_______________________________________________
Beginners mailing list
[email protected]
http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners


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

End of Beginners Digest, Vol 83, Issue 7
****************************************

Reply via email to