Problems with the Network package

Hey everyone! I'm still pretty inexperienced with Haskell and am now facing problems with the Network package. I tried to install it but this always fails, no matter if I try to install Network-2.3.0.3 or a previous version. The cabal install always fails with the error compiling dist\build\Network\Socket_hsc_make.c failed (exit code 1). Now I'm wondering, where I can find out what the problem is, what I can do about it and which additional information I need to solve it. I hope this is not too stupid a question, but my searches on the net haven't turned up anything useful so far and I'm pretty much stuck now. Raf

On Wed, Jun 1, 2011 at 12:00 PM, Raphael Päbst
Hey everyone! I'm still pretty inexperienced with Haskell and am now facing problems with the Network package. I tried to install it but this always fails, no matter if I try to install Network-2.3.0.3 or a previous version. The cabal install always fails with the error compiling dist\build\Network\Socket_hsc_make.c failed (exit code 1).
Now I'm wondering, where I can find out what the problem is, what I can do about it and which additional information I need to solve it.
I hope this is not too stupid a question, but my searches on the net haven't turned up anything useful so far and I'm pretty much stuck now.
Raf
_______________________________________________ Beginners mailing list Beginners@haskell.org http://www.haskell.org/mailman/listinfo/beginners
Hi Raf, A few basic questions: * Which OS are you using? * Which version of GHC do you have installed? * How did you install GHC? Via the Haskell Platform or by itself? If you aren't using the Haskell Platform right now, I'd recommend you try installing that and using the network package it installs. Michael

Hey!
I'm using the Haskell Platform version 2011.2.0.1 on Windows XPat the moment.
I have already used the Network package that comes with it, but I
tried to install other packages via cabal and that failed because the
installation of Network 2.3.0.2 failed.
So I tried to install that on its own and got the above problems.
On 6/1/11, Michael Snoyman
On Wed, Jun 1, 2011 at 12:00 PM, Raphael Päbst
wrote: Hey everyone! I'm still pretty inexperienced with Haskell and am now facing problems with the Network package. I tried to install it but this always fails, no matter if I try to install Network-2.3.0.3 or a previous version. The cabal install always fails with the error compiling dist\build\Network\Socket_hsc_make.c failed (exit code 1).
Now I'm wondering, where I can find out what the problem is, what I can do about it and which additional information I need to solve it.
I hope this is not too stupid a question, but my searches on the net haven't turned up anything useful so far and I'm pretty much stuck now.
Raf
_______________________________________________ Beginners mailing list Beginners@haskell.org http://www.haskell.org/mailman/listinfo/beginners
Hi Raf,
A few basic questions:
* Which OS are you using? * Which version of GHC do you have installed? * How did you install GHC? Via the Haskell Platform or by itself?
If you aren't using the Haskell Platform right now, I'd recommend you try installing that and using the network package it installs.
Michael

On Wed, Jun 1, 2011 at 12:13 PM, Raphael Päbst
Hey! I'm using the Haskell Platform version 2011.2.0.1 on Windows XPat the moment. I have already used the Network package that comes with it, but I tried to install other packages via cabal and that failed because the installation of Network 2.3.0.2 failed. So I tried to install that on its own and got the above problems.
I've never actually needed to build a new version of network on Windows, but Neil Mitchell put up an explanation of what's required[1]. Out of curiosity, what packages are forcing the installation of a new network? Michael [1] http://neilmitchell.blogspot.com/2010/12/installing-haskell-network-library-...
On 6/1/11, Michael Snoyman
wrote: On Wed, Jun 1, 2011 at 12:00 PM, Raphael Päbst
wrote: Hey everyone! I'm still pretty inexperienced with Haskell and am now facing problems with the Network package. I tried to install it but this always fails, no matter if I try to install Network-2.3.0.3 or a previous version. The cabal install always fails with the error compiling dist\build\Network\Socket_hsc_make.c failed (exit code 1).
Now I'm wondering, where I can find out what the problem is, what I can do about it and which additional information I need to solve it.
I hope this is not too stupid a question, but my searches on the net haven't turned up anything useful so far and I'm pretty much stuck now.
Raf
_______________________________________________ Beginners mailing list Beginners@haskell.org http://www.haskell.org/mailman/listinfo/beginners
Hi Raf,
A few basic questions:
* Which OS are you using? * Which version of GHC do you have installed? * How did you install GHC? Via the Haskell Platform or by itself?
If you aren't using the Haskell Platform right now, I'd recommend you try installing that and using the network package it installs.
Michael

