Installing pandoc without root

I am trying to install the Haskell libraries for pandoc on a local home folder and without root access, using the command: cabal install pandoc However, I run into the error: cabal: Missing dependency on a foreign library: * Missing (or bad) header file: zlib.h * Missing C library: z
From what I understand, I need to install zlib1g-dev. GHC and cabal install are available, but without root access I'm having trouble figuring out how to provide the necessary zlib files. I've tried to download the source of zlib1g-dev, but in order to compile it, I have to use "make" which I do not have the priviledge to invoke.
Can someone guide me through getting pandoc up and running without root access? The system is Debian 3.2.41-2 x86_64 GNU/Linux.

On 10 November 2013 23:14, Theo Moore
I am trying to install the Haskell libraries for pandoc on a local home folder and without root access, using the command:
cabal install pandoc
However, I run into the error: cabal: Missing dependency on a foreign library: * Missing (or bad) header file: zlib.h * Missing C library: z
From what I understand, I need to install zlib1g-dev. GHC and cabal install are available, but without root access I'm having trouble figuring out how to provide the necessary zlib files. I've tried to download the source of zlib1g-dev, but in order to compile it, I have to use "make" which I do not have the priviledge to invoke.
Can someone guide me through getting pandoc up and running without root access? The system is Debian 3.2.41-2 x86_64 GNU/Linux.
You should be able to configure, build and install the zlib library+headers into your own $HOME directory. One guide (that on a quick skim looks OK) is http://blog.sanctum.geek.nz/compiling-in-home/ (Whether it's possible to install just the header files of zlib is something I can't say.)
_______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
-- Ivan Lazar Miljenovic Ivan.Miljenovic@gmail.com http://IvanMiljenovic.wordpress.com

Ivan,
Thank you for that helpful link. Unfortunately, it does not look like
I have access to make. Is there a
workaround?
On Sun, Nov 10, 2013 at 12:34 PM, Ivan Lazar Miljenovic
On 10 November 2013 23:14, Theo Moore
wrote: I am trying to install the Haskell libraries for pandoc on a local home folder and without root access, using the command:
cabal install pandoc
However, I run into the error: cabal: Missing dependency on a foreign library: * Missing (or bad) header file: zlib.h * Missing C library: z
From what I understand, I need to install zlib1g-dev. GHC and cabal install are available, but without root access I'm having trouble figuring out how to provide the necessary zlib files. I've tried to download the source of zlib1g-dev, but in order to compile it, I have to use "make" which I do not have the priviledge to invoke.
Can someone guide me through getting pandoc up and running without root access? The system is Debian 3.2.41-2 x86_64 GNU/Linux.
You should be able to configure, build and install the zlib library+headers into your own $HOME directory. One guide (that on a quick skim looks OK) is http://blog.sanctum.geek.nz/compiling-in-home/
(Whether it's possible to install just the header files of zlib is something I can't say.)
_______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
-- Ivan Lazar Miljenovic Ivan.Miljenovic@gmail.com http://IvanMiljenovic.wordpress.com

On 11 November 2013 00:46, Theo Moore
Ivan,
Thank you for that helpful link. Unfortunately, it does not look like I have access to make. Is there a workaround?
As in "make isn't installed"? The only alternatives are to somehow install the pre-built binary as described by Simon, or else to somehow install Make first (either on its own or as some kind of prefix environment).
On Sun, Nov 10, 2013 at 12:34 PM, Ivan Lazar Miljenovic
wrote: On 10 November 2013 23:14, Theo Moore
wrote: I am trying to install the Haskell libraries for pandoc on a local home folder and without root access, using the command:
cabal install pandoc
However, I run into the error: cabal: Missing dependency on a foreign library: * Missing (or bad) header file: zlib.h * Missing C library: z
From what I understand, I need to install zlib1g-dev. GHC and cabal install are available, but without root access I'm having trouble figuring out how to provide the necessary zlib files. I've tried to download the source of zlib1g-dev, but in order to compile it, I have to use "make" which I do not have the priviledge to invoke.
Can someone guide me through getting pandoc up and running without root access? The system is Debian 3.2.41-2 x86_64 GNU/Linux.
You should be able to configure, build and install the zlib library+headers into your own $HOME directory. One guide (that on a quick skim looks OK) is http://blog.sanctum.geek.nz/compiling-in-home/
(Whether it's possible to install just the header files of zlib is something I can't say.)
_______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
-- Ivan Lazar Miljenovic Ivan.Miljenovic@gmail.com http://IvanMiljenovic.wordpress.com
-- Ivan Lazar Miljenovic Ivan.Miljenovic@gmail.com http://IvanMiljenovic.wordpress.com

Hi, Am Sonntag, den 10.11.2013, 12:14 +0000 schrieb Theo Moore:
From what I understand, I need to install zlib1g-dev.
installing stuff as non-root is a general problem, and not particularly related to Haskell (in fact, the problem is rather solved for Haskell). I’ve heard good things about using NixOS to install your own stuff as a user, and in your own home directory: http://nixos.org/ Greetings, Joachim -- Joachim “nomeata” Breitner mail@joachim-breitner.de • http://www.joachim-breitner.de/ Jabber: nomeata@joachim-breitner.de • GPG-Key: 0x4743206C Debian Developer: nomeata@debian.org

On 10 November 2013 23:36, Joachim Breitner
Hi,
Am Sonntag, den 10.11.2013, 12:14 +0000 schrieb Theo Moore:
From what I understand, I need to install zlib1g-dev.
installing stuff as non-root is a general problem, and not particularly related to Haskell (in fact, the problem is rather solved for Haskell).
I’ve heard good things about using NixOS to install your own stuff as a user, and in your own home directory: http://nixos.org/
Except I think you just use the nix package manager rather than the full-blown NixOS for that ;-) An alternative for that is gentoo-prefix: http://www.gentoo.org/proj/en/gentoo-alt/prefix/ Or, if you just have a few C libraries you want to install as a user, then GNU Stow can help managing them: http://www.gnu.org/software/stow/ (Any which way you go, of course, you'll probably need to start with installing the tools you need for it ;-)
Greetings, Joachim
-- Joachim “nomeata” Breitner mail@joachim-breitner.de • http://www.joachim-breitner.de/ Jabber: nomeata@joachim-breitner.de • GPG-Key: 0x4743206C Debian Developer: nomeata@debian.org
_______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
-- Ivan Lazar Miljenovic Ivan.Miljenovic@gmail.com http://IvanMiljenovic.wordpress.com

On 11/10/2013 01:14 PM, Theo Moore wrote:
Can someone guide me through getting pandoc up and running without root access? The system is Debian 3.2.41-2 x86_64 GNU/Linux.
A possible solution is to download the zlib1g-dev package, and unpack it somewhere, using the dpkg command. Then you can alter cabal configuration so that it looks for headers at the given place. You should not need the headers once the package is compiled, so you can safely remove them.
participants (4)
-
Ivan Lazar Miljenovic
-
Joachim Breitner
-
Simon Marechal
-
Theo Moore