From e0e604aa9f7e90f9b30ecb042707705c88ec4c36 Mon Sep 17 00:00:00 2001 From: Joe Nelson Date: Mon, 16 Jan 2017 20:35:42 -0800 Subject: [PATCH] Fix install problems reported by @tnhu --- install.rst | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/install.rst b/install.rst index 22b9fbdde..34d0ae7ec 100644 --- a/install.rst +++ b/install.rst @@ -59,13 +59,14 @@ When a pre-built binary does not exist for your system you can build the project * `Install Stack `_ for your platform * Install Library Dependencies - ===================== ============================ + ===================== ======================================= Operating System Dependencies - ===================== ============================ - Ubuntu/Debian libpq-dev - CentOS/Fedora/Red Hat postgresql-devel, zlib-devel + ===================== ======================================= + Ubuntu/Debian libpq-dev, libgmp-dev + CentOS/Fedora/Red Hat postgresql-devel, zlib-devel, gmp-devel BSD postgresql95-server - ===================== ============================ + OS X postgresql, gmp + ===================== ======================================= * Build and install binary @@ -73,9 +74,10 @@ When a pre-built binary does not exist for your system you can build the project git clone https://github.com/begriffs/postgrest.git cd postgrest - stack build --install-ghc - sudo stack install --allow-different-user --local-bin-path /usr/local/bin - + + # adjust local-bin-path to taste + stack build --install-ghc --copy-bins --local-bin-path /usr/local/bin + .. note:: If building fails and your system has less than 1GB of memory, try adding a swap file.