Last active
September 21, 2015 17:01
-
-
Save bollu/09288f5d5e4f25c037ee to your computer and use it in GitHub Desktop.
Install script for sandhi
This file contains hidden or 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
| #!/usr/bin/env bash | |
| # automatically abort if any command fails | |
| set -e | |
| echo "This script assumes superuser privileges. You might have to run this script with sudo" | |
| echo "Installing dependencies required by sandhi..." | |
| apt-get update | |
| apt-get -y install git git-core autoconf automake make libtool g++ python-dev swig \ | |
| pkg-config libboost1.48-all-dev libfftw3-dev libcppunit-dev libgsl0-dev \ | |
| libusb-dev sdcc libsdl1.2-dev python-wxgtk2.8 python-numpy \ | |
| python-cheetah python-lxml doxygen python-qt4 python-qwt5-qt4 libxi-dev \ | |
| libqt4-opengl-dev libqwt5-qt4-dev libfontconfig1-dev libxrender-dev \ | |
| python-serial python-matplotlib cmake | |
| echo "dependencies installed" | |
| echo "Starting Sciscipy installation..." | |
| echo "Cloning Sciscipy..." | |
| git clone https://github.com/manojgudi/sciscipy-1.0.0.git | |
| echo "Sciscipy successfully cloned" | |
| cd sciscipy-1.0.0/ | |
| echo "Installing Sciscipy..." | |
| ./install | |
| echo "Sciscipy successfully installed" | |
| echo "Starting Sandhi installation..." | |
| cd ../ | |
| git clone http://github.com/manojgudi/sandhi.git | |
| cd sandhi/ | |
| git submodule init | |
| git submodule update | |
| git pull origin master | |
| git submodule update | |
| echo "Sandhi successfully cloned" | |
| echo "Building Sandhi..." | |
| mkdir build | |
| cd build/ | |
| cmake ../ | |
| make -j 2 | |
| echo "Sandhi successfully built" | |
| echo "Installing Sandhi..." | |
| make install | |
| ldconfig | |
| echo "Sandhi successfully installed" | |
| echo "Sandhi installation complete. Go to the command line and type sandhi to start Sandhi" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment