installing Network on windows

gladstein@gladstein.com wrote:
I need some advice on the most straightforward way to install the Network package on Windows. I can install Cywgin if that's what it takes. Thanks in advance.
cabal install network Resolving dependencies... Configuring network-2.2.1.7... cabal: Error: some packages failed to install: network-2.2.1.7 failed during the configure step. The exception was: sh: runGenProcess: does not exist (No such file or directory)
Looks like it wants to run "sh" (i.e., the Borne Shell), which obviously doesn't exist on Windows. Now I'm sure some kind soul somewhere has probably compiled a Win32 binary for it, but I would suggest that the build will just immediately trip over again because some *other* Unix-only tool isn't available. How to fix? Well, I'm guessing you'll be forced to install some kind of Unix emulation layer such as Cygwin. I don't have any expertise of such things...

Am 17.03.2010 21:17 schrieb Andrew Coppin:
gladstein@gladstein.com wrote:
I need some advice on the most straightforward way to install the Network package on Windows. I can install Cywgin if that's what it takes. Thanks in advance.
cabal install network Resolving dependencies... Configuring network-2.2.1.7... cabal: Error: some packages failed to install: network-2.2.1.7 failed during the configure step. The exception was: sh: runGenProcess: does not exist (No such file or directory)
Looks like it wants to run "sh" (i.e., the Borne Shell), which obviously doesn't exist on Windows. Now I'm sure some kind soul somewhere has probably compiled a Win32 binary for it, but I would suggest that the build will just immediately trip over again because some *other* Unix-only tool isn't available.
How to fix? Well, I'm guessing you'll be forced to install some kind of Unix emulation layer such as Cygwin. I don't have any expertise of such things...
You can also use MSYS/MinGW, I prefer this to Cygwin. Best wishes, Maciej

On 17 March 2010 20:49, Maciej Podgurski
You can also use MSYS/MinGW, I prefer this to Cygwin.
Hi Maciej I'll second this - for building Haskell FFI bindings to C libraries MSYS / MinGW is usually better (provided you can get the original C library working of course). And the Network package that the original poster wants to use is, in part, a C binding. Best wishes Stephen

Hi!
It needs some shell, if you install MSYS from mingw and do the cabal install from there it will work just fine.
Here is the download for MSYS:
http://sourceforge.net/projects/mingw/files/MSYS%20Base%20System/msys-1.0.11...
// Niklas L.
________________________________
From: "gladstein@gladstein.com"

Hi,
I managed this with the following sequence of commands:
http://www.haskell.org/pipermail/libraries/2010-February/013038.html
Thanks, Neil
On Wed, Mar 17, 2010 at 9:44 PM, Niklas Larsson
Hi!
It needs some shell, if you install MSYS from mingw and do the cabal install from there it will work just fine.
Here is the download for MSYS: http://sourceforge.net/projects/mingw/files/MSYS%20Base%20System/msys-1.0.11...
// Niklas L. ________________________________ From: "gladstein@gladstein.com"
To: haskell-cafe@haskell.org Sent: Wed, March 17, 2010 9:11:00 PM Subject: [Haskell-cafe] installing Network on windows I need some advice on the most straightforward way to install the Network package on Windows. I can install Cywgin if that's what it takes. Thanks in advance.
cabal install network Resolving dependencies... Configuring network-2.2.1.7... cabal: Error: some packages failed to install: network-2.2.1.7 failed during the configure step. The exception was: sh: runGenProcess: does not exist (No such file or directory)
_______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

it is easier if you use msys then in msys window, run ghc setup configure after that you can run ghc setup build etc in normal dos window without further recourse to msys Neil Mitchell wrote:
Hi,
I managed this with the following sequence of commands: http://www.haskell.org/pipermail/libraries/2010-February/013038.html
Thanks, Neil
On Wed, Mar 17, 2010 at 9:44 PM, Niklas Larsson
wrote: Hi!
It needs some shell, if you install MSYS from mingw and do the cabal install from there it will work just fine.
Here is the download for MSYS: http://sourceforge.net/projects/mingw/files/MSYS%20Base%20System/msys-1.0.11...
// Niklas L. ________________________________ From: "gladstein@gladstein.com"
To: haskell-cafe@haskell.org Sent: Wed, March 17, 2010 9:11:00 PM Subject: [Haskell-cafe] installing Network on windows I need some advice on the most straightforward way to install the Network package on Windows. I can install Cywgin if that's what it takes. Thanks in advance.
cabal install network Resolving dependencies... Configuring network-2.2.1.7... cabal: Error: some packages failed to install: network-2.2.1.7 failed during the configure step. The exception was: sh: runGenProcess: does not exist (No such file or directory)
_______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
_______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
participants (7)
-
Andrew Coppin
-
gladstein@gladstein.com
-
John Lask
-
Maciej Podgurski
-
Neil Mitchell
-
Niklas Larsson
-
Stephen Tetley