trouble installing Elmer8.2 on ubuntu 14.04

Discussion about building and installing Elmer
Post Reply
sebastien ROUQUETTE
Posts: 97
Joined: 05 Nov 2011, 16:50
Antispam: Yes
Location: Nimes, France

trouble installing Elmer8.2 on ubuntu 14.04

Post by sebastien ROUQUETTE »

Hi everybody

Hope that you are all going fine... as i am pulling my hairs out of my head!!!!

I started a new topic in the hope that somebody find a solution to my problem.

I don't know why but my Elmer8.1 stopped working properly so i decided to install the 8.2 after deleting the 8.1.

Everytime i try to install it, after the command "make -j4 install" the install aborts at this stage:
the installation is about 84% so far
" linking CXX executable GUI
/usr/bin/ld: cannot find -lGL
/usr/bin/ld: cannot find -lGL
collect2: error: ld returned 1 exit status
make[2]: *** [ElmerGUI/Application/ElmerGUI] Erreur 1
make[1]: *** [ElmerGUI/Application/CMakeFiles/ElmerGUI.dir/All] Erreur 2
make[1]: *** waiting for unfinished jobs..."
then the installation goes on to 87%
the last query is
"Linking fortran shared library libelmersolver.so
[87%] built target elmersolver
make: *** [all] error 2"
and it stops there... So i'm totally in the darkness of that..
I understand that a "Graphic Library" is not found but i don't know why? in lib/bin/ i identified a file called "libGL.so.1" ... nothing starting with "GL"
Is someone here understanding why?
Cheers
Rouquette Sébastien
University of Montpellier / Mechanical and Civil Engineering Lab. / Welding Group
sebastien ROUQUETTE
Posts: 97
Joined: 05 Nov 2011, 16:50
Antispam: Yes
Location: Nimes, France

Re: trouble installing Elmer8.2 on ubuntu 14.04

Post by sebastien ROUQUETTE »

still in trouble!!!
i cleaned everything with elmer and restarted to install with "sudo apt-add-repository ....." but got this message when i used the keyword "ElmerSolver":

seb@sebastien-Ubuntu:~$ ElmerSolver
ELMER SOLVER (v 8.2) STARTED AT: 2016/07/05 16:32:06
[sebastien-Ubuntu:14141] [[INVALID],INVALID] ORTE_ERROR_LOG: Unable to start a daemon on the local node in file ess_singleton_module.c at line 343
[sebastien-Ubuntu:14141] [[INVALID],INVALID] ORTE_ERROR_LOG: Unable to start a daemon on the local node in file ess_singleton_module.c at line 140
[sebastien-Ubuntu:14141] [[INVALID],INVALID] ORTE_ERROR_LOG: Unable to start a daemon on the local node in file runtime/orte_init.c at line 128
--------------------------------------------------------------------------
It looks like orte_init failed for some reason; your parallel process is
likely to abort. There are many reasons that a parallel process can
fail during orte_init; some of which are due to configuration or
environment problems. This failure appears to be an internal failure;
here's some additional information (which may only be relevant to an
Open MPI developer):

orte_ess_set_name failed
--> Returned value Unable to start a daemon on the local node (-128) instead of ORTE_SUCCESS
--------------------------------------------------------------------------
--------------------------------------------------------------------------
It looks like MPI_INIT failed for some reason; your parallel process is
likely to abort. There are many reasons that a parallel process can
fail during MPI_INIT; some of which are due to configuration or environment
problems. This failure appears to be an internal failure; here's some
additional information (which may only be relevant to an Open MPI
developer):

ompi_mpi_init: orte_init failed
--> Returned "Unable to start a daemon on the local node" (-128) instead of "Success" (0)
--------------------------------------------------------------------------
[sebastien-Ubuntu:14141] *** An error occurred in MPI_Init
[sebastien-Ubuntu:14141] *** on a NULL communicator
[sebastien-Ubuntu:14141] *** Unknown error
[sebastien-Ubuntu:14141] *** MPI_ERRORS_ARE_FATAL: your MPI job will now abort
--------------------------------------------------------------------------
An MPI process is aborting at a time when it cannot guarantee that all
of its peer processes in the job will be killed properly. You should
double check that everything has shut down cleanly.

Reason: Before MPI_INIT completed
Local host: sebastien-Ubuntu
PID: 14141
--------------------------------------------------------------------------

I'm lost !!! seems to be a problem with mpi? what is required exactly?
Cheers
Rouquette Sébastien
University of Montpellier / Mechanical and Civil Engineering Lab. / Welding Group
sebastien ROUQUETTE
Posts: 97
Joined: 05 Nov 2011, 16:50
Antispam: Yes
Location: Nimes, France

