
I am using the Haskell Libzip package [ http://hackage.haskell.org/package/LibZip] to unzip a password protected file. This works great in OSX but I now need to build the application using this package for Windows. I have not been able to figure out how to get libzip [ http://www.nih.at/libzip/index.html] installed under windows so that cabal can install the package. I don't seem to be able to find a compiled binary anywhere. Can anyone help? Thanks Riaan

On Tue, 01 Oct 2013 11:10:18 +0200, Riaan
I have not been able to figure out how to get libzip [ http://www.nih.at/libzip/index.html] installed under windows so that cabal can install the package.
I don't seem to be able to find a compiled binary anywhere. Can anyone help?
You will have to compile the C package yourself, using MinGW (see the HaskellWiki page for Windows[0]). Start the MinGW shell with command 'sh' and follow the instructions in the file INSTALL. Regards, Henk-Jan van Tuyl [0] http://www.haskell.org/haskellwiki/Windows#Tools_for_compilation -- Folding@home What if you could share your unused computer power to help find a cure? In just 5 minutes you can join the world's biggest networked computer and get us closer sooner. Watch the video. http://folding.stanford.edu/ http://Van.Tuyl.eu/ http://members.chello.nl/hjgtuyl/tourdemonad.html Haskell programming --

Thank you for the advice - I got libzip compiled using MinGW but now I am
struggling to get cabal to find it, it seems that pkg-config can't detect
it. I have it in the default locations: /usr/local/include and
/usr/local/lib inside the MinGW shell.
Any suggestions?
On Tue, Oct 1, 2013 at 9:43 PM, Henk-Jan van Tuyl
On Tue, 01 Oct 2013 11:10:18 +0200, Riaan
wrote: I have not been able to figure out how to get libzip [
http://www.nih.at/libzip/**index.htmlhttp://www.nih.at/libzip/index.html] installed under windows so that cabal can install the package.
I don't seem to be able to find a compiled binary anywhere. Can anyone help?
You will have to compile the C package yourself, using MinGW (see the HaskellWiki page for Windows[0]). Start the MinGW shell with command 'sh' and follow the instructions in the file INSTALL.
Regards, Henk-Jan van Tuyl
[0] http://www.haskell.org/**haskellwiki/Windows#Tools_for_**compilationhttp://www.haskell.org/haskellwiki/Windows#Tools_for_compilation
-- Folding@home What if you could share your unused computer power to help find a cure? In just 5 minutes you can join the world's biggest networked computer and get us closer sooner. Watch the video. http://folding.stanford.edu/
http://Van.Tuyl.eu/ http://members.chello.nl/**hjgtuyl/tourdemonad.htmlhttp://members.chello.nl/hjgtuyl/tourdemonad.html Haskell programming --

Don't worry. I found the problem. After installing LibZip I needed to set
PKG_CONFIG_PATH to point to /usr/local/lib/pkgconfib.
All good now, thank you for the help
On Wed, Oct 2, 2013 at 1:26 PM, Riaan
Thank you for the advice - I got libzip compiled using MinGW but now I am struggling to get cabal to find it, it seems that pkg-config can't detect it. I have it in the default locations: /usr/local/include and /usr/local/lib inside the MinGW shell.
Any suggestions?
On Tue, Oct 1, 2013 at 9:43 PM, Henk-Jan van Tuyl
wrote: On Tue, 01 Oct 2013 11:10:18 +0200, Riaan
wrote: I have not been able to figure out how to get libzip [
http://www.nih.at/libzip/**index.htmlhttp://www.nih.at/libzip/index.html] installed under windows so that cabal can install the package.
I don't seem to be able to find a compiled binary anywhere. Can anyone help?
You will have to compile the C package yourself, using MinGW (see the HaskellWiki page for Windows[0]). Start the MinGW shell with command 'sh' and follow the instructions in the file INSTALL.
Regards, Henk-Jan van Tuyl
[0] http://www.haskell.org/**haskellwiki/Windows#Tools_for_**compilationhttp://www.haskell.org/haskellwiki/Windows#Tools_for_compilation
-- Folding@home What if you could share your unused computer power to help find a cure? In just 5 minutes you can join the world's biggest networked computer and get us closer sooner. Watch the video. http://folding.stanford.edu/
http://Van.Tuyl.eu/ http://members.chello.nl/**hjgtuyl/tourdemonad.htmlhttp://members.chello.nl/hjgtuyl/tourdemonad.html Haskell programming --
participants (2)
-
Henk-Jan van Tuyl
-
Riaan