Loading set-learning-journey.sh +12 −97 Original line number Diff line number Diff line Loading @@ -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 Loading @@ -28,20 +31,10 @@ echo " Welcome to the Chisel Learning Journey! 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. 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 " Loading @@ -65,66 +58,8 @@ 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 Loading @@ -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 Loading @@ -172,14 +97,4 @@ chown -R $current_user:$current_user $LJHOME 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 " Loading
set-learning-journey.sh +12 −97 Original line number Diff line number Diff line Loading @@ -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 Loading @@ -28,20 +31,10 @@ echo " Welcome to the Chisel Learning Journey! 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. 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 " Loading @@ -65,66 +58,8 @@ 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 Loading @@ -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 Loading @@ -172,14 +97,4 @@ chown -R $current_user:$current_user $LJHOME 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 "