Installing Elmer in Ubuntu 14.04 using Cmake

Discussion about building and installing Elmer
annier
Posts: 1168
Joined: 27 Aug 2013, 13:51
Antispam: Yes

Re: Installing Elmer in Ubuntu 14.04 using Cmake

Post by annier »

Elanid wrote: I have the 32bit version of Ubuntu 14.04, the gcc and the gfortran versions are 4.8.2. I've tried installing the new version of elmer, from git, and used cmake-gui to have elmer without any bells and whistles, just with the MPI. The configuration and generation did not display any errors or warnings, so I used make and make install.
Hi Elan,
My Ubuntu 14.04 bit is 64 bit.
The difference in test results might be due to the bit size. Nowadays, most of the softwares are built for 64 bits.

However, if configuration and generation (build), make and make install proceeded successfully, Elmer has been successfully installed in your machine. the ctest (test) might have some components which might be sensitive to the bit size and showed some errors.
can you get the ElmerSolver result for the Lid Cavity test as mentioned in the first post?
Also, as mentioned by Peter, you can try to check the working of ElmerSolver through some examples. If ElmerSolver works, then your Elmer is installed successfully for numerical calculation.
The test is related with the integration and interaction of every components during installation via Cmake.

Yours
Anil Kunwar
Anil Kunwar
Faculty of Mechanical Engineering, Silesian University of Technology, Gliwice
Elanid
Posts: 10
Joined: 13 Apr 2015, 04:40
Antispam: Yes

Re: Installing Elmer in Ubuntu 14.04 using Cmake

Post by Elanid »

Hello Colleagues,

Anil, you are absolutely right about the 64bit system. I've reinstalled the OS completely and realized what a huge goof i am after doing the elmer installation again. In the end everything worked perfectly when I followed the instructions with the 64 bit system and i got only 3 tests that failed:

Code: Select all

15 - ParticleHeating (Failed)
90 - RotatingBCPoisson3DGeneric (Failed)
158 - ThermalActuator (Failed)

To be quite frank I simply did not recognize that the 32bit barrier would be the cause of the whole conundrum, since on the CSC page it mentions that a 64bit system is required by windows, not linux. Also, version 6 was working perfectly on a 32 bit system so I couldn't really understand that this was the cause of the problem.

In any case, I'm glad that it works now. Thank you, Anil and Peter, I hope that the next time I make a post it won't be because of a silly mistake like this.

Best regards, Elan.
annier
Posts: 1168
Joined: 27 Aug 2013, 13:51
Antispam: Yes

Re: Installing Elmer in Ubuntu 14.04 using Cmake

Post by annier »

Elanid wrote: The configuration and generation did not display any errors or warnings, so I used make and make install. After running the ctest I got 12% success, the following is the ctest output:

Code: Select all

12% tests passed, 270 tests failed out of 307

Total Test time (real) = 184.66 sec

