Last active
December 25, 2015 18:28
-
-
Save hupili/7020251 to your computer and use it in GitHub Desktop.
Super fast install: eval "$(curl -fsSL https://gist.github.com/hupili/7020251/raw/get-snsapi-cde.sh)"
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
#!/usr/bin/env sh | |
# Download SNSAPI's CDE (64bit) package and cd into the environment. | |
# Execute ./snsali.py.cde after that. | |
# More info.: https://github.com/hupili/snsapi/wiki/Installation | |
if [ `uname -m` == "x86_64" ]; then | |
wl="64" | |
else | |
wl="32" | |
fi | |
rm -f cde-package-latest.tar.gz | |
echo "start to download: http://snsapi.ie.cuhk.edu.hk/cde/$wl/cde-package-latest.tar.gz" | |
curl "http://snsapi.ie.cuhk.edu.hk/cde/$wl/cde-package-latest.tar.gz" > cde-package-latest.tar.gz | |
tar -zxvf cde-package-latest.tar.gz | |
cd cde-package/cde-root/home/hpl/snsapi | |
echo "========================" | |
echo "Successfully get SNSAPI" | |
echo "To start the command-line interface, type: ./snscli.py.cde" | |
echo "Have fun!" | |
#./snscli.py.cde |
This one-liner is only intended for quick initial trial of SNSAPI. For formal use, please follow the normal ways to install it, e.g. pip, Git.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It can not run on all platforms due to various problems of CDE. CDE is out of maintainence and you can try to debug according to their FAQ: http://www.pgbovine.net/cde/manual/faq.html
The VM of SageMath Cloud is free and very easy to use. The one-liner works well on it.