install Elmer in Linuxmint

Discussion about building and installing Elmer
Post Reply
yemeng
Posts: 5
Joined: 25 Nov 2014, 16:49
Antispam: Yes

install Elmer in Linuxmint

Post by yemeng »

Hi all,

I've installed the new version Elmer, but the ElmerSolver always went wrong.

when I run ElmerSolver, the terminal shows:

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

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

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

Load: Unable to open shared library: [./ElmerIceSolvers.so]
./ElmerIceSolvers.so: cannot open shared object file: No such file or directory

Load: Unable to open shared library: [/home/liyemeng/elmer/install/share/elmersolver/lib/ElmerIceSolvers]
/home/liyemeng/elmer/install/share/elmersolver/lib/ElmerIceSolvers: cannot open shared object file: No such file or directory

Load: Unable to open shared library: [/home/liyemeng/elmer/install/share/elmersolver/lib/ElmerIceSolvers.so]
/home/liyemeng/elmer/install/share/elmersolver/lib/ElmerIceSolvers.so: cannot open shared object file: No such file or directory

...

I have set the environmental variables.

Hope to get some help. Thanks

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

Re: install Elmer in Linuxmint

Post by annier »

Hi Li Yemeng,
The ElmerSolver in your Elmer Solver run is unable to find "ElmerICE" libraries.
I guess you are using Cmake installation procedure. During the Elmer Build (configure +generate) process, did you configure Elmer with the prefix

Code: Select all

--WITH_ElmerIce 
option?
or in cmake-gui

Code: Select all

WITH_Elmerice        [Tick Mark]
?
How did you configure during Elmer Build?

In my context, there is ElmerIceSolvers.so file in the above mentioned path /home/username/elmer/install/share/elmersolver/lib/

Yours Sincerely
Anil Kunwar
Last edited by annier on 17 May 2015, 12:36, edited 1 time in total.
Anil Kunwar
Faculty of Mechanical Engineering, Silesian University of Technology, Gliwice
yemeng
Posts: 5
Joined: 25 Nov 2014, 16:49
Antispam: Yes

Re: install Elmer in Linuxmint

Post by yemeng »

Hi Anil,

I use cmake to generate Elmer

Code: Select all

$ cmake -DWITH_ELMERGUI:BOOL=FALSE -DWITH_MPI:BOOL=FALSE -DCMAKE_INSTALL_PREFIX=../install ../elmerfem
and I didn't use "--WITH_ElmerIce" option.

where should I put the prefix "--WITH_ElmerIce"?

And I just check the ElmerIce Wiki, it says add the following option "-DWITH_ElmerIce:BOOL=TRUE" to cmake. Is that what you mean?

Sincerely,
Yemeng
yemeng
Posts: 5
Joined: 25 Nov 2014, 16:49
Antispam: Yes

Re: install Elmer in Linuxmint

Post by yemeng »

annier wrote:Hi Li Yemeng,
The ElmerSolver in your Elmer Solver run is unable to find "ElmerICE" libraries.
I guess you are using Cmake installation procedure. During the Elmer Build (configure +generate) process, did you configure Elmer with the prefix

Code: Select all

--WITH_ElmerIce 
option?
or in cmake-gui

Code: Select all

WITH_ElmerIce        [Tick Mark]
?
How did you configure during Elmer Build?

In my context, there is ElmerIceSolvers.so file in the above mentioned path /home/username/elmer/install/share/elmersolver/lib/

Yours Sincerely
Anil Kunwar
Hi Anil,

I use cmake to generate Elmer

Code: Select all

$ cmake -DWITH_ELMERGUI:BOOL=FALSE -DWITH_MPI:BOOL=FALSE -DCMAKE_INSTALL_PREFIX=../install ../elmerfem

and I didn't use "--WITH_ElmerIce" option.

where should I put the prefix "--WITH_ElmerIce"?

And I just check the ElmerIce Wiki, it says add the following option "-DWITH_ElmerIce:BOOL=TRUE" to cmake. Is that what you mean?

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

Re: install Elmer in Linuxmint

Post by annier »

Hi Li Yemeng,
- You first need to delete whole "Build" directory and again restart the build + installation procedure.