The following tests FAILED:
	  1 - mgdyn_torus (Failed)
	  2 - heateq_bdf2 (Failed)
	  4 - savescalars_flux (Failed)
	  5 - AdvReactDG_P (Failed)
	  7 - TimeFunc (Failed)
	  8 - ConstantBCDisplacement (Failed)
	  9 - mgdyn_bh (Failed)
	 10 - bodyload (Failed)
	 11 - plates (Failed)
	 13 - heateq_bdf3 (Failed)
	 16 - el_adaptivity (Failed)
	 18 - BlockPoisson2 (Failed)
	 20 - DivergenceAnalytic2D (Failed)
	 21 - HelmholtzFEM (Failed)
	 22 - ElmerGridExtrudeMaterial (Failed)
	 24 - BlockLinElast2 (Failed)
	 25 - adv_diff3 (Failed)
	 27 - ParticleAdvector (Failed)
	 28 - StrainCalculation02 (Failed)
	 29 - AdvDiffFCT (Failed)
	 30 - WaveEqu (Failed)
	 31 - StressEigen (Failed)
	 32 - mgdyn_harmonic (Failed)
	 33 - CurvedBndryPFEM2 (Failed)
	 34 - CoupledPoisson1 (Failed)
	 35 - multimesh (Failed)
	 37 - periodic_rot (Failed)
	 38 - SensTemperature (Failed)
	 40 - vortex2d (Failed)
	 41 - platesEigen (Failed)
	 42 - CoordinateTrans (Failed)
	 43 - fsi_beam (Failed)
	 44 - mgdyn_steady_piolaversion (Failed)
	 45 - PhaseChange3 (Failed)
	 46 - structmap (Failed)
	 47 - HeatControl (Failed)
	 48 - ParticleFalling (Failed)
	 49 - ElasticLubrication (Failed)
	 51 - CoupledPoisson8 (Failed)
	 52 - LimitDisplacement3 (Failed)
	 53 - CoupledPoisson5 (Failed)
	 54 - 1sttime (Failed)
	 56 - Step_ke (Failed)
	 57 - streamlines (Failed)
	 58 - mgdyn_lamstack_lowfreq_transient (Failed)
	 59 - AnalyticalTest (Failed)
	 60 - bodydir2 (Failed)
	 61 - PoissonBoltzmann (Failed)
	 62 - adv_diff4 (Failed)
	 63 - mgdyn2D_em (Failed)
	 64 - ElmerGridExtrudeHelicity (Failed)
	 65 - periodic_homogenize (Failed)
	 66 - BlockPoisson3 (Failed)
	 67 - levelset3b (Failed)
	 68 - buckling (Failed)
	 69 - DirichletNeumann (Failed)
	 70 - mgdyn_transient (Failed)
	 71 - coating (Failed)
	 72 - radiation2d (Failed)
	 73 - ContactFriction (Failed)
	 74 - DisContBoundaryNodalProj (Failed)
	 75 - RigidMeshMapper1 (Failed)
	 76 - AdvDiffHandles (Failed)
	 77 - mgdyn_airgap (Failed)
	 78 - L2norm (Failed)
	 79 - CurvedBndryPFEM (Failed)
	 80 - HelmholtzStructure2 (Failed)
	 81 - CapacitanceMatrix (Failed)
	 82 - periodic3 (Failed)
	 83 - CoupledPoisson2c (Failed)
	 84 - InductionHeating (Failed)
	 85 - ModelPDE (Failed)
	 86 - Step_sst-kw-wf (Failed)
	 87 - RotatingBCMagnetoDynamics (Failed)
	 88 - HelmholtzBEM (Failed)
	 89 - DisContBoundaryMortarJump (Failed)
	 90 - LimitDisplacement (Failed)
	 91 - tresca (Failed)
	 95 - adaptivity5 (Failed)
	 96 - savescalars (Failed)
	 98 - BlockLinElast2b (Failed)
	 99 - CoupledPoisson9 (Failed)
	100 - RotatingFlow (Failed)
	101 - DisContBoundary3D (Failed)
	102 - 2ndtime (Failed)
	103 - fluxsolver3 (Failed)
	104 - bodydir (Failed)
	107 - ParticleAdvector2 (Failed)
	108 - mgdyn_steady_periodic (Failed)
	109 - RotatingBCPoisson3DGeneric (Failed)
	110 - ParticleAdvector3 (Failed)
	111 - HelmholtzFace (Failed)
	112 - mgdyn2D_em_harmonic (Failed)
	113 - heateq_newmark (Failed)
	114 - stress (Failed)
	115 - radiation3d (Failed)
	116 - ElastPelem (Failed)
	117 - DisContBoundaryMortarJumpC (Failed)
	118 - current_heat_control (Failed)
	119 - CoupledPoisson1b (Failed)
	120 - Step_v2f (Failed)
	121 - ParticleAdvectorZalesak (Failed)
	122 - mgdyn_lamstack_lowfreq_harmonic (Failed)
	123 - pointload2 (Failed)
	124 - RotatingBCPoisson2D (Failed)
	126 - diffuser_sst (Failed)
	127 - CoupledPoisson4 (Failed)
	128 - CoupledPoisson6 (Failed)
	129 - ContactFrictionHeating (Failed)
	131 - mgdyn2D_pm (Failed)
	132 - elasticity (Failed)
	133 - OptimizeSimplexFourHeaters (Failed)
	134 - diffuser_sa (Failed)
	135 - CoupledPoisson2b (Failed)
	136 - ElastElstatBeam (Failed)
	137 - heateq_infty (Failed)
	138 - NaturalConvectionRestart (Failed)
	139 - reynolds2 (Failed)
	140 - mgdyn_harmonic_loss (Failed)
	141 - savescalars_boundary (Failed)
	142 - pmultg (Failed)
	143 - CoordinateTrans2 (Failed)
	144 - PhaseChange2 (Failed)
	145 - levelset1 (Failed)
	146 - FixPotentialLevels (Failed)
	147 - fsi_beam_optimize (Failed)
	148 - fsi_box2 (Failed)
	149 - LimitTemperature (Failed)
	150 - linearsolvers_cmplx (Failed)
	151 - pointdir (Failed)
	153 - fsi_box (Failed)
	154 - heateq (Failed)
	155 - FlowResSlip (Failed)
	156 - freesurf_ltd (Failed)
	157 - heateq_steady_start (Failed)
	159 - RotatingBCPoisson3D (Failed)
	162 - Step_stokes_block (Failed)
	163 - NormalizeMaterial (Failed)
	164 - ArteryOutlet (Failed)
	166 - BoundaryFluxes (Failed)
	167 - RotatingBCMagnetoDynamicsGeneric (Failed)
	168 - mgdyn_transient_loss (Failed)
	169 - vortex3d (Failed)
	170 - ThermalActuator (Failed)
	171 - NaturalConvection (Failed)
	172 - FlowResNoslip (Failed)
	173 - ThermalBiMetal (Failed)
	174 - freesurf_sloshing_2d (Failed)
	175 - DNS_WaveSimulation (Failed)
	176 - Step_sa (Failed)
	178 - MortarPoisson2D (Failed)
	180 - RotatingBCPoisson3DSymmSkev (Failed)
	181 - channel_v2f (Failed)
	182 - mhd (Failed)
	183 - IsolineGmsh (Failed)
	184 - DisContBoundaryMortarCont (Failed)
	185 - BoundaryFluxes2 (Failed)
	186 - BlockLinElast3 (Failed)
	187 - ParticleAdvectorPathIntegral (Failed)
	188 - levelset3 (Failed)
	189 - ThermalBiMetal2 (Failed)
	190 - CoupledPoisson7 (Failed)
	191 - mhd2 (Failed)
	192 - DisContBoundaryNodalJumpB (Failed)
	193 - mgdyn_lamstack_widefreq_harmonic (Failed)
	195 - reynolds1 (Failed)
	196 - reload (Failed)
	197 - EdgeElementInterpolation (Failed)
	198 - ExtrudedMesh (Failed)
	199 - mgdyn_torus_harmonic (Failed)
	200 - ParticleHeating (Failed)
	201 - DisContBoundaryDoubleMortar (Failed)
	202 - HelmholtzStructure (Failed)
	203 - StructuredHeightDepth (Failed)
	204 - current (Failed)
	205 - heateq_spline_table (Failed)
	206 - StrainCalculation01 (Failed)
	207 - RaviartThomas3D (Failed)
	208 - ExtrudedMesh2 (Failed)
	209 - BDM3D (Failed)
	210 - reynolds3b (Failed)
	211 - NaturalConvection2 (Failed)
	212 - DisContBoundaryMortarJumpB (Failed)
	213 - adv_diff1 (Failed)
	214 - 1dtests (Failed)
	215 - NormalizeBF (Failed)
	216 - InductionHeating2 (Failed)
	217 - RotatingBCMagnetoDynamics2 (Failed)
	219 - AdvDiffHandles2 (Failed)
	220 - StressEigen3D (Failed)
	221 - radiation (Failed)
	222 - HelmholtzPlaneWaves (Failed)
	223 - HelmholtzEdge (Failed)
	224 - elstat_infty (Failed)
	225 - BDM2D (Failed)
	226 - mgdyn_steady (Failed)
	227 - shell (Failed)
	228 - CoordinateScaling (Failed)
	229 - heateq_newmark_global (Failed)
	230 - ExtrusionStructured2D (Failed)
	231 - elstat (Failed)
	232 - CoupledPoisson2 (Failed)
	233 - InductionHeating3 (Failed)
	234 - Electrokinetics (Failed)
	236 - ContactFrictionNonlin (Failed)
	237 - HarmonicNS (Failed)
	238 - NormalizeBC (Failed)
	239 - VectorHelmholtzWaveguide (Failed)
	240 - piezo (Failed)
	241 - AdvDiffHandles3 (Failed)
	242 - RaviartThomas2D (Failed)
	243 - LimitTemperature2 (Failed)
	245 - RichardsDyke (Failed)
	247 - bentonite (Failed)
	248 - reynolds3 (Failed)
	250 - CoupledPoisson3 (Failed)
	251 - elstat_source (Failed)
	252 - marangoni (Failed)
	253 - normals (Failed)
	254 - ElastElstat1DBeam (Failed)
	255 - StokesPFEM (Failed)
	256 - fluxsolver2 (Failed)
	257 - HeatControl2 (Failed)
	258 - ShallowWaterNS (Failed)
	259 - PoissonBEM (Failed)
	260 - LimitDisplacement2 (Failed)
	261 - mgdyn_3phase (Failed)
	262 - periodic_explicit (Failed)
	263 - radiation2 (Failed)
	264 - ElmerGridExtrudeMaterial2 (Failed)
	265 - DirichletNeumannSlave (Failed)
	266 - adv_diff2 (Failed)
	267 - fluxsolver (Failed)
	268 - PoissonPFEM (Failed)
	269 - ExtrudedMesh5 (Failed)
	270 - PoissonDG (Failed)
	271 - StokesProj (Failed)
	272 - DisContBoundaryDoubleNames (Failed)
	274 - StrainCalculation03 (Failed)
	275 - staged_sim (Failed)
	276 - RichardsDyke2 (Failed)
	277 - structmap2 (Failed)
	278 - DisContBoundary (Failed)
	279 - DisContBoundaryDouble (Failed)
	280 - ConstantBCTemperature (Failed)
	281 - levelset2 (Failed)
	283 - structmap3 (Failed)
	284 - ThermoElectric (Failed)
	285 - ElmerGridExtrudeOffset (Failed)
	286 - LubricationTunedForce (Failed)
	287 - DisContBoundaryNodalJump (Failed)
	288 - shell2 (Failed)
	289 - RigidMeshMapper2 (Failed)
	290 - mgdyn_anisotropic_cond (Failed)
	291 - diffuser_v2f (Failed)
	292 - NormalTangentialDisplacement (Failed)
	293 - geomstiff (Failed)
	294 - CompressIdealGas (Failed)
	295 - AdvReactDG (Failed)
	296 - MortarMixedDimensions (Failed)
	297 - WeightComputation (Failed)
	298 - NormalTangentialDisplacement2 (Failed)
	299 - freesurf (Failed)
	300 - BlockPoisson1 (Failed)
	301 - DataToField (Failed)
	303 - Q1Q0 (Failed)
	304 - Helmhol[code]
tzStructure3 (Failed)
305 - HelmholtzPlaneWavesAxis (Failed)
306 - ExtrudedMeshDG (Failed)
307 - pointload (Failed)
[/code]
Hi all,
Recently, I had uninstalled openmpi and libvtk from Ubuntu 14.04- 64 bit computer. So, having problems in running ElmerSolver, i reinstalled Elmer (using Cmake) without these libraries.
Apparently,

Code: Select all

configure
generate
make -j4 install
proceeded without any error message. However, ctest -j4 yielded failure of all tests i.e. 0 tests passed and subsequently, the CTEST error message was shown.
For further observation, i tried to run a test example. It resulted in the following error message:

Code: Select all

ELMER SOLVER (v 8.0) STARTED AT: 2015/05/05 23:23:58
[username-Aspire-1602M:10979] [[INVALID],INVALID] ORTE_ERROR_LOG: A system-required executable either could not be found or was not executable by this user in file ess_singleton_module.c at line 231
[username-Aspire-1602M:10979] [[INVALID],INVALID] ORTE_ERROR_LOG: A system-required executable either could not be found or was not executable by this user in file ess_singleton_module.c at line 140
[username-Aspire-1602M:10979] [[INVALID],INVALID] ORTE_ERROR_LOG: A system-required executable either could not be found or was not executable by this user 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 A system-required executable either could not be found or was not executable by this user (-127) 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 "A system-required executable either could not be found or was not executable by this user" (-127) instead of "Success" (0)
--------------------------------------------------------------------------
[username-Aspire-1602M:10979] *** An error occurred in MPI_Init
[username-Aspire-1602M:10979] *** on a NULL communicator
[username-Aspire-1602M:10979] *** Unknown error
[username-Aspire-1602M:10979] *** 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: username-Aspire-1602M
  PID:        10979
