mirror of
https://github.com/koalaman/shellcheck.git
synced 2025-10-03 19:29:44 +08:00
Fix a few typos and improve syntax highlighting
12
CentOS6.md
12
CentOS6.md
@@ -1,12 +1,15 @@
|
|||||||
_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._
|
_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
|
# Deps
|
||||||
|
```sh
|
||||||
yum groupinstall "Development Tools" -y
|
yum groupinstall "Development Tools" -y
|
||||||
yum install gmp-devel # may need epel
|
yum install gmp-devel # may need epel
|
||||||
sudo ln -s /usr/lib64/libgmp.so.3 /usr/lib64/libgmp.so.10
|
sudo ln -s /usr/lib64/libgmp.so.3 /usr/lib64/libgmp.so.10
|
||||||
|
```
|
||||||
|
|
||||||
# Get Haskell and build it
|
# Get Haskell and build it
|
||||||
#### Based on https://www.haskell.org/platform/linux.html#linux-generic
|
#### Based on https://www.haskell.org/platform/linux.html#linux-generic
|
||||||
|
```sh
|
||||||
dir="$(mktemp -d)"
|
dir="$(mktemp -d)"
|
||||||
pushd "$dir"
|
pushd "$dir"
|
||||||
wget https://haskell.org/platform/download/7.10.2/haskell-platform-7.10.2-a-unknown-linux-deb7.tar.gz
|
wget https://haskell.org/platform/download/7.10.2/haskell-platform-7.10.2-a-unknown-linux-deb7.tar.gz
|
||||||
@@ -14,10 +17,15 @@ _Note: Haskell Platform v7.10.3 and v8.0.1 requires glibc v2.14 but CentOS 6 has
|
|||||||
./install-haskell-platform.sh
|
./install-haskell-platform.sh
|
||||||
popd
|
popd
|
||||||
rm -r "$dir"
|
rm -r "$dir"
|
||||||
# Install shellcheck
|
```
|
||||||
|
|
||||||
|
# Install ShellCheck
|
||||||
|
```sh
|
||||||
cabal update
|
cabal update
|
||||||
cabal install shellcheck
|
cabal install shellcheck
|
||||||
|
```
|
||||||
|
|
||||||
# Place it in a global directory
|
# Place it in a global directory
|
||||||
|
```sh
|
||||||
cp ~/.cabal/bin/shellcheck /usr/local/bin # portable to other el6 systems without Haskell
|
cp ~/.cabal/bin/shellcheck /usr/local/bin # portable to other el6 systems without Haskell
|
||||||
|
```
|
||||||
|
Reference in New Issue
Block a user