-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathinstall-spatiocyte-mac.sh
executable file
·36 lines (36 loc) · 1.4 KB
/
install-spatiocyte-mac.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#!/bin/sh -x
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew doctor
brew prune
brew update
brew tap homebrew/python
brew install Caskroom/cask/xquartz
brew install wget automake autoconf libtool pkg-config gsl pygtk gcc boost-python --with-cxx numpy scipy matplotlib libav glibmm
wget https://bitbucket.org/pypa/setuptools/raw/bootstrap/ez_setup.py
sudo python ez_setup.py
rm ez_setup.py
sudo rm -rf setuptools*.zip
wget https://raw.github.com/pypa/pip/master/contrib/get-pip.py
sudo python get-pip.py
rm get-pip.py
sudo pip install ply
echo "alias blender=/Applications/Blender/blender.app/Contents/MacOS/blender" >> ~/.profile
echo "alias vlc=/Applications/VLC.app/Contents/MacOS/VLC" >> ~/.profile
echo "export PATH=\$HOME/root/bin:\$PATH" >> ~/.profile
echo "export LD_LIBRARY_PATH=\$HOME/root/lib:\$LD_LIBRARY_PATH" >> ~/.profile
echo "export PYTHONPATH=\$HOME/root/lib/python2.7/site-packages:\$PYTHONPATH" >> ~/.profile
echo "export PKG_CONFIG_PATH=/opt/X11/lib/pkgconfig" >> ~/.profile
echo "export ECELL3_DM_PATH=." >> ~/.profile
source ~/.profile
cd
mkdir wrk
cd wrk
git clone git://github.com/ecell/spatiocyte
cd spatiocyte
patch -N /usr/local/Cellar/glibmm/2.42.0/include/glibmm-2.4/glibmm.h mac_glibmm_h.diff
brew install homebrew/boneyard/gtkglextmm
./autogen.sh
./configure --prefix=$HOME/root
make -j4
make install
echo "Close and reopen this terminal before proceeding"