--------------------------------------------------------------------------
Solution (Assumed):

Code: Select all

sudo apt-get install openmpi-dev
With this command, openmpi and libvtk libraries will be installed in Ubuntu 14.04. Then reinstalling Elmer might work with success.


Yours Sincerely
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: Installing Elmer in Ubuntu 14.04 using Cmake

Post by annier »

Hi All,
For installing the updated version of Elmer (Elmer8) along with the previous version i.e. Elmer7, the use of aliases can be able to cause the switching effect for these versions. The procedure for creating aliases for Elmer7 and Elmer8 is described in this link.

Yours Sincerely
Anil Kunwar
Anil Kunwar
Faculty of Mechanical Engineering, Silesian University of Technology, Gliwice
Estiivan
Posts: 25
Joined: 14 Nov 2016, 14:06
Antispam: Yes

Re: Installing Elmer in Ubuntu 14.04 using Cmake

Post by Estiivan »

I have following Cmake-gui configuration (see attached screenshot). After I press Configure in Cmake following happens.

WITH_MPI checkbox checked:

CMake Error at cmake/Modules/FindPackageHandleStandardArgs.cmake:108 (message):
Could NOT find MPI_C (missing: MPI_C_LIBRARIES MPI_C_INCLUDE_PATH)
Call Stack (most recent call first):
cmake/Modules/FindPackageHandleStandardArgs.cmake:315 (_FPHSA_FAILURE_MESSAGE)
cmake/Modules/FindMPI.cmake:615 (find_package_handle_standard_args)
CMakeLists.txt:113 (FIND_PACKAGE)

