- Thank you received: 0
Build Netgen on Linux (CentOS)
6 years 2 months ago #1196
by sgomes
Build Netgen on Linux (CentOS) was created by sgomes
Hello,
I have been trying to install Netgen on my work computer - the OS is CentOS Linux 7.
The most recent version uses python 3.7 which is not available here - so I downloaded version 6.2.1807.
It does seem to install correctly and I can generate meshes, but I cannot do anything else. I think it might be a problem related to submodules (it seems like it doesn't get the right ones?)
Another thing I noticed is that when I launch it, it doesn't load the OCC module, or the ngsolve library (which happens when I run it on my windows laprop) - the process stops before this.
Is there anything different I should be doing?
Thanks!
Susana
I have been trying to install Netgen on my work computer - the OS is CentOS Linux 7.
The most recent version uses python 3.7 which is not available here - so I downloaded version 6.2.1807.
It does seem to install correctly and I can generate meshes, but I cannot do anything else. I think it might be a problem related to submodules (it seems like it doesn't get the right ones?)
Another thing I noticed is that when I launch it, it doesn't load the OCC module, or the ngsolve library (which happens when I run it on my windows laprop) - the process stops before this.
Is there anything different I should be doing?
Thanks!
Susana
6 years 2 months ago #1197
by matthiash
Replied by matthiash on topic Build Netgen on Linux (CentOS)
Hi Susana,
I assume you compiled Netgen from source? If so, the Python version does not matter, this is only relevant for prebuilt binaries for Windows and MacOS.
Did you follow the instructions here?
ngsolve.org/docu/latest/install/installlinux.html
To update the submodules properly, execute the following:
Best,
Matthias
I assume you compiled Netgen from source? If so, the Python version does not matter, this is only relevant for prebuilt binaries for Windows and MacOS.
Did you follow the instructions here?
ngsolve.org/docu/latest/install/installlinux.html
To update the submodules properly, execute the following:
Code:
git submodule update --init --recursive || true
git submodule sync --recursive
git submodule update --init --recursive
Best,
Matthias
6 years 2 months ago #1199
by sgomes
Replied by sgomes on topic Build Netgen on Linux (CentOS)
Thanks Matthias, that worked!
It wasn't completely clear from the documentation, but this solved the problem.
Best,
Susana
It wasn't completely clear from the documentation, but this solved the problem.
Best,
Susana
3 years 2 months ago #4018
by point41
Replied by point41 on topic Build Netgen on Linux (CentOS)
Hello,
I am trying to build ngsolve on CentOS 7 and keep running into problems. Does anyone have a working build for CentOS 7 they would be able to share (ngsolve-install) ? Better yet, does anyone have a working installation script for CentOS 7 similar to the standard one for Ubuntu on the ngsolve website ngsolve.org/docu/latest/install/installlinux.html ?
Appreciate any help
Thanks and regards,
Valery
I am trying to build ngsolve on CentOS 7 and keep running into problems. Does anyone have a working build for CentOS 7 they would be able to share (ngsolve-install) ? Better yet, does anyone have a working installation script for CentOS 7 similar to the standard one for Ubuntu on the ngsolve website ngsolve.org/docu/latest/install/installlinux.html ?
Appreciate any help
Thanks and regards,
Valery
3 years 2 months ago #4027
by matthiash
Replied by matthiash on topic Build Netgen on Linux (CentOS)
Hi Valery,
Which version of python3 are your using on your system? (python3 --version)
We are currently working on pip-packages for netgen and ngsolve, a preliminary release will be available this week (at least for linux).
Best,
Matthias
Which version of python3 are your using on your system? (python3 --version)
We are currently working on pip-packages for netgen and ngsolve, a preliminary release will be available this week (at least for linux).
Best,
Matthias
3 years 2 months ago #4028
by point41
Replied by point41 on topic Build Netgen on Linux (CentOS)
Hi Matthias,
Thanks for the reply.
I have Python 3.6.8 installed and actually managed to get the build to work in the mean time. Most of the problems I had were related to looking up the appropriate package name and version for all the required libraries, so constructing the equivalent of the Ubuntu command below for CentOS. A bit non-trivial since many of the package names are different between Ubuntu and CentOS:
sudo apt-get update && sudo apt-get -y install python3 python3-distutils python3-tk libpython3-dev libxmu-dev tk-dev tcl-dev cmake git g++ libglu1-mesa-dev liblapacke-dev
Anyway, I have a working build on CentOS 7 now and if anyone would like it I will be glad to post a link to download the directory ngsolve-install
Thanks and regards,
Valery
Thanks for the reply.
I have Python 3.6.8 installed and actually managed to get the build to work in the mean time. Most of the problems I had were related to looking up the appropriate package name and version for all the required libraries, so constructing the equivalent of the Ubuntu command below for CentOS. A bit non-trivial since many of the package names are different between Ubuntu and CentOS:
sudo apt-get update && sudo apt-get -y install python3 python3-distutils python3-tk libpython3-dev libxmu-dev tk-dev tcl-dev cmake git g++ libglu1-mesa-dev liblapacke-dev
Anyway, I have a working build on CentOS 7 now and if anyone would like it I will be glad to post a link to download the directory ngsolve-install
Thanks and regards,
Valery
Time to create page: 0.126 seconds