{"action":"created","issue":{"url":"https://api.github.com/repos/begriffs/postgrest/issues/285","labels_url":"https://api.github.com/repos/begriffs/postgrest/issues/285/labels{/name}","comments_url":"https://api.github.com/repos/begriffs/postgrest/issues/285/comments","events_url":"https://api.github.com/repos/begriffs/postgrest/issues/285/events","html_url":"https://github.com/begriffs/postgrest/issues/285","id":106189540,"number":285,"title":"Support Enterprise Linux 6","user":{"login":"mc-soi","id":14082111,"avatar_url":"https://avatars.githubusercontent.com/u/14082111?v=3","gravatar_id":"","url":"https://api.github.com/users/mc-soi","html_url":"https://github.com/mc-soi","followers_url":"https://api.github.com/users/mc-soi/followers","following_url":"https://api.github.com/users/mc-soi/following{/other_user}","gists_url":"https://api.github.com/users/mc-soi/gists{/gist_id}","starred_url":"https://api.github.com/users/mc-soi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mc-soi/subscriptions","organizations_url":"https://api.github.com/users/mc-soi/orgs","repos_url":"https://api.github.com/users/mc-soi/repos","events_url":"https://api.github.com/users/mc-soi/events{/privacy}","received_events_url":"https://api.github.com/users/mc-soi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-09-12T22:57:59Z","updated_at":"2015-09-13T02:47:07Z","closed_at":null,"body":"The binary does not work on Scientific Linux 6.  Please support SL, CentOS, or RHEL 6 by providing build and install instructions or a rpm.\r\n\r\nThere are problems with:\r\n1) The binary provided.\r\n2) Building from the distribution's version of Haskell.\r\n3) Building the latest version of Haskell.\r\n4) Installing Stack with GHC 7.6\r\n\r\n1) The binary errors out with:\r\nerror while loading shared libraries: libgmp.so.10: cannot open shared object file: No such file or directory\r\n\r\n2) The build (using packages from EPEL) fails with:\r\ncabal install postgrest.cabal\r\nWarning: The package list for 'hackage.haskell.org' does not exist. Run 'cabal\r\nupdate' to download it.\r\nResolving dependencies...\r\ncabal: cannot configure postgrest-0.2.11.1. It requires MissingH -any,\r\nRanged-sets -any, aeson >=0.8, base >=4.6 && <5, base64-string -any, bcrypt\r\n>=0.0.6, blaze-builder -any, case-insensitive -any, cassava -any, convertible\r\n-any, hasql >=0.7.3 && <0.8, hasql-backend >=0.4.1 && <0.5, hasql-postgres\r\n>=0.10.4 && <0.11, http-types -any, jwt -any, network >=2.6, network-uri\r\n>=2.6, optparse-applicative ==0.11.*, regex-tdfa -any, resource-pool -any,\r\nscientific -any, split -any, string-conversions -any, stringsearch -any,\r\nunordered-containers -any, vector -any, wai >=3.0.1, wai-cors -any, wai-extra\r\n-any, wai-middleware-static >=0.6.0 and warp >=3.0.2\r\n\r\ncabal install --constraint 'mono-traversable >= 0.9' stack\r\nResolving dependencies...\r\ncabal: cannot configure stack-0.1.4.1. It requires base >=4.7 && <5\r\nFor the dependency on base >=4.7 && <5 there are these packages: base-4.7.0.0,\r\nbase-4.7.0.1, base-4.7.0.2, base-4.8.0.0 and base-4.8.1.0. However none of\r\nthem are available.\r\nbase-4.7.0.0 was excluded because of the top level dependency base -any\r\nbase-4.7.0.1 was excluded because of the top level dependency base -any\r\nbase-4.7.0.2 was excluded because of the top level dependency base -any\r\nbase-4.8.0.0 was excluded because of the top level dependency base -any\r\nbase-4.8.1.0 was excluded because of the top level dependency base -any\r\n\r\nyum list installed | grep haskell\r\nghc-haskell-platform-devel.x86_64     2011.4.0.0-6.el6         @epel\r\nghc-haskell-src.x86_64                1.0.1.4-10.el6           @epel\r\nghc-haskell-src-devel.x86_64          1.0.1.4-10.el6           @epel\r\nghc-haskell2010.x86_64                1.0.0.0-46.el6           @epel\r\nghc-haskell2010-devel.x86_64          1.0.0.0-46.el6           @epel\r\nghc-haskell98.x86_64                  1.1.0.1-46.el6           @epel\r\nghc-haskell98-devel.x86_64            1.1.0.1-46.el6           @epel\r\nghc-template-haskell.x86_64           2.5.0.0-46.el6           @epel\r\nghc-template-haskell-devel.x86_64     2.5.0.0-46.el6           @epel\r\nhaskell-platform.x86_64               2011.4.0.0-6.el6         @epel\r\n\r\n3) Building with Haskell fails with due to ambiguous variables / name space collisions.\r\nhttps://www.madboa.com/blog/2014/10/07/haskell-platform-centos-6/\r\nModified script to use more recent versions due to failures with older versions:\r\nHPVER=\"2014.2.0.0\"\r\nGHCVER=\"7.8.4\"\r\nCVER=\"1.22.4.0\"\r\nCIVER=\"1.22.6.0\"\r\n\r\nI fixed one name space collision in Win.hs and got another:\r\n\r\n[25 of 28] Compiling GhcDist          ( src/GhcDist.hs, dist/build/hptool/hptool-tmp/GhcDist.o )\r\n\r\nsrc/GhcDist.hs:104:38:\r\n    No instance for (CmdString t0) arising from a use of ‘command’\r\n    The type variable ‘t0’ is ambiguous\r\n    Note: there are several potential instances:\r\n      instance CmdString () -- Defined in ‘Development.Shake.Command’\r\n      instance CmdString Data.ByteString.Lazy.Internal.ByteString\r\n        -- Defined in ‘Development.Shake.Command’\r\n      instance CmdString Data.ByteString.Internal.ByteString\r\n        -- Defined in ‘Development.Shake.Command’\r\n      ...plus one other\r\n\r\n4) Installing Haskell with GHC 7.6 failed to install stack:\r\nhttps://gist.github.com/shangaslammi/7672315\r\n\r\ncabal install stack\r\nWarning:~/.cabal/config: Unrecognized stanza on line 80\r\nResolving dependencies...\r\ncabal: Could not resolve dependencies:\r\ntrying: stack-0.1.4.1 (user goal)\r\nnext goal: base (dependency of stack-0.1.4.1)\r\nrejecting: base-4.6.0.1/installed-8aa... (conflict: stack => base>=4.7 && <5)\r\nrejecting: base-4.8.1.0, 4.8.0.0, 4.7.0.2, 4.7.0.1, 4.7.0.0, 4.6.0.1, 4.6.0.0,\r\n4.5.1.0, 4.5.0.0, 4.4.1.0, 4.4.0.0, 4.3.1.0, 4.3.0.0, 4.2.0.2, 4.2.0.1,\r\n4.2.0.0, 4.1.0.0, 4.0.0.0, 3.0.3.2, 3.0.3.1 (global constraint requires\r\ninstalled instance)\r\nDependency tree exhaustively searched.\r\n\r\nIf you will not support EL 6, please document the minimum requirements correctly.  Enterprise users do not use software that abandons all but the latest platform release."},"comment":{"url":"https://api.github.com/repos/begriffs/postgrest/issues/comments/139840518","html_url":"https://github.com/begriffs/postgrest/issues/285#issuecomment-139840518","issue_url":"https://api.github.com/repos/begriffs/postgrest/issues/285","id":139840518,"user":{"login":"begriffs","id":911911,"avatar_url":"https://avatars.githubusercontent.com/u/911911?v=3","gravatar_id":"","url":"https://api.github.com/users/begriffs","html_url":"https://github.com/begriffs","followers_url":"https://api.github.com/users/begriffs/followers","following_url":"https://api.github.com/users/begriffs/following{/other_user}","gists_url":"https://api.github.com/users/begriffs/gists{/gist_id}","starred_url":"https://api.github.com/users/begriffs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/begriffs/subscriptions","organizations_url":"https://api.github.com/users/begriffs/orgs","repos_url":"https://api.github.com/users/begriffs/repos","events_url":"https://api.github.com/users/begriffs/events{/privacy}","received_events_url":"https://api.github.com/users/begriffs/received_events","type":"User","site_admin":false},"created_at":"2015-09-13T02:47:07Z","updated_at":"2015-09-13T02:47:07Z","body":"I think you can install Stack directly rather than trying to use cabal to install it:\r\n\r\nhttps://github.com/commercialhaskell/stack/wiki/Downloads#centos--red-hat--amazon-linux"}}