Page 1 of 2

[Solved]Compilation issues of ElmernonGUI in Ubuntu14.04

Posted: 11 Jul 2014, 19:03
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

Re: Some compilation issues for Elmer nonGUI in Ubuntu 14.04

Posted: 14 Jul 2014, 17:12
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

Re: Some compilation issues for Elmer nonGUI in Ubuntu 14.04

Posted: 11 Sep 2014, 11:39
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

Re: Some compilation issues for Elmer nonGUI in Ubuntu 14.04

Posted: 12 Sep 2014, 12:00
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

Re: Some compilation issues for Elmer nonGUI in Ubuntu 14.04

Posted: 18 Sep 2014, 17:09
by theaembee
Hi Anil,

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

Cheers
Mathias

Re: Some compilation issues for Elmer nonGUI in Ubuntu 14.04

Posted: 27 Sep 2014, 00:03
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

Re: Some compilation issues for Elmer nonGUI in Ubuntu 14.04

Posted: 30 Sep 2014, 11:31
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

Re: Some compilation issues for Elmer nonGUI in Ubuntu 14.04

Posted: 30 Sep 2014, 11:42
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

Re: Some compilation issues for Elmer nonGUI in Ubuntu 14.04

Posted: 15 Oct 2014, 21:02
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

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

Posted: 07 Feb 2016, 14:09
by Dex
Hi Anil so were you able to compile Elmer then?