Skip to content

Instantly share code, notes, and snippets.

@dragonxlwang
Last active April 12, 2016 03:20
Show Gist options
  • Save dragonxlwang/1084bfed477c63190a47a0943d4190bd to your computer and use it in GitHub Desktop.
Save dragonxlwang/1084bfed477c63190a47a0943d4190bd to your computer and use it in GitHub Desktop.
timan-suite
sudo yum install cmake clang boost rubygems
gem install gist
chmod a+rx /usr/bin/gist
yum install curl-devel
# timan-install-git
## ==================================================
cd ~
yum groupinstall "Development Tools"
yum install gettext-devel openssl-devel perl-CPAN perl-devel zlib-devel curl-devel
# for gga git gui
sudo yum install xorg-x11-xauth
ver=2.8.0
curl -L https://github.com/git/git/archive/v$ver.tar.gz -o git-$ver.tar.gz
tar -zxf git-$ver.tar.gz
cd git-$ver
make configure
./configure --prefix=/usr/local
make all doc
make install install-doc install-html install-man install-info
make install
./git --version
# Install tmux on Centos release 6.5
## ==================================================
cd ~
# install deps
yum install gcc kernel-devel make ncurses-devel
# DOWNLOAD SOURCES FOR LIBEVENT AND MAKE AND INSTALL
curl -OL https://github.com/downloads/libevent/libevent/libevent-2.0.21-stable.tar.gz
tar -xvzf libevent-2.0.21-stable.tar.gz
cd libevent-2.0.21-stable
./configure --prefix=/usr/local
make
sudo make install
# DOWNLOAD SOURCES FOR TMUX AND MAKE AND INSTALL
cd ~
curl -OL https://github.com/tmux/tmux/releases/download/2.1/tmux-2.1.tar.gz
tar -xvzf tmux-2.1.tar.gz
cd tmux-2.1
LDFLAGS="-L/usr/local/lib -Wl,-rpath=/usr/local/lib" ./configure --prefix=/usr/local
make
sudo make install
# pkill tmux
# close your terminal window (flushes cached tmux executable)
# open new shell and check tmux version
tmux -V
# timan-install-python
## ==================================================
cd ~
wget -O /etc/yum.repos.d/slc6-devtoolset.repo http://linuxsoft.cern.ch/cern/devtoolset/slc6-devtoolset.repo
yum install devtoolset-2
source /opt/rh/devtoolset-2/enable
yum groupinstall "Development tools"
yum install zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline readline-devel
yum -y install python-devel openssl openssl-devel gcc sqlite-devel
[[ ! -e Python-2.7.11.tgz ]] && { wget --no-check-certificate https://www.python.org/ftp/python/2.7.11/Python-2.7.11.tgz; } || { rm -rf Python-2.7.11; }
tar -zxvf Python-2.7.11.tgz
cd Python-2.7.11
./configure --prefix=/usr/local --with-threads --enable-shared LDFLAGS="-Wl,--rpath=/usr/local/lib"
make
make install
cd ~
sudo -H /usr/local/bin/pip install --upgrade "ipython[all]"
sudo -H /usr/local/bin/pip install --upgrade numpy scipy matplotlib jupyter
sudo -H /usr/local/bin/pip install --upgrade basemap numba pillow pygame sympy nose
sudo -H /usr/local/bin/pip install --upgrade nltk
sudo -H /usr/local/bin/pip install --upgrade flake8 pep8 autopep8 yapf jedi psutil
cd ~
curl -fsSL https://bootstrap.pypa.io/get-pip.py | /usr/local/bin/python -
curl -fsSL https://bootstrap.pypa.io/ez_setup.py | /usr/local/bin/python -
echo "chmod -R a+rx /usr/local"
chmod -R a+rx /usr/local
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment