Commit 5dbbd263 authored by Alan Marchiori's avatar Alan Marchiori

modified install script for Bucknell

parent 9a35ae07
......@@ -13,6 +13,9 @@
#
# February 2nd, 2018 - added generator-bootcamp
#
# Oct, 2018 - Modified for non sudo users.
# Alan Marchiori
#
# Aleksandar Pajkanovic
# aleksandar [dot] pajkanovic [at] gmail [dot] com
......@@ -26,22 +29,12 @@ echo " Welcome to the Chisel Learning Journey!
recommended OS for the Learning Journey. For details on how to prepare
the virtual machine, please visit:
https://github.com/Intensivate/learning-journey/wiki/Chisel-Environment
In case you are not running Mint nor any other Ubuntu-like OS, we
advise you to abort running this script.
First of all, the script will run tests to check whether
dependencies (git, make, autoconf, g++, flex and bison) are
installed. Each one that is missing will be installed.
https://github.com/Intensivate/learning-journey/wiki/Chisel-Environment
Furthermore, it will install Java, SBT and Verilator on your system,
setting all of them correctly.
This is modified from the offical script for the Bucknell riscv machine.
The script must be run with super user privileges, i.e. sudo
must come before \"./set-learning-journey\"
Please report issues to the e-mail given within the script header.
If you are setting this up on your own computer, use the official repo at:
https://github.com/Intensivate/learning-journey.git
"
......@@ -65,72 +58,14 @@ echo "export LJHOME=$PWD" >> /home/$current_user/.bashrc
echo "Home of Learning Journey set in \$LJHOME"
# Check for dependencies and install those that are missing
if [ `dpkg-query -l | grep make | wc -l` -eq 0 ]
then
echo "make not present, installing..."
apt-get install make
echo "make installed"
else
echo "make already present"
fi
if [ `dpkg-query -l | grep autoconf | wc -l` -eq 0 ]
then
echo "autoconf not present, installing..."
apt-get install autoconf
echo "autoconf installed"
else
echo "autoconf already present"
fi
if [ `dpkg-query -l | grep g++ | wc -l` -eq 0 ]
then
echo "g++ not present, installing..."
apt-get install g++
echo "g++ installed"
else
echo "g++ already present"
fi
if [ `dpkg-query -l | grep flex | wc -l` -eq 0 ]
then
echo "flex not present, installing..."
apt-get install flex
echo "flex installed"
else
echo "flex already present"
fi
if [ `dpkg-query -l | grep bison | wc -l` -eq 0 ]
then
echo "bison not present, installing..."
apt-get install bison
echo "bison installed"
else
echo "bison already present"
fi
# install Java:
apt-get install default-jdk
# install SBT:
echo "deb https://dl.bintray.com/sbt/debian /" | sudo tee -a /etc/apt/sources.list.d/sbt.list
apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 642AC823
apt-get update
apt-get install sbt
# install verilator:
git clone http://git.veripool.org/git/verilator
cd verilator
unset VERILATOR_ROOT
git pull
git checkout verilator_3_904
git checkout verilator_3_904
# Version 3.904 is dated May 30th, 2017, however Chisel3 has issues with
# more up-to-date versions. This is where the bug was reported and may be tracked:
# https://github.com/ucb-bar/chisel-tutorial/issues/111
......@@ -141,19 +76,9 @@ make install
cd $LJHOME
# install prerequisites for generator-bootcamp
if [ `dpkg-query -l | grep python | wc -l` -eq 0 ]
then
echo "python not present, installing..."
apt-get install python python3-pip python3-setuptools
echo "python installed"
else
echo "python already present"
fi
# installing jupyter
pip3 install --upgrade pip
pip3 install jupyter
#pip3 install --upgrade pip
#pip3 install jupyter
# installing jupyter-scala
git clone https://github.com/jupyter-scala/jupyter-scala.git
......@@ -169,17 +94,7 @@ cd $LJHOME
chown -R $current_user:$current_user $LJHOME
# Installations finished, just give some instructions
echo "
echo "
You are ready now to start walking the Chisel Learning Journey!
Please visit:
https://github.com/Intensivate/learning-journey/wiki/Setting-up-Chisel#testing-your-system
for instructions on how to test your system and to find out what is your first step.
Once you've passed through those Wiki pages, please run:
cd \$LJHOME/generator-bootcamp && jupyter notebook
"
"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment