Installation in Linux OpenSuse

Hello forum,

can someone provide an instruction of how to install Netgen/NGSolve and Jupyter notebook in OpenSuse?
I appreciate any help.

Which version of OpenSuse do you have?

I have OpenSuse Leap 42.1.

I wrote a script to compile and install NGSolve (and it’s dependencies). Due to the lack of an OpenSuse machine I cannot test it, so please send me the complete command line output if it doesn’t work.

Here is the link:

You can download and run it from the shell like this


I just updated the script (have a Suse VM now).
It is still compiling, but looks good so far.

Thanks, Matthias, for your support.
It did not work, several packages cannot be found. That’s however okay for me at the moment since I could install it in a Windows virtual machine.

Attachment: output.txt

I can confirm the script is working now (Tested on OpenSuse Leap 42.2).
In case you want to try it again, download and run the latest version.


Here is the script in case the link goes down one day:

#! /bin/bash
set -e
export BASEDIR=~/ngsuite

sudo zypper install python3-tk python3-devel gcc6-c++ cmake git python3-tk tk-devel liblapacke3 liblapack3 libXmu-devel Mesa-libGLU-devel zlib-devel gcc-c++
sudo pip3 install jupyter

mkdir -p $BASEDIR
git clone ngsolve-src
cd $BASEDIR/ngsolve-src
git checkout v6.2.1709
git submodule update --init --recursive

mkdir -p $BASEDIR/ngsolve-build
mkdir -p $BASEDIR/ngsolve-install
cd $BASEDIR/ngsolve-build
cmake \
  -DLAPACK_LIBRARIES=/usr/lib64/ \
  -DCMAKE_INSTALL_PREFIX=${BASEDIR}/ngsolve-install \

make -j4 install

echo "export NETGENDIR=$BASEDIR/ngsolve-install/bin" >> ~/.bashrc
echo "export PYTHONPATH=$BASEDIR/ngsolve-install/lib64/python3.4/site-packages:." >> ~/.bashrc
echo "export PATH=$BASEDIR/ngsolve-install/bin:\$PATH" >> ~/.bashrc
source ~/.bashrc