-
Notifications
You must be signed in to change notification settings - Fork 7
/
install_dependencies.sh
executable file
·91 lines (63 loc) · 1.72 KB
/
install_dependencies.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
#!/bin/bash
export ENV_ROOT="${TRAVIS_BUILD_DIR}/NewEnv"
export ENV_TMP="${TRAVIS_BUILD_DIR}/tmp"
if [ -z "$ENV_ROOT" ]; then
export ENV_ROOT=`realpath ..`/root
fi
if [ ! -d "$ENV_ROOT" ]; then
mkdir -p $ENV_ROOT
fi
if [ -z "$ENV_TMP" ]; then
export ENV_TMP=`realpath ..`/tmp
fi
if [ ! -d "$ENV_TMP" ]; then
mkdir -p $ENV_TMP
fi
rm -rf $ENV_TMP/*
# ----------------------------------------------------------
#
# cmake installation
#
pushd $ENV_TMP
wget https://cmake.org/files/v3.8/cmake-3.8.0-rc1.tar.gz
tar xfz cmake-3.8.0-rc1.tar.gz
pushd cmake-3.8.0-rc1
./configure --prefix=${ENV_ROOT}
make install
popd
popd
pushd $ENV_ROOT
git clone https://github.com/pybind/pybind11.git
pushd pybind11
python setup.py install --single-version-externally-managed --root=~/virtualenv/python3.6
#cp -fr ./include/pybind11 $ENV_ROOT/include/
#cp -fr ./include/pybind11~/virtualenv/python3.6/include/python3.6m
#cp -fr ./include/pybind11 $PYTHONPATH/include/python3.6m
#sudo cp -fr ./include/pybind11 $PYTHONPATH/include/python3.6m
sudo cp -fr ./include/pybind11 /opt/python/3.6.0/include/python3.6m
popd
popd
# ----------------------------------------------------------
#
# Installing basic environment
#
shopt -s nullglob
#################gsl
pushd $ENV_TMP
wget ftp://ftp.gnu.org/gnu/gsl/gsl-2.6.tar.gz
tar xzf gsl-2.6.tar.gz
cd gsl-2.6
./configure --prefix=${ENV_ROOT}
make -j7
make install
#########Frame
pushd $ENV_TMP
wget http://lappweb.in2p3.fr/virgo/FrameL/libframe-8.30.tar.gz
tar xfz libframe-8.30.tar.gz
cd libframe-8.30
./configure --prefix=${ENV_ROOT}
make VERBOSE=0
make install
cp -fr ./src/Fr*.h ${ENV_ROOT}/include
export PATH=${ENV_ROOT}/bin:{PATH}
export LD_LIBRARY_PATH=${ENV_ROOT}/lib:${LD_LIBRARY_PATH}