Installation from git on Debian Stretch

Discussion about building and installing Elmer

Installation from git on Debian Stretch

Postby Gary R » 10 Aug 2017, 02:48

Hi all;
I'm really new at this Elmer thing and am very confused about several points.
1) The following apps? are turned off in the CMakeLists.txt file:
NKL, MUMPS, HYPRE, ELMERGUI, ELMER TESTER, ELMER LOGGER, TRILINOS, FETI4I,
ELMERPOST AND CONTRIB.
Why??? (Especially ELMERGUI)

2) The following list are programs (libraries) that are needed to get the most out of ELMERGUI. Several of the libraries? have different names (I think) in Debian:
Liturature Names >> Debian names
Open Cascade >> liboce-ocaf19
qwt6 >> libqwt6abi1
pythonqt >> libpythonqt3.0
Are these equivalent?

In case you are wondering why I am not using apt-get or aptitude. it is because there is no deb file for elmer in the Stretch release and the one in the Sid release is way out of date.

If someone, who knows what they are doing would help clarify the above, it would be sincerely appreciated.

Gary R
Gary R
 
Posts: 24
Joined: 12 Apr 2012, 07:23
Location: Long Beach CA

Re: Installation from git on Debian Stretch

Postby mzenker » 10 Aug 2017, 10:57

Hi,

if you just want to install a rather recent Elmer, the quickest and easiest way, at least in Ubuntu and Mint, is to use the launchpad installation. ElmerGUI is included. See here for more information: http://www.elmerfem.org/forum/viewtopic.php?f=2&t=4413.

Of the libraries turned off in your makefile, at least Elmerpost, Elmer tester and Elmer logger are not necessary to run Elmer. For the others, I am not shure off the top of my head...

HTH,

Matthias
mzenker
 
Posts: 1578
Joined: 07 Dec 2009, 11:49
Location: Germany

Re: Installation from git on Debian Stretch

Postby Gary R » 22 Aug 2017, 00:21

First, there is no launchpad in Debian 9

Second, I got the git download done and modified the CMakeLists.txt file by turning on everything but ice. I than ran cmake and got the following error:

Performing C++ SOURCE FILE Test OpenMP_FLAG_DETECTED failed with the followi
ng output:
Change Dir: /home/gary/Elmer/elmerfem/CMakeFiles/CMakeTmp

Run Build Command:"/usr/bin/make" "cmTC_21803/fast"
/usr/bin/make -f CMakeFiles/cmTC_21803.dir/build.make CMakeFiles/cmTC_21803.
dir/build
make[1]: Entering directory '/home/gary/Elmer/elmerfem/CMakeFiles/CMakeTmp'
Building CXX object CMakeFiles/cmTC_21803.dir/src.cxx.o
/usr/bin/c++ -DOpenMP_FLAG_DETECTED -fPIE -o CMakeFiles/cmTC_21803.dir
/src.cxx.o -c /home/gary/Elmer/elmerfem/CMakeFiles/CMakeTmp/src.cxx
/home/gary/Elmer/elmerfem/CMakeFiles/CMakeTmp/src.cxx:2:10: fatal error: 'om
p.h' file not found
#include <omp.h>
^
1 error generated.
CMakeFiles/cmTC_21803.dir/build.make:65: recipe for target 'CMakeFiles/cmTC_
21803.dir/src.cxx.o' failed
make[1]: *** [CMakeFiles/cmTC_21803.dir/src.cxx.o] Error 1
make[1]: Leaving directory '/home/gary/Elmer/elmerfem/CMakeFiles/CMakeTmp'
Makefile:126: recipe for target 'cmTC_21803/fast' failed
make: *** [cmTC_21803/fast] Error 2

Source file was:

#include <omp.h>
int main() {
#ifdef _OPENMP
return 0;
#else
breaks_on_purpose
#endif
}


Can anyone tell me how to correct this. Remember, I am using Debian 9 and some of the Ubuntu stuff doesn't work.

Gary R.
Gary R
 
Posts: 24
Joined: 12 Apr 2012, 07:23
Location: Long Beach CA


Return to Installation & compilation

Who is online

Users browsing this forum: No registered users and 2 guests

cron