Re: trouble installing Elmer8.2 on ubuntu 14.04

Post by sebastien ROUQUETTE »

again me and still blocked with this elmer installation.

I noticed two problems:
either i install it via the method :
sudo apt-add-repository ppa:elmer-csc-ubuntu/elmer-csc-ppa
sudo apt-get update
sudo apt-get install elmerfem-csc
and only ElmerGUI interface works BUT not ElmerSolver as i related previously because of open MPI problem (i still dont understand why?)
After few researches on this open MPI, i read that multiple open MPI install can provoke these sort of troubles.
So i tried to clean up (as properly as i could because i'm not an ubuntu/lunux expert using the command sudo apt-get purge --autoremove packagename and using the ubuntu software centre).
nothing was improved ...
so i went on for the second method:
Compile myself from the source files using cmake and the source codes at github (devel branch):
https://github.com/elmercsc/elmerfem
Then
$ mkdir elmer
$ cd elmer
and clone the git repository.
$ git clone git://www.github.com/ElmerCSC/elmerfem
then create build directory
$ mkdir build
$ cd build
# Alternatively, compile parameters graphically with
$ cmake-gui .
# If no errors are produced, compile:
$ make install
# or alternatively compile in parallel (4 procs)
$ make -j4 install
(and test with ctest)
the installation procedure failed at the end because it is linking a missing GL file for ElmerGUI ..
So i tried again without installing the ElmerGUI ... and it worked (after a deep cleaning of MPI libraries)!!! but i have not the Elmer GUI interface that i found convenient to check my geometry, mesh, boundary conditions, etc.
So if someone has a clue for one or the second problem, you will be my heroe ;-)

Cheers
Sebastien
Rouquette Sébastien
University of Montpellier / Mechanical and Civil Engineering Lab. / Welding Group
sebastien ROUQUETTE
Posts: 97
Joined: 05 Nov 2011, 16:50
Antispam: Yes
Location: Nimes, France

Re: trouble installing Elmer8.2 on ubuntu 14.04

Post by sebastien ROUQUETTE »

end of this post!!!!

i finally decided to meet the it technicien (who is used to work with ubuntu).... after a long cleaning of old removed packages and more... the errors either "cannot fin -lGL" or "MPI aborts" message was not solved!
finally he fixed a problem of computer shutdown in the grub: he changed the line "GRUB_CMDLINE_LINUX_DEFAULT="quiet splash acpi=off" for "GRUB_CMDLINE_LINUX_DEFAULT="" "
the funny things is... that both ElmerGUI and ElmerSolver worked after that without any problems??????

weird but i'm happy now!
Rouquette Sébastien
University of Montpellier / Mechanical and Civil Engineering Lab. / Welding Group
mzenker
Posts: 1999
Joined: 07 Dec 2009, 11:49
Location: Germany

Re: trouble installing Elmer8.2 on ubuntu 14.04

Post by mzenker »

Hi,

using Elmer under Windoze at work, I want to install it on my home computer which is a Linux Mint 17.3 machine (Ubuntu 14.04 based). So I am new to Elmer under Linux and have a stupid question: How do I install it?
I have tried to install from ppa (address: deb http://ppa.launchpad.net/elmer-csc-ubun ... ppa/ubuntu trusty main), but this installs Elmer 6.1! Obviously I want a recent Elmer, so the question to the Elmer Linux experts is:
Are there recent Linux binaries (Elmer 8.2) for Mint 17.x somewhere, or do I need to compile?
I didn't find a clear answer to that question in the forum, but I may have missed something...

Thanks for a pointer,

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

Re: trouble installing Elmer8.2 on ubuntu 14.04

Post by annier »

Hi Matthias,
If you are compiling the Elmer software as mentioned in viewtopic.php?f=2&t=3742 using cmake, the version of Elmer you are installing will be the latest one.


Yours Sincerely,
Anil Kunwar
Anil Kunwar
Faculty of Mechanical Engineering, Silesian University of Technology, Gliwice
mzenker
Posts: 1999
Joined: 07 Dec 2009, 11:49
Location: Germany

Re: trouble installing Elmer8.2 on ubuntu 14.04

Post by mzenker »

Hi Anil,

thank you for pointing me to the right thread, I will attack that on one of the next evenings. I will download the sources anyway.
However, I would also like to know if all "Linuxers" need to compile or if there are more recent Linux/Ubuntu 14.04 binaries than Version 6...

Matthias
Post Reply