tag:blogger.com,1999:blog-7094652.post8386658137883385952..comments2024-03-23T14:36:09.980+00:00Comments on Neil Mitchell's Blog (Haskell etc): Installing the Haskell network library on WindowsNeil Mitchellhttp://www.blogger.com/profile/13084722756124486154noreply@blogger.comBlogger16125tag:blogger.com,1999:blog-7094652.post-48169398954621282152015-03-19T13:09:03.678+00:002015-03-19T13:09:03.678+00:00Mickael: Nowadays I just use MinGHC, which sets th...Mickael: Nowadays I just use MinGHC, which sets things up so you don't need to care and everything works out of the box. https://github.com/fpco/minghc#readme. I recommend doing that.Neil Mitchellhttps://www.blogger.com/profile/13084722756124486154noreply@blogger.comtag:blogger.com,1999:blog-7094652.post-29232650870958682602015-03-19T13:03:23.518+00:002015-03-19T13:03:23.518+00:00I don't understand the command. Would you give...I don't understand the command. Would you give a concrete example?Anonymoushttps://www.blogger.com/profile/11726092841557088015noreply@blogger.comtag:blogger.com,1999:blog-7094652.post-19341635092271378482014-03-26T05:16:29.884+00:002014-03-26T05:16:29.884+00:00For MSys2 x86:
cabal install network --configure-...For MSys2 x86:<br /><br />cabal install network --configure-option --build=i386-unknown-mingw32 --configure-option --host=i686-pc-mingw32Anonymoushttps://www.blogger.com/profile/00688741151088057366noreply@blogger.comtag:blogger.com,1999:blog-7094652.post-49412793469079450372011-08-12T10:48:05.124+01:002011-08-12T10:48:05.124+01:00Ivan: Thanks for the comment, I updated the post t...Ivan: Thanks for the comment, I updated the post to include your suggestion at the bottom.Neil Mitchellhttps://www.blogger.com/profile/13084722756124486154noreply@blogger.comtag:blogger.com,1999:blog-7094652.post-2771957161643966392011-08-03T13:35:12.789+01:002011-08-03T13:35:12.789+01:00Hi Neil,
Thanks for this, post, it was really he...Hi Neil,<br /><br /> Thanks for this, post, it was really helpful. The exact line you posted didn't work on my system, but the following did:<br /><br />WHICHGHC=`which ghc` && PATH=`dirname $WHICHGHC`/../mingw/bin:$PATH && cabal install network --configure-option --build=i386-unknown-mingw32 --configure-option --host=i686-pc-cygwin<br /><br />(I didn't need profiling and global installation, so I removed that part).Ivan Pereznoreply@blogger.comtag:blogger.com,1999:blog-7094652.post-22924286591578312702011-02-16T22:29:24.203+00:002011-02-16T22:29:24.203+00:00Andrew: It could be, but it would be a reasonable ...Andrew: It could be, but it would be a reasonable amount of work - although I would certainly appreciate it.Neil Mitchellhttps://www.blogger.com/profile/13084722756124486154noreply@blogger.comtag:blogger.com,1999:blog-7094652.post-17534688514345345632011-02-16T21:58:23.167+00:002011-02-16T21:58:23.167+00:00I seem to be having the same issue trying to insta...I seem to be having the same issue trying to install snap which depends on a newer version of network than ships with Haskell Platform. Couldn't the configure script for Network be rewritten in Haskell to remove the dependency on Unix tools which generally aren't available on a Windows platform ?Andrewhttp://www.thegenetictrader.comnoreply@blogger.comtag:blogger.com,1999:blog-7094652.post-24018140366347817012011-02-07T05:03:50.992+00:002011-02-07T05:03:50.992+00:00Such a useful comment, it worked perfectly first t...Such a useful comment, it worked perfectly first time. That was awesome. Right when I needed it too because windows support for network is not so crash hot.Robert Massaiolihttps://www.blogger.com/profile/09276670983250867687noreply@blogger.comtag:blogger.com,1999:blog-7094652.post-5285976295238965032010-12-13T19:59:39.726+00:002010-12-13T19:59:39.726+00:00I really am after nightly versions of GHC - nightl...I really am after nightly versions of GHC - nightly versions of the platform is probably a good idea, but unless it also bundled GHC head it wouldn't be so useful (and the platform changes fairly rarely).Neil Mitchellhttps://www.blogger.com/profile/13084722756124486154noreply@blogger.comtag:blogger.com,1999:blog-7094652.post-763224959466395972010-12-13T07:20:28.229+00:002010-12-13T07:20:28.229+00:00I think I understand. There are nightly drops of t...I think I understand. There are nightly drops of the Windows installer so you can get newer versions of network that way? If so, perhaps we should have nightly drops of the HP installer as well.Johan Tibellhttps://www.blogger.com/profile/06875432206357419172noreply@blogger.comtag:blogger.com,1999:blog-7094652.post-77682571795821670832010-12-13T06:50:46.782+00:002010-12-13T06:50:46.782+00:00Anon: No, this creates a pure Windows package, wit...Anon: No, this creates a pure Windows package, without any Cygwin dependency. Cygwin is being used to run the configure script, but GHC's bundled MinGW is being used to compile the library.Neil Mitchellhttps://www.blogger.com/profile/13084722756124486154noreply@blogger.comtag:blogger.com,1999:blog-7094652.post-53654982453226619662010-12-13T04:03:12.670+00:002010-12-13T04:03:12.670+00:00does this then create a dependency on cygwin1.dll?...does this then create a dependency on cygwin1.dll?Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-7094652.post-4985231396433970652010-12-12T20:57:17.446+00:002010-12-12T20:57:17.446+00:00Johan: Network is the one native library that isn&...Johan: Network is the one native library that isn't bundled with GHC that ends up being a dependency of most things. If Network was bundled with GHC I could download any GHC snapshot, and use cabal install in the Windows console to get most things up and running. Without bundling, I have to also have Cygwin/MinGW and be familiar with additional tools beyond GHC/Windows - which puts a fairly large additional burden.<br /><br />As a concrete example, my wife is running GHC 6.12.3. There are some features in 7.0.1 which would be useful to her, but due to the way her machine is locked down she can't install either Cygwin or MinGW, so is stuck on 6.12.3.<br /><br />PS. Thanks for your work on network, it is appreciated!Neil Mitchellhttps://www.blogger.com/profile/13084722756124486154noreply@blogger.comtag:blogger.com,1999:blog-7094652.post-37689101477181004682010-12-12T20:49:32.952+00:002010-12-12T20:49:32.952+00:00Neil, I don't quite understand how being bundl...Neil, I don't quite understand how being bundled with GHC or HP makes a difference. Could you please elaborate?Johan Tibellhttps://www.blogger.com/profile/06875432206357419172noreply@blogger.comtag:blogger.com,1999:blog-7094652.post-83789717102616875482010-12-12T13:04:37.970+00:002010-12-12T13:04:37.970+00:00Hi Stephen. Installing MinGW/MSYS is usually a mul...Hi Stephen. Installing MinGW/MSYS is usually a multi-step process, and it's easy to go wrong if you get the paths/versions wrong between the various stages. Cygwin has a much nicer installer - if you just hit Next several times you are almost guaranteed to end up with a working Cygwin. For that reason, I tend to use Cygwin instead (there was also a reason why in my particular setup MinGW was unsuitable, but that's a side issue).<br /><br />For MinGW installations, if you are using MinGW binaries (which sounds likely) you have to be careful that you have a MinGW and GHC that agree - otherwise you'll get random errors at link time (I've made that mistake before).Neil Mitchellhttps://www.blogger.com/profile/13084722756124486154noreply@blogger.comtag:blogger.com,1999:blog-7094652.post-76471921398614437592010-12-12T13:00:23.972+00:002010-12-12T13:00:23.972+00:00Hi Neil - I'd suggest its easier to install it...Hi Neil - I'd suggest its easier to install it with MinGW / MSYS rather than Cygwin. Although I use Cygwin for all shell stuff including GHCi, I use MinGW / MSYS to install Haskell libs that are foreign bindings. <br /><br />For network I think I just ran configure / build / install on the Setup.hs from MSys - I don't use cabal-install.Stephen Tetleyhttps://www.blogger.com/profile/03745048339300316894noreply@blogger.com