arg sudo...
This commit is contained in:
parent
3f85e37cbf
commit
05806001b3
2 changed files with 6 additions and 4 deletions
|
@ -2,9 +2,11 @@ install-haskell
|
||||||
===============
|
===============
|
||||||
|
|
||||||
A script to install Haskell and minimize cabal hell.
|
A script to install Haskell and minimize cabal hell.
|
||||||
|
It might ask your password (you must be sudoer).
|
||||||
|
|
||||||
```
|
```
|
||||||
curl -O https://raw.githubusercontent.com/yogsototh/install-haskell/master/install-haskell.sh
|
curl -O https://raw.githubusercontent.com/yogsototh/install-haskell/master/install-haskell.sh
|
||||||
sudo ./install-haskell.sh
|
chmod ugo+x install-haskell.sh
|
||||||
|
./install-haskell.sh
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
@ -26,7 +26,7 @@ fi
|
||||||
echo "Installing GHC..."
|
echo "Installing GHC..."
|
||||||
tar xJf $ghctar
|
tar xJf $ghctar
|
||||||
cd ghc-${ghcversion}
|
cd ghc-${ghcversion}
|
||||||
./configure && make install
|
./configure && sudo make install
|
||||||
|
|
||||||
cd $tmpdir
|
cd $tmpdir
|
||||||
echo "Downloading cabal..."
|
echo "Downloading cabal..."
|
||||||
|
@ -40,9 +40,9 @@ fi
|
||||||
tar xzf $cabaltar
|
tar xzf $cabaltar
|
||||||
echo "Installing cabal..."
|
echo "Installing cabal..."
|
||||||
if [[ -e ./cabal ]]; then
|
if [[ -e ./cabal ]]; then
|
||||||
mv cabal /usr/local/bin
|
sudo mv cabal /usr/local/bin
|
||||||
else
|
else
|
||||||
mv ./dist/build/cabal/cabal /usr/local/bin
|
sudo mv ./dist/build/cabal/cabal /usr/local/bin
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "Init cabal..."
|
echo "Init cabal..."
|
||||||
|
|
Loading…
Reference in a new issue