[Solved]Compilation issues of ElmernonGUI in Ubuntu14.04

Numerical methods and mathematical models of Elmer
annier
Posts: 1168
Joined: 27 Aug 2013, 13:51
Antispam: Yes

[Solved]Compilation issues of ElmernonGUI in Ubuntu14.04

Post by annier »

Hi,
During compilation of elmer in Ubuntu 14.04 as per
http://www.elmerfem.org/elmerwiki/index ... r_on_Linux:
1. The following warning was issued when gfortran tries to compile the .f90 file s:

Code: Select all

gfortran -O -m64 -fPIC -fPIC -I. -Ibinio -I../binio -c ElementDescription.f90
Warning: Nonexistent include directory "../binio"
2. And the compilation terminated requiring the inclusion of mpi for the fem module:

Code: Select all

In file included from /usr/include/_hypre_utilities.h:16:0,
                 from SolveHypre.c:47:
/usr/include/HYPRE_utilities.h:26:17: fatal error: mpi.h: No such file or directory
 #include "mpi.h"
                 ^
compilation terminated.
The following post talks about the inclusion of mpi with fem module (viewtopic.php?f=2&t=3488&sid=cefc6956dd ... 594dc3495d)
When trying to include mpi(message parsing interface) as suggested for fem module, the absence of Libhuti was notified.

Code: Select all

configure:error:Libhuti wasn't found
Yours
Anil Kunwar
Last edited by annier on 15 Oct 2014, 21:06, edited 4 times in total.
Anil Kunwar
Faculty of Mechanical Engineering, Silesian University of Technology, Gliwice
annier
Posts: 1168
Joined: 27 Aug 2013, 13:51
Antispam: Yes

Re: Some compilation issues for Elmer nonGUI in Ubuntu 14.04

Post by annier »

Hi,
When i try to compile individual modules, error was encountered for the module "post".
the above mentioned warning about nonexistent directory continued for module "fem".

Finally, when i tried to run the test file using ElmerSolver command, it did not run amd issued the following message:

Code: Select all

Load: Unable to open shared library:[Source]
Source: cannot open shared object file: No such file or directory

...

Yours
Anil Kunwar
Anil Kunwar
Faculty of Mechanical Engineering, Silesian University of Technology, Gliwice
theaembee
Posts: 4
Joined: 08 Jan 2014, 13:06
Antispam: Yes

Re: Some compilation issues for Elmer nonGUI in Ubuntu 14.04

Post by theaembee »

Same problem here. I can't compile Elmerfem on Ubuntu 14.04.

Even when I take all the information from the forum I am not able to run the compilation with success. That's a pitty. It always worked with ubuntu 12.04.

Are there any working compilation scripts for all modules to run on Ubuntu 14.04 or maybe even a step-by-step instruction?

Cheers
theaembee
annier
Posts: 1168
Joined: 27 Aug 2013, 13:51
Antispam: Yes

Re: Some compilation issues for Elmer nonGUI in Ubuntu 14.04

Post by annier »

Hi Theaembee,
I have tried the compilation of Elmer in two computers with Ubuntu 14.04 (64 bits) but the compilation is not successful till now.

Yours
Anil Kunwar
Last edited by annier on 30 Sep 2014, 11:59, edited 1 time in total.
Anil Kunwar
Faculty of Mechanical Engineering, Silesian University of Technology, Gliwice
theaembee
Posts: 4
Joined: 08 Jan 2014, 13:06
Antispam: Yes

Re: Some compilation issues for Elmer nonGUI in Ubuntu 14.04

Post by theaembee »

Hi Anil,

Thank you. Then it's at least not my mistake. I will wait until there are any news.

Cheers
Mathias
Termo
Posts: 33
Joined: 19 Jul 2011, 11:10
Antispam: Yes

Re: Some compilation issues for Elmer nonGUI in Ubuntu 14.04

Post by Termo »

It compiles fine for me on Ubuntu 14.04

I use this compile script:

Code: Select all

#!/bin/sh -f 
# Compile Elmer modules and install it
#

export ELMER_HOME=/opt/Elmer

# replace these with your compilers:
export CC=gcc
export CXX=g++
export FC=gfortran
export F77=gfortran

modules="matc umfpack mathlibs elmergrid meshgen2d eio hutiter fem"

for m in $modules; do
  cd $m
  ./configure --prefix="$ELMER_HOME"
  make clean
  make -j 8
  make install
  cd ..
done
annier
Posts: 1168
Joined: 27 Aug 2013, 13:51
Antispam: Yes

Re: Some compilation issues for Elmer nonGUI in Ubuntu 14.04

Post by annier »

Hi Termo,
Thank you very much for the solution.
The compile script you have provided just above works for me as well.
For my context:
I have kept the Elmer Path in my Home Directory as following:

Code: Select all

  #!/bin/sh -f
    # Compile Elmer modules and install it
    #
    # The elmer path is in home directory
    export ELMER_HOME=$HOME/elmerinst

    # replace these with your compilers:
    export CC=gcc
    export CXX=g++
    export FC=gfortran
    export F77=gfortran

    modules="matc umfpack mathlibs elmergrid meshgen2d eio hutiter fem"

    for m in $modules; do
      cd $m
      ./configure --prefix="$ELMER_HOME"
      make clean
      make -j 4
      make install
      cd ..
    done
Yours
Anil Kunwar
Last edited by annier on 03 Oct 2014, 20:18, edited 1 time in total.
Anil Kunwar
Faculty of Mechanical Engineering, Silesian University of Technology, Gliwice
annier
Posts: 1168
Joined: 27 Aug 2013, 13:51
Antispam: Yes

Re: Some compilation issues for Elmer nonGUI in Ubuntu 14.04

Post by annier »

Hi All,
The illustration on installation, compilation and running of Elmer in Ubuntu 14.04 has been provided in the following post:
viewtopic.php?f=2&t=3653&start=0&sid=8f ... 3e96865b7c

Yours
Anil Kunwar
Anil Kunwar
Faculty of Mechanical Engineering, Silesian University of Technology, Gliwice
annier
Posts: 1168
Joined: 27 Aug 2013, 13:51
Antispam: Yes

Re: Some compilation issues for Elmer nonGUI in Ubuntu 14.04

Post by annier »

Hi,
One of the Compilation Issues for Installation of Elmer in Ubuntu 14.04 is :
Compilation of Post Module (Elmer Post)
If Elmer is installed in Ubuntu 14.04 withouf post module, the installation completes successfully. If post module is included, the installation process shows some error messages.
Is it related to Tcl/Tk library?

Yours
Anil Kunwar
Anil Kunwar
Faculty of Mechanical Engineering, Silesian University of Technology, Gliwice
Dex
Posts: 1
Joined: 30 Jan 2016, 21:44
Antispam: Yes

Re: [Solved]Compilation issues of ElmernonGUI in Ubuntu14.04

Post by Dex »

Hi Anil so were you able to compile Elmer then?
Last edited by Dex on 25 Nov 2023, 18:57, edited 10 times in total.
Post Reply