install-fedora-deps.sh 1.6 KB
Newer Older
Markus Mirz's avatar
Markus Mirz committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
dnf -y update

# Toolchain
dnf -y install \
    git clang gdb ccache \
    redhat-rpm-config \
    rpmdevtools \
    make cmake ninja-build \
    doxygen \
    graphviz \
    pandoc \
    python3-pip \
    pkg-config

# Dependencies
dnf --refresh -y install \
	python3-devel \
	eigen3-devel \
    libxml2-devel \
	spdlog-devel \
	graphviz-devel \
	sundials-devel \
	gsl-devel

Markus Mirz's avatar
Markus Mirz committed
25
26
27
28
29
30
31
# Python
pip3 install --user -r requirements.txt
pip3 install --user -r requirements-jupyter.txt
dnf -y --refresh install npm
jupyter nbextension enable --py widgetsnbextension
jupyter labextension install @jupyter-widgets/jupyterlab-manager

Markus Mirz's avatar
Markus Mirz committed
32
33
34
35
36
37
38
39
40
41
# VILLAS dependencies
sudo dnf install \
    openssl-devel \
    libuuid-devel \
    libconfig-devel \
    libnl3-devel \
    libcurl-devel \
    jansson-devel \
    libwebsockets-devel \
    mosquitto-devel \
Markus Mirz's avatar
Markus Mirz committed
42

43
44
45
# add lib64 to library search path
grep -qxF '/usr/local/lib64' /etc/ld.so.conf || echo '/usr/local/lib64' | sudo tee -a /etc/ld.so.conf
sudo ldconfig
Markus Mirz's avatar
Markus Mirz committed
46

47
# FEIN libraries
Markus Mirz's avatar
Markus Mirz committed
48
49
50
cd /tmp && \
git clone --recurse-submodules https://github.com/CIM-IEC/libcimpp.git && \
mkdir -p libcimpp/build && cd libcimpp/build && \
51
cmake -DCMAKE_INSTALL_LIBDIR=/usr/local/lib64 -DUSE_CIM_VERSION=IEC61970_16v29a -DBUILD_SHARED_LIBS=ON -DBUILD_ARABICA_EXAMPLES=OFF .. && sudo make -j$(nproc) install && \
Markus Mirz's avatar
Markus Mirz committed
52
53
54
55
56
57
58
rm -rf /tmp/libcimpp

cd /tmp && \
git clone --recurse-submodules https://git.rwth-aachen.de/acs/public/villas/node.git villasnode && \
mkdir -p villasnode/build && cd villasnode/build && \
cmake -DWITH_NODE_ETHERCAT=OFF -DCMAKE_INSTALL_LIBDIR=/usr/local/lib64 .. && sudo make -j$(nproc) install && \
rm -rf /tmp/villasnode