Install cabal-install without root

I'm trying to bootstrap cabal-install on a shared system where I don't have root access. It got stuck on: Linking Setup ... Configuring zlib-0.5.4.0... Setup: Missing dependency on a foreign library: * Missing (or bad) header file: zlib.h * Missing C library: z This problem can usually be solved by installing the system package that provides this library (you may need the "-dev" version). If the library is already installed but in a non-standard location then you can use the flags --extra-include-dirs= and --extra-lib-dirs= to specify where it is. So I unpacked zlib-dev into my home dir, and pointed $LIBRARY_PATH to it, but I'm still getting the same error. Do I need to modify the .cabal file for every package that I'm trying to install, or is there some way of telling it globally where to find libraries on non-standard paths? -- View this message in context: http://haskell.1045720.n5.nabble.com/Install-cabal-install-without-root-tp57... Sent from the Haskell - Libraries mailing list archive at Nabble.com.

On Thu, 25 Jul 2013, harry wrote:
So I unpacked zlib-dev into my home dir, and pointed $LIBRARY_PATH to it, but I'm still getting the same error. Do I need to modify the .cabal file for every package that I'm trying to install, or is there some way of telling it globally where to find libraries on non-standard paths?
The library is not the problem. Cabal must find the include files. I think you can use the --extra-include-dirs option.

Henning Thielemann wrote
The library is not the problem. Cabal must find the include files. I think you can use the --extra-include-dirs option.
Where should I put the flag? (I don't have cabal install installed yet, I'm trying to bootstrap it.) I added it to EXTRA_CONFIGURE_OPTS, but this doesn't seem to have helped. -- View this message in context: http://haskell.1045720.n5.nabble.com/Install-cabal-install-without-root-tp57... Sent from the Haskell - Libraries mailing list archive at Nabble.com.

I take that back - it was the library that it couldn't find after your suggestion, the header was actually OK, and I've fixed the library path. Thanks! -- View this message in context: http://haskell.1045720.n5.nabble.com/Install-cabal-install-without-root-tp57... Sent from the Haskell - Libraries mailing list archive at Nabble.com.
participants (2)
-
harry
-
Henning Thielemann