Opened 7 years ago

Closed 7 years ago

#5159 closed bug (invalid)

Can't install Happstack in Windows

Reported by: mcandre Owned by:
Priority: normal Milestone:
Component: Compiler Version: 7.0.3
Keywords: cabal install happstack cygwin mingw Cc:
Operating System: Windows Architecture: x86_64 (amd64)
Type of failure: None/Unknown Test Case:
Blocked By: Blocking:
Related Tickets: Differential Rev(s):
Wiki Page:

Description

Windows 7 Professional x64

During the failing install process, I see three popups about missing Cygwin dll's.

C:\>ghc --version
The Glorious Glasgow Haskell Compilation System, version 7.0.3
C:\>cabal --version
cabal-install version 0.10.2
using version 1.10.1.0 of the Cabal library
C:\>cabal install happstack
Resolving dependencies...
Configuring network-2.2.1.10...
expr: not found
sed: not found
C:\Program Files (x86)\OpenSSH\bin\sh.exe (4704): *** couldn't allocate cygwin h
eap, Win32 error 0, base 0x910000, top 0x912000, reserve_size 8192, allocsize 81
92, page_const 4096
C:\Program Files (x86)\OpenSSH\bin\sh.exe (4704): *** couldn't allocate cygwin h
eap, Win32 error 0, base 0x910000, top 0x912000, reserve_size 8192, allocsize 81
92, page_const 4096
    141 [main] sh 2708 sync_with_child: child 4704(0x110) died before initializa
tion with status code 0x1
   9834 [main] sh 2708 sync_with_child: *** child state waiting for longjmp
configure: Cannot fork: Resource temporarily unavailable
cabal: Error: some packages failed to install:
MissingH-1.1.0.3 depends on network-2.2.1.10 which failed to install.
happstack-6.0.0 depends on network-2.2.1.10 which failed to install.
happstack-ixset-6.0.1 depends on network-2.2.1.10 which failed to install.
happstack-server-6.0.3 depends on network-2.2.1.10 which failed to install.
happstack-state-6.0.0 depends on network-2.2.1.10 which failed to install.
happstack-util-6.0.0 depends on network-2.2.1.10 which failed to install.
hslogger-1.1.4 depends on network-2.2.1.10 which failed to install.
network-2.2.1.10 failed during the configure step. The exception was:
ExitFailure 2
network-bytestring-0.1.3.4 depends on network-2.2.1.10 which failed to
install.
sendfile-0.7.3 depends on network-2.2.1.10 which failed to install.

I'm worried that various Cygwin/MinGW programs I use are interfering with Haskell/Cabal:

Change History (1)

comment:1 Changed 7 years ago by fryguybob

Resolution: invalid
Status: newclosed

The network package builds with a ./configure script and requires the right setup to build. Because of this it is included in the Haskell Platform. The particular issue you are running into here isn't a GHC or Cabal problem. It looks like some of the constraints in happstack have not been updated to match the latest Haskell Platform release. Some comments in the cabal file seemed to indicate that hslogger depends on the earlier network version. The following might work for you (the last line by itself might work, but I didn't try it that way):

cabal install hslogger
cabal install happstack-server -fnetwork_2_2_3
cabal install happstack --constraint=network==2.3.0.2
Note: See TracTickets for help on using tickets.