Thanks for the help. As for packages, Yesod for example fails to
install because it is trying to install network 2.3.0.2
Raf
On 6/1/11, Michael Snoyman
On Wed, Jun 1, 2011 at 12:13 PM, Raphael Päbst
wrote: Hey! I'm using the Haskell Platform version 2011.2.0.1 on Windows XPat the moment. I have already used the Network package that comes with it, but I tried to install other packages via cabal and that failed because the installation of Network 2.3.0.2 failed. So I tried to install that on its own and got the above problems.
I've never actually needed to build a new version of network on Windows, but Neil Mitchell put up an explanation of what's required[1].
Out of curiosity, what packages are forcing the installation of a new network?
Michael
[1] http://neilmitchell.blogspot.com/2010/12/installing-haskell-network-library-...
On 6/1/11, Michael Snoyman
wrote: On Wed, Jun 1, 2011 at 12:00 PM, Raphael Päbst
wrote: Hey everyone! I'm still pretty inexperienced with Haskell and am now facing problems with the Network package. I tried to install it but this always fails, no matter if I try to install Network-2.3.0.3 or a previous version. The cabal install always fails with the error compiling dist\build\Network\Socket_hsc_make.c failed (exit code 1).
Now I'm wondering, where I can find out what the problem is, what I can do about it and which additional information I need to solve it.
I hope this is not too stupid a question, but my searches on the net haven't turned up anything useful so far and I'm pretty much stuck now.
Raf
_______________________________________________ Beginners mailing list Beginners@haskell.org http://www.haskell.org/mailman/listinfo/beginners
Hi Raf,
A few basic questions:
* Which OS are you using? * Which version of GHC do you have installed? * How did you install GHC? Via the Haskell Platform or by itself?
If you aren't using the Haskell Platform right now, I'd recommend you try installing that and using the network package it installs.
Michael

Good question. Ghc-pkg list gives me Cabal-1.8.0.6 and 1.10..1.0.
Ghc-pkg check tells me that cabal-1.8.0.6 is broken though because of
some dependency on Process 1.0.1.5.
It's all a bit of a mystery to me.
On 6/1/11, Daniel Fischer
On Wednesday 01 June 2011 11:51:02, Raphael Päbst wrote:
Thanks for the help. As for packages, Yesod for example fails to install because it is trying to install network 2.3.0.2
cabal-0.8.* using version 1.8.0.2 of tha Cabal library?

On Wednesday 01 June 2011 12:34:20, Raphael Päbst wrote:
Good question. Ghc-pkg list gives me Cabal-1.8.0.6 and 1.10..1.0.
Run cabal --version in the command shell, that tells you which version of cabal you have and with which version of Cabal it was compiled. (However, if the failure while trying to install network-2.3.0.2 was not an ambiguous occurrence of closeFdWith, it's not the issue I suspect, and the versions are less important [for the moment, at least].) Anyway, it would be helpful if you ran the cabal install command with higher verbosity - not sure if -v is enough, -v2 should be - and post the output (to the list, or paste it on hpaste.org or similar and post a link to it here).
Ghc-pkg check tells me that cabal-1.8.0.6 is broken though because of some dependency on Process 1.0.1.5.
Uh oh, have you more than one process package? That's bad, because process is one of the core libs, having several of those lands you in dependency hell. Hope that there's only one version of it in the global package-db and unregister those in the user-db. ghc-pkg unregister --user process (perhaps with the exact version if there are several). That will probably complain that unregistering process-a.b.c.d will break some packages, unregister those too [or, if there are too many, delete the whole user-db] until ghc-pkg check doesn't report broken packages anymore, then start reinstalling, but watch that cabal doesn't try to reinstall a package already registered with ghc; you can check for that with cabal install foo bar baz quux --dry-run
It's all a bit of a mystery to me.
On 6/1/11, Daniel Fischer
wrote: On Wednesday 01 June 2011 11:51:02, Raphael Päbst wrote:
Thanks for the help. As for packages, Yesod for example fails to install because it is trying to install network 2.3.0.2
Try cabal install --constraint='network==2.3.0.3' yesod ?
cabal-0.8.* using version 1.8.0.2 of tha Cabal library?

Well it all works now, after unregistering most of the stuff in the
user package list.
And I only have one version of Process registered, so I don't know
what was wrong there. Anyway, it's working now, so I'm happy.
Thanks all for the help!
Raf
On 6/1/11, Daniel Fischer
On Wednesday 01 June 2011 12:34:20, Raphael Päbst wrote:
Good question. Ghc-pkg list gives me Cabal-1.8.0.6 and 1.10..1.0.
Run
cabal --version
in the command shell, that tells you which version of cabal you have and with which version of Cabal it was compiled. (However, if the failure while trying to install network-2.3.0.2 was not an ambiguous occurrence of closeFdWith, it's not the issue I suspect, and the versions are less important [for the moment, at least].)
Anyway, it would be helpful if you ran the cabal install command with higher verbosity - not sure if -v is enough, -v2 should be - and post the output (to the list, or paste it on hpaste.org or similar and post a link to it here).
Ghc-pkg check tells me that cabal-1.8.0.6 is broken though because of some dependency on Process 1.0.1.5.
Uh oh, have you more than one process package? That's bad, because process is one of the core libs, having several of those lands you in dependency hell. Hope that there's only one version of it in the global package-db and unregister those in the user-db.
ghc-pkg unregister --user process
(perhaps with the exact version if there are several). That will probably complain that unregistering process-a.b.c.d will break some packages, unregister those too [or, if there are too many, delete the whole user-db] until ghc-pkg check doesn't report broken packages anymore, then start reinstalling, but watch that cabal doesn't try to reinstall a package already registered with ghc; you can check for that with
cabal install foo bar baz quux --dry-run
It's all a bit of a mystery to me.
On 6/1/11, Daniel Fischer
wrote: On Wednesday 01 June 2011 11:51:02, Raphael Päbst wrote:
Thanks for the help. As for packages, Yesod for example fails to install because it is trying to install network 2.3.0.2
Try
cabal install --constraint='network==2.3.0.3' yesod
?
cabal-0.8.* using version 1.8.0.2 of tha Cabal library?
participants (3)
-
Daniel Fischer
-
Michael Snoyman
-
Raphael Päbst