- Yes, "-DWITH_ElmerIce:BOOL=TRUE" is the code snippet for prefix "--WITH_Elmerice" in cmake style. when you use the cmake configuration, you can add the piece of code snippet into configuration +generate code as:

Code: Select all

$cmake -DWITH_ELMERGUI:BOOL=FALSE -DWITH_MPI:BOOL=FALSE  -DWITH_ElmerIce:BOOL=TRUE  -DCMAKE_INSTALL_PREFIX=../install ../elmerfem

Or,
if you use the cmake-gui, you can do it as shown in the image where WITH_Elmerice is tick marked.
with_elmerice
with_elmerice
a portion of cmake-gui screen.png (70.87 KiB) Viewed 9817 times

Yours Sincerely
Anil Kunwar
Anil Kunwar
Faculty of Mechanical Engineering, Silesian University of Technology, Gliwice
yemeng
Posts: 5
Joined: 25 Nov 2014, 16:49
Antispam: Yes

Re: install Elmer in Linuxmint

Post by yemeng »

Hi Anil,

when run ctest, there're still errors.

Code: Select all

The following tests FAILED:
	  1 - Density (Failed)
	  3 - Hydro_Coupled (Failed)
	  4 - IntegrateVertically (Failed)
	  5 - SIA (Failed)
	  6 - Grounded (Failed)
	  7 - Porous (Failed)
	  8 - Hydro_SedOnly (Failed)
	  9 - SSA_IceSheet (Failed)
	 10 - SSA_Weertman (Failed)
...
The steps I install Elmer is as follows,

Code: Select all

$ mkdir elmer
$ cd elmer
$ git clone git://www.github.com/ElmerCSC/elmerfem
$ mkdir build
$ cd build
$cmake -DWITH_ELMERGUI:BOOL=FALSE -DWITH_MPI:BOOL=FALSE  -DWITH_ElmerIce:BOOL=TRUE  -DCMAKE_INSTALL_PREFIX=../install ../elmerfem
$ make -j4 install
when run cmake, there are some warnings.
"Synatax Warning in cmake code at /home/username/elmer/elmerfem/cmake/Modules/testGFortranVersion.cmake:49:9
Argument not separated from preceding token by whitespace.
This warning is for project developers. ..."

Do this warning lead to the fail installation?

Thank you for your kind help.

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

Re: install Elmer in Linuxmint

Post by annier »

Hi Li Yemeng,
-In general, such warnings are not related to installation failures.
- Did all of your tests failed or some of them passed?
- If some of them have passed, then your installation has been complete successfully. If all the tests have failed, there is some installation failure.
-What is the bit size of your linuxmint OS - 32 or 64? Installing in 64 bit OS generally goes smooth owing to the compatibility with recently developed softwares.
-What is the version of your gfortran? For elmer installation, gfortran version should be 4.8.1 or later.
-Also, please try the option of setting WITH_MPI to true.

Code: Select all

-DWITH_MPI:BOOL=TRUE
Yours Sincerely
Anil Kunwar
Anil Kunwar
Faculty of Mechanical Engineering, Silesian University of Technology, Gliwice
yemeng
Posts: 5
Joined: 25 Nov 2014, 16:49
Antispam: Yes

Re: install Elmer in Linuxmint

Post by yemeng »

Hi Anil,

Many of them passed and some failed.
The linuxmint OS is 64bit and gfortran is 4.8.2

To start my project I've used other's Elmer and skip the installation problem for a while.

Thank you again for your reply.

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

Re: install Elmer in Linuxmint

Post by annier »

Hi Li Yemeng,
You can try adding Elmer into your linuxmint by using the launchpad as linuxmint and ubuntu are compatible (in my guess):
a. First add ppa repository of elmer

Code: Select all

$ sudo apt-add-repository ppa:elmer-csc-ubuntu/elmer-csc-ppa
b. Get update

Code: Select all

$ sudo apt-get update
c. Install elmer

Code: Select all

$ sudo apt-get install elmerfem-csc
More information
viewtopic.php?f=11&t=3725
viewtopic.php?f=2&t=3653&p=12260&sid=73 ... e3e#p12260

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: install Elmer in Linuxmint

Post by annier »

Hi Li Yemeng,
Have you found any new developments for Elmer installation in LinuxMint (with Cmake):
viewtopic.php?f=2&t=3968


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