Skip to content

Commit

Permalink
Compilation script for Inkscape+SAGE on RHEL9.
Browse files Browse the repository at this point in the history
  • Loading branch information
riclolsen committed Jun 3, 2024
1 parent bb0a74f commit 68710f8
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 4 deletions.
12 changes: 12 additions & 0 deletions platform-rhel9/inkscape-plus-sage.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# to compile inkscape
cd /home/jsonscada
sudo -u $JS_USERNAME sh -c 'git clone --recurse-submodules https://gitlab.com/ricardolo/inkscape-rebased.git'
cd inkscape-rebased
#sudo -u $JS_USERNAME sh -c 'mkdir build'
cd build
#sudo -u $JS_USERNAME sh -c 'cmake -DENABLE_POPPLER_CAIRO=OFF -DCMAKE_CXX_STANDARD=20 ..'
#sudo -u $JS_USERNAME sh -c 'make'
#sudo make install
sudo -u $JS_USERNAME sh -c 'cmake -G Ninja -DENABLE_POPPLER_CAIRO=OFF -DCMAKE_CXX_STANDARD=20 ..'
sudo -u $JS_USERNAME sh -c 'ninja -j4'
sudo ninja install
21 changes: 17 additions & 4 deletions platform-rhel9/json-scada-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,10 @@ wget https://dl.rockylinux.org/pub/rocky/9/devel/x86_64/os/Packages/p/potrace-de
wget https://gitlab.com/inkscape/lib2geom/-/archive/master/lib2geom-master.zip
unzip lib2geom-master.zip
sudp rpm -ivh potrace-devel-1.16-7.el9.x86_64.rpm
sudo dnf -y install gtkmm30-devel gspell-devel boost-devel poppler-devel poppler-glib-devel gtest-devel harfbuzz-devel
sudo dnf -y install ninja-build gtkmm30-devel gspell-devel boost-devel poppler-devel poppler-glib-devel gtest-devel harfbuzz-devel
sudo dnf -y install libwpg-devel librevenge-devel libvisio-devel libcdr-devel readline-devel ImageMagick-c++-devel GraphicsMagick-c++-devel
sudo dnf -y install pango-devel gsl-devel libsoup-devel lcms2-devel gc-devel double-conversion-devel potrace python3-scour

sudo update-crypto-policies --set LEGACY

wget https://go.dev/dl/go1.22.3.linux-amd64.tar.gz
Expand Down Expand Up @@ -171,13 +172,25 @@ sudo systemctl start nginx
sudo systemctl start supervisord
sudo systemctl start telegraf

cd /home/jsonscada
sleep 10
sudo supervisorctl status
# sudo -u $JS_USERNAME sh -c 'firefox http://localhost &'

# to compile inkscape
# cd /home/jsonscada
# sudo -u $JS_USERNAME sh -c 'git clone --recurse-submodules https://gitlab.com/ricardolo/inkscape-rebased.git'
# sudo -u $JS_USERNAME sh -c 'ln -s /home/jsonscada/json-scada/platform-rhel9/lib2geom-master/src/2geom /home/jsonscada/inkscape-rebased/src/3rdparty/2geom'
# sudo -u $JS_USERNAME sh -c 'cmake -DENABLE_POPPLER_CAIRO=OFF ..'
# sudo -u $JS_USERNAME sh -c 'make'
# cd inkscape-rebased
# sudo -u $JS_USERNAME sh -c 'mkdir build'
# cd build
# sudo -u $JS_USERNAME sh -c 'cmake -G Ninja -DENABLE_POPPLER_CAIRO=OFF -DCMAKE_CXX_STANDARD=20 ..'
# sudo -u $JS_USERNAME sh -c 'ninja -j4'
# sudo ninja install
## sudo -u $JS_USERNAME sh -c 'cmake -DENABLE_POPPLER_CAIRO=OFF -DCMAKE_CXX_STANDARD=20 ..'
## sudo -u $JS_USERNAME sh -c 'make'
## sudo make install

echo "To compile and install Inkscape+SAGE, run the following command: sudo sh ./inkscape-plus-sage.sh"
echo "To open web interface run: firefox http://localhost"
echo "Default credentials: admin / jsonscada"
echo "Default Metabase credentials: [email protected] / jsonscada123"

0 comments on commit 68710f8

Please sign in to comment.