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.
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:
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?
#!/bin/sh -f
# CompileElmer 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
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:
#!/bin/sh -f
# CompileElmer 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
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