-
Notifications
You must be signed in to change notification settings - Fork 3
/
setupCarl.sh
executable file
·47 lines (32 loc) · 908 Bytes
/
setupCarl.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
#!/bin/sh
#cmake install
sudo apt-get install -y cmake cmake-curses-gui g++ doxygen
#libcln6 install
sudo apt-get install -y libcln6 libcln-dev libgmp-dev
working_dir=$(pwd)
#Download and Install Eigen
if [ -d eigen ]; then
git clone -b branches/3.3 [email protected]:eigenteam/eigen-git-mirror.git eigen
cd eigen
mkdir build && cd build/ && cmake ../
sudo make install
fi
cd ${working_dir}
#Download and Install Carl
git clone https://github.com/smtrat/carl.git
cd carl/
mkdir build && cd build/ && cmake ../
#ATTENZIONE! Questa operazione potrebbe richiedere parecchio tempo
#This builds the shared library build/libcarl.so
make lib_carl
# Build carl (with tests and documentation).
make
make test doc
carl_dir=$(pwd)
#Pycarl
cd ${working_dir}
git clone https://github.com/moves-rwth/pycarl.git
cd pycarl
python setup.py build develop
python -m pytest tests
cd ${working_dir}