Skip to content

Commit

Permalink
Update install_apple_first.igui
Browse files Browse the repository at this point in the history
  • Loading branch information
mjoppich committed May 14, 2019
1 parent e766ceb commit f1c27c3
Showing 1 changed file with 21 additions and 18 deletions.
39 changes: 21 additions & 18 deletions install_templates/install_apple_first.igui
Original file line number Diff line number Diff line change
Expand Up @@ -7,29 +7,32 @@ if [ "$(uname)" == "Darwin" ]; then
echo "Dependencies: pip "
if [ ! "$2" = "" ]; then

echo "Installing dependencies"
echo $2 | sudo -S easy_install pip

HASBREW=`which brew`

if [ -z "$HASBREW" ]
HASPORTS=`which port`
if [ -z "$HASPORTS" ]
then
echo "Must install brew"
cd ~

echo "Installing brew to ~/.linuxbrew/Homebrew"
git clone https://github.com/Homebrew/brew ~/.linuxbrew/Homebrew
mkdir ~/.linuxbrew/bin
ln -s ../Homebrew/bin/brew ~/.linuxbrew/bin
eval $(~/.linuxbrew/bin/brew shellenv)
(>&2 echo "PLEASE INSTALL MACPORTS FIRST")
(>&2 echo "YOU CAN DOWNLOAD MACPORTS FROM")
(>&2 echo "")
(>&2 echo "https://www.macports.org/")
(>&2 echo "")
else
echo "Found brew $HASBREW"
fi

echo "Installing dependencies: Mac pip, python36, pip36 as python3 and pip3"
echo $2 | sudo -S easy_install pip

echo "Installing wget and netcat and python3"
brew install wget netcat python3
echo $2 | sudo -S port -N install python36
echo $2 | sudo port select --set python3 python36

echo $2 | sudo -S port -N install py36-pip
echo $2 | sudo -S port select --set pip3 pip36

echo $2 | sudo -S port -N install wget gcc8

echo "Enjoy bioGUI!"

fi


else
echo "No sudo password, not installing dependencies"
echo "bioGUI might not be operational!"
Expand Down

0 comments on commit f1c27c3

Please sign in to comment.