Resolving dependencies... Configuring mtl-2.2.1... Configuring Win32-2.4.0.0... Building mtl-2.2.1... Configuring random-1.1... Failed to install Win32-2.4.0.0 Build log ( /home/builder/.cabal/logs/Win32-2.4.0.0.log ): cabal: Entering directory '/tmp/cabal-tmp-3485/Win32-2.4.0.0' Configuring Win32-2.4.0.0... cabal: Missing dependencies on foreign libraries: * Missing (or bad) header file: HsWin32.h * Missing C libraries: user32, gdi32, winmm, advapi32, shell32, shfolder, shlwapi This problem can usually be solved by installing the system packages that provide these libraries (you may need the "-dev" versions). If the libraries are already installed but in a non-standard location then you can use the flags --extra-include-dirs= and --extra-lib-dirs= to specify where they are. If the header file does exist, it may contain errors that are caught by the C compiler at the preprocessing stage. In this case you can re-run configure with the verbosity flag -v3 to see the error messages. cabal: Leaving directory '/tmp/cabal-tmp-3485/Win32-2.4.0.0' Building random-1.1... Configuring text-1.2.2.1... Installed random-1.1 Configuring vect-0.4.7... Installed mtl-2.2.1 Building text-1.2.2.1... Building vect-0.4.7... Installed vect-0.4.7 Configuring HGamer3D-Data-0.1.8... Building HGamer3D-Data-0.1.8... Installed text-1.2.2.1 Installed HGamer3D-Data-0.1.8 Configuring HGamer3D-SFML-Binding-0.1.8... Configuring HGamer3D-Ogre-Binding-0.1.8... Building HGamer3D-SFML-Binding-0.1.8... Building HGamer3D-Ogre-Binding-0.1.8... Installed HGamer3D-SFML-Binding-0.1.8 Installed HGamer3D-Ogre-Binding-0.1.8 cabal: Error: some packages failed to install: HGamer3D-0.1.8 depends on Win32-2.4.0.0 which failed to install. Win32-2.4.0.0 failed during the configure step. The exception was: ExitFailure 1