Without WITH_MPI checkbox or any other checkbox checked:

CMake Error at cmake/Modules/AddModules.cmake:41 (CMAKE_PARSE_ARGUMENTS):
Unknown CMake command "CMAKE_PARSE_ARGUMENTS".
Call Stack (most recent call first):
fem/src/modules/CMakeLists.txt:5 (ADD_ELMER_MODULES)

With WITH_ELMERGUI checkbox checked:

CMake Error at cmake/Modules/AddModules.cmake:41 (CMAKE_PARSE_ARGUMENTS):
Unknown CMake command "CMAKE_PARSE_ARGUMENTS".
Call Stack (most recent call first):
fem/src/modules/CMakeLists.txt:5 (ADD_ELMER_MODULES)

Is MPI something that has to be installed (as it seemed to be by default checked on) and how do I get it in that case? Or what seems to be the problem here?

I added variable QT_QMAKE_EXECUTABLE as FILEPATH with value /usr/bin/qmake as it was in the screenshot in the first post of this thread. Everything should be set as in that picture.
Attachments
Screenshot from 2016-11-30 11-41-10.png
cmake screenshot
(153.87 KiB) Not downloaded yet
annier
Posts: 1168
Joined: 27 Aug 2013, 13:51
Antispam: Yes

Re: Installing Elmer in Ubuntu 14.04 using Cmake

Post by annier »

Hi Estiivan,
The error log in your installation procedure clearly indicate that MPI path has the issue.
Search MPI related stuffs in Google and elmer forum.

PS: If you think that you don't want to go through these details now, you can install elmer via launchpad as suggested by Peter in this thread viewtopic.php?f=2&t=4401&p=15886&sid=84 ... 792#p15886. If you want to still install Elmer via Cmake, you need to manage the path related to OpenMPI.


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: Installing Elmer in Ubuntu 14.04 using Cmake

Post by mzenker »

Hi,

reactivating this thread since I still have 14.04 on my Linux box...
I have compiled and installed Elmer following the instructions in the first post, but all tests fail. Running manually the elstat test gives me the following output (ElmerGrid ran OK):

