-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
v1 of MDX Erlang installer for Fedora
- Loading branch information
Showing
1 changed file
with
52 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
#!/bin/bash | ||
# ------------------------------------------------------------------ | ||
# [Vladyslav Piskunov] Erlang installer for Fedora | ||
# for Middlesex University 2015 | ||
# | ||
# ------------------------------------------------------------------ | ||
|
||
|
||
if [[ $EUID -ne 0 ]]; then | ||
echo "ERROR: This script must be run as root | ||
Please run 'sudo bash erlang.sh'!" 1>&2 | ||
echo '' | ||
exit 1 | ||
fi | ||
|
||
|
||
echo "Installing WGET..." | ||
echo "" | ||
yum install -y wget | ||
|
||
echo "Temporary directory is: ~/tmp-erlang" | ||
echo "" | ||
mkdir ~/tmp-erlang | ||
cd ~/tmp-erlang | ||
|
||
|
||
|
||
|
||
echo "Downloading Erlang..." | ||
#wget http://packages.erlang-solutions.com/erlang-solutions-1.0-1.noarch.rpm | ||
|
||
echo "########################## | ||
Installation in progress...!" | ||
#rpm -Uvh erlang-solutions-1.0-1.noarch.rpm | ||
yum install -y erlang | ||
cd ~/ | ||
rm -Rf ~/tmp-erlang | ||
echo "" | ||
|
||
echo "Cleaned up TMP successfully! All done!" | ||
echo " | ||
############################################ | ||
Try opening erlang by typing 'erl' | ||
############################################ | ||
Written by Vladyslav Piskunov © ([email protected]) | ||
for Middlesex University 2015 | ||
############################################" |