Can't install and use Cabal (Haskell) on CentOS Server - zlib-0.5.4.1 failed during the building phase -


i'm trying install haskell server runs in cabal on server. when configure server run this, follow these instructions we've refined - work 100% every time on blank rackspace cloud server.

yum update yum install git yum install vim yum install ghc-zlib-devel.x86_64 wget http://www.haskell.org/ghc/dist/7.8.2/ghc-7.8.2-x86_64-unknown-linux-centos65.tar.xz wget http://www.haskell.org/cabal/release/cabal-install-1.20.0.1/cabal-x86_64-unknown-linux.tar.gz tar xvfj ghc-7.8.2-x86_64-unknown-linux-centos65.tar.xz tar -zxvf cabal-x86_64-unknown-linux.tar.gz cd ghc-7.8.2 ./configure yum install gcc ./configure make install cd ../ git clone https://github.com/samheather/dsa-waw.git cd dsa-waw/server cp -r ../../cabal cabal ./cabal update ./cabal install cabal-install ./cabal sandbox init cabal install 

i can navigate output folder , run server.

however, on dedicated server iweb, not work. first majority of steps fine, until gets './cabal install cabal-install', throws following errors:

./cabal install cabal-install resolving dependencies... configuring network-2.5.0.0... configuring zlib-0.5.4.1... configuring cabal-1.20.0.1... building zlib-0.5.4.1... failed install zlib-0.5.4.1 last 10 lines of build log ( /root/.cabal/logs/zlib-0.5.4.1.log ): configuring zlib-0.5.4.1... building zlib-0.5.4.1... preprocessing library zlib-0.5.4.1... hsc2hs: dist/build/codec/compression/zlib/stream_hsc_make: runprocess: runinteractiveprocess: exec: permission denied (permission denied) failed install network-2.5.0.0 last 10 lines of build log ( /root/.cabal/logs/network-2.5.0.0.log ): checking build system type... x86_64-unknown-linux-gnu checking host system type... x86_64-unknown-linux-gnu checking gcc... gcc checking whether c compiler works... yes checking c compiler default output file name... a.out checking suffix of executables...  checking whether cross compiling... configure: error: in `/tmp/network-2.5.0.0-4813/network-2.5.0.0': configure: error: cannot run c compiled programs. if meant cross compile, use `--host'. see `config.log' more details failed install cabal-1.20.0.1 last 10 lines of build log ( /root/.cabal/logs/cabal-1.20.0.1.log ): [68 of 76] compiling distribution.simple.build ( /tmp/cabal-1.20.0.1-4813/cabal-1.20.0.1/distribution/simple/build.hs, /tmp/cabal-1.20.0.1-4813/cabal-1.20.0.1/dist/setup/distribution/simple/build.o ) [69 of 76] compiling distribution.simple.haddock ( /tmp/cabal-1.20.0.1-4813/cabal-1.20.0.1/distribution/simple/haddock.hs, /tmp/cabal-1.20.0.1-4813/cabal-1.20.0.1/dist/setup/distribution/simple/haddock.o ) [70 of 76] compiling distribution.simple.srcdist ( /tmp/cabal-1.20.0.1-4813/cabal-1.20.0.1/distribution/simple/srcdist.hs, /tmp/cabal-1.20.0.1-4813/cabal-1.20.0.1/dist/setup/distribution/simple/srcdist.o ) [71 of 76] compiling distribution.simple.userhooks ( /tmp/cabal-1.20.0.1-4813/cabal-1.20.0.1/distribution/simple/userhooks.hs, /tmp/cabal-1.20.0.1-4813/cabal-1.20.0.1/dist/setup/distribution/simple/userhooks.o ) [72 of 76] compiling distribution.simple.bench ( /tmp/cabal-1.20.0.1-4813/cabal-1.20.0.1/distribution/simple/bench.hs, /tmp/cabal-1.20.0.1-4813/cabal-1.20.0.1/dist/setup/distribution/simple/bench.o ) [73 of 76] compiling distribution.simple.test.exev10 ( /tmp/cabal-1.20.0.1-4813/cabal-1.20.0.1/distribution/simple/test/exev10.hs, /tmp/cabal-1.20.0.1-4813/cabal-1.20.0.1/dist/setup/distribution/simple/test/exev10.o ) [74 of 76] compiling distribution.simple.test ( /tmp/cabal-1.20.0.1-4813/cabal-1.20.0.1/distribution/simple/test.hs, /tmp/cabal-1.20.0.1-4813/cabal-1.20.0.1/dist/setup/distribution/simple/test.o ) [75 of 76] compiling distribution.simple ( /tmp/cabal-1.20.0.1-4813/cabal-1.20.0.1/distribution/simple.hs, /tmp/cabal-1.20.0.1-4813/cabal-1.20.0.1/dist/setup/distribution/simple.o ) [76 of 76] compiling main             ( /tmp/cabal-1.20.0.1-4813/cabal-1.20.0.1/dist/setup/setup.hs, /tmp/cabal-1.20.0.1-4813/cabal-1.20.0.1/dist/setup/main.o ) linking /tmp/cabal-1.20.0.1-4813/cabal-1.20.0.1/dist/setup/setup ... cabal: error: packages failed install: cabal-1.20.0.1 failed during configure step. exception was: exitfailure 127 http-4000.2.17 depends on network-2.5.0.0 failed install. cabal-install-1.20.0.3 depends on cabal-1.20.0.1 failed install. network-2.5.0.0 failed during configure step. exception was: exitfailure 1 zlib-0.5.4.1 failed during building phase. exception was: exitfailure 1 

does have idea going wrong this?

thanks,

sam

update: should mention since server has gcc skip these 2 steps: "yum install gcc; ./configure"

install zlib1g-dev package before.


Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

Python ctypes access violation with const pointer arguments -