Code: Select all

$ ElmerGrid 1 2 elmesh
[...output omitted...]
$ ElmerSolver
ELMER SOLVER (v 8.3) STARTED AT: 2017/07/15 04:29:06
ParCommInit:  Initialize #PEs:            1
MAIN: 
MAIN: =============================================================
MAIN: ElmerSolver finite element software, Welcome!
MAIN: This program is free software licensed under (L)GPL
MAIN: Copyright 1st April 1995 - , CSC - IT Center for Science Ltd.
MAIN: Webpage http://www.csc.fi/elmer, Email elmeradm@csc.fi
MAIN: Version: 8.3 (Rev: 131bcb3, Compiled: 2017-07-15)
MAIN: =============================================================
MAIN: 
MAIN: 
MAIN: -------------------------------------
MAIN: Reading Model: elstatics.sif
LoadInputFile: Scanning input file: elstatics.sif
LoadInputFile: Loading input file: elstatics.sif
Loading user function library: [StatElecSolve]...[StatElecSolver_Init0]

Program received signal SIGSEGV: Segmentation fault - invalid memory reference.

Backtrace for this error:
#0  0xB70C9133
#1  0xB70C97D0
#2  0xB7771403
#3  0x0
Being not so experienced with Elmer under Linux, where should I search for the problem?

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

Re: Installing Elmer in Ubuntu 14.04 using Cmake

Post by annier »

Matthias,
1. The quickest and easiest way (in my opinion) to use Elmer and its solvers in Ubuntu 14.04 and 16.04 is via launchpad. The installation (it) will complete within a few minutes.
(i)viewtopic.php?f=2&t=4413&start=0&sid=8e ... 456b5da4d8
(ii)viewtopic.php?f=2&t=4243&p=15543&sid=de ... d23#p15543
Regarding my experience with cmake and launchpad based elmer, i do not find any difference.



2. If you still want to compile elmer from source using cmake, here are some critical steps which determine your success.
(i) Check and uncheck the configuration and generation step for each libraries of Elmer. Each step should be successful and thus for success the minimal requirement should be tried first. Please do not select all the available options till you know that they can be built. Moreover, sometimes if a build is unsuccessful, you need to remove all the build directory and start the fresh build to make the cmake forget your previous build. If you cannot generate build of a code, then it may finally lead to the gap in interaction between elmer libraries.

(ii) We need to be attentive to the path of the Elmer libraries
http://elmerfem.org/forum/viewtopic.php ... a34f75d868
viewtopic.php?f=2&t=4243&p=15543&sid=de ... d23#p15543


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: Installing Elmer in Ubuntu 14.04 using Cmake

Post by mzenker »

Hi Anil,

thanks for replying even on weekends... ;)
I now installed Elmer 8.2 via launchpad. Starting ElmerSolver, I received the error message

ElmerSolver: error while loading shared libraries: libgfortran.so.3: cannot open shared object file: No such file or directory

So I found out that gfortran.so.3 resides in /usr/lib/x86_64-linux-gnu. Adding that to LD_LIBRARY_PATH results in

ElmerSolver: error while loading shared libraries: libgfortran.so.3: wrong ELF class: ELFCLASS64

So there is an issue with 32 and 64 bits. My system is 64 bits - doesn't the launchpad Elmer support this?

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

Re: Installing Elmer in Ubuntu 14.04 using Cmake

Post by annier »

Hi Matthias,
The current version of Elmer via launchpad is based upon 64 bits and my Ubuntu 14.04 and now updated to 16.04 is 64 bits.
Your problem is related to the installation of gfortran libraries within your Ubuntu. Perhaps , the issue may be either the version of gnu fortran or its default location in the computer.
Please try these steps and see if they solve your issues.
viewtopic.php?f=3&t=4418&start=0&hilit= ... 482b7fbd95
After reading this discussion, try the following:
1. Just install the gfortran and see if your installed elmersolver runs completely.
2. Install gfortran if it is not the correct version and reinstall the elmer via launchpad.

Cheers.

Yours Sincerely,
Anil Kunwar
Anil Kunwar
Faculty of Mechanical Engineering, Silesian University of Technology, Gliwice
Post Reply