One more thing, I also had to add my cygwin bin directory containing &quot;sh.exe&quot; to my Windows %PATH% variable. This allowed network to configure from the windows command prompt.<br><br clear="all">/jve<br>
<br><br><div class="gmail_quote">On Wed, Oct 29, 2008 at 8:37 PM, John Van Enk <span dir="ltr">&lt;<a href="mailto:vanenkj@gmail.com">vanenkj@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div>Hello All,</div><div><br></div>I&#39;m trying to reinstall network-2.2.0.0 against Parsec 3 in Windows. Well, this is really hard/impossible to do. Here&#39;s what I&#39;ve done so far:<div><br></div><div>1) After bashing my face against my desk for a while, I got cabal-install installed in windows.</div>

<div>2) cabal install network --reinstall</div><div>3) This freaks out because I don&#39;t have hsc2hs installed, but it doesn&#39;t tell me that, it just complains about something having to do with sizeof.</div><div>4) I figure out that I need hsc2hs installed, and i put cabal-install to use fetching it for me.</div>

<div>5) cabal-install fails because hsc2hs needs the process and directory packages, but they aren&#39;t exposed by the cabal file (at least in the version sitting on hackage, I assume this is the right one to use).</div>

<div>6) I give up on using cabal-install to get hsc2hs, so i download the targz for hsc2hs directly.</div><div>7) I fix the .cabal file to include process and directory</div><div>8) runhaskell Setup configure:</div><div>
<div>
<span style="font-style: italic;">&gt;runhaskell Setup configure</span></div><div><span style="font-style: italic;">Configuring hsc2hs-0.67.20061107...</span></div><div><span style="font-style: italic;">Warning: No &#39;build-type&#39; specified. If you do not need a custom Setup.hs or</span></div>

<div><span style="font-style: italic;">./configure script then use &#39;build-type: Simple&#39;.</span></div><div>9) runhaskell Setup build:</div><div><span style="font-style: italic;">Everything works fine.</span></div>

<div>10) runhaskell Setup install:</div><div><span style="font-style: italic;">Everything works fine.</span></div><div>11) Go back to try and install network-2.2.0.0 again with cabal-install.</div>
<div>12) Gets past the sizeof/hsc2hs errors, but then chokes on spaces in build path names:</div><div><div><span style="font-style: italic;">Preprocessing library network-2.2.0.0...</span></div><div>
<span style="font-style: italic;">gcc.exe: Files\Haskell\parsec-2.1.0.1\ghc-6.8.3: No such file or directory</span></div><div><span style="font-style: italic;">linking dist\build\Network\BSD_hsc_make.o failed</span></div>

<div><span style="font-style: italic;">command was: C:\ghc\ghc-6.8.3\gcc.exe -BC:\ghc\ghc-6.8.3\gcc-lib -IC:\ghc\ghc-6.8.3\include\mingw -LC:\Program Files\Haskell\parsec-2.1.0.1\ghc-6.8.3 -LC:\ghc\ghc-6.8.3/lib\base-3.0.2.0 -lwsock32 -lmsvcrt -lkernel32 -luser32 -lshell32 -LC:\ghc\ghc-6.8.3 -LC:\ghc\ghc-6.8.3/gcc-lib -lm -lgmp -lwsock32 dist\build\Network\BSD_hsc_make.o -o dist\build\Network\BSD_hsc_make.exe</span></div>

<div><span style="font-style: italic;">cabal: Error: some packages failed to install:</span></div><div><span style="font-style: italic;">network-2.2.0.0 failed during the building phase. The exception was:exit: ExitFailure 1</span></div>

<div>13) And this is where I finally gave up and came here.</div><div><br></div><div>Does any one have any insight into:</div><div>1) Why cabal doesn&#39;t check for hsc2hs during a configure</div><div>2) How I can rebuild network-2.2.0.0 on my Windows box without sacrificing a goat to Bill Gates/GHC Gods?</div>

<div><br></div><div>Thanks.</div></div><div><br></div>/jve<br>
</div>
</blockquote></div><br>