From 6bd10b3fb3edb045fbae086bda97120c587f1f3b Mon Sep 17 00:00:00 2001 From: John Gardner Date: Wed, 22 Dec 2021 01:06:20 +1100 Subject: [PATCH] Fix a few typos and improve syntax highlighting --- CentOS6.md | 38 +++++++++++++++++++++++--------------- 1 file changed, 23 insertions(+), 15 deletions(-) diff --git a/CentOS6.md b/CentOS6.md index 1d404bb..56295b0 100644 --- a/CentOS6.md +++ b/CentOS6.md @@ -1,23 +1,31 @@ _Note: Haskell Platform v7.10.3 and v8.0.1 requires glibc v2.14 but CentOS 6 has v2.12 so be sure to download v7.10.2-a release from their [prior releases](https://www.haskell.org/platform/prior.html) page._ # Deps - yum groupinstall "Development Tools" -y - yum install gmp-devel # may need epel - sudo ln -s /usr/lib64/libgmp.so.3 /usr/lib64/libgmp.so.10 +```sh +yum groupinstall "Development Tools" -y +yum install gmp-devel # may need epel +sudo ln -s /usr/lib64/libgmp.so.3 /usr/lib64/libgmp.so.10 +``` # Get Haskell and build it #### Based on https://www.haskell.org/platform/linux.html#linux-generic - dir="$(mktemp -d)" - pushd "$dir" - wget https://haskell.org/platform/download/7.10.2/haskell-platform-7.10.2-a-unknown-linux-deb7.tar.gz - tar xvzf haskell-platform-7.10.2-a-unknown-linux-deb7.tar.gz - ./install-haskell-platform.sh - popd - rm -r "$dir" -# Install shellcheck - cabal update - cabal install shellcheck +```sh +dir="$(mktemp -d)" +pushd "$dir" +wget https://haskell.org/platform/download/7.10.2/haskell-platform-7.10.2-a-unknown-linux-deb7.tar.gz +tar xvzf haskell-platform-7.10.2-a-unknown-linux-deb7.tar.gz +./install-haskell-platform.sh +popd +rm -r "$dir" +``` + +# Install ShellCheck +```sh +cabal update +cabal install shellcheck +``` # Place it in a global directory - cp ~/.cabal/bin/shellcheck /usr/local/bin # portable to other el6 systems without Haskell - +```sh +cp ~/.cabal/bin/shellcheck /usr/local/bin # portable to other el6 systems without Haskell +```