Install Elmer/ice in Redhat

Extension of Elmer in computational glaciology
Post Reply
lusaisai
Posts: 6
Joined: 14 Apr 2015, 19:53
Antispam: Yes

Install Elmer/ice in Redhat

Post by lusaisai »

Hello everybody,
I am new to Elmer/Ice and encountering some issues in installation. My Linux distribution is Red Hat Enterprise Linux Server release 6.4 (Santiago). I have successfully installed Elmer, but there are some errors when I installed “Elmerice”.
So, can you give me some instruction or suggestions in “Elmerice” installation? Thanks in advance.

Yours
Saisai
joeatodd
Posts: 36
Joined: 02 Feb 2012, 18:49
Antispam: Yes

Re: Install Elmer/ice in Redhat

Post by joeatodd »

Hi Saisai,

What errors did you encounter when installing elmer/ice?

Joe
lusaisai
Posts: 6
Joined: 14 Apr 2015, 19:53
Antispam: Yes

Re: Install Elmer/ice in Redhat

Post by lusaisai »

Hi joe,

I installed Elmer by the guideline from http://elmerfem.org/forum/viewtopic.php ... c2f#p13213. Then, according to the instruction of "Building Elmer/Ice" from http://www.elmerice.elmerfem.org/wiki/d ... ompilation, I edited the bash file like this.

Code: Select all

#!/bin/bash

CMAKE=cmake

# Installation directory (set these!)
TIMESTAMP=$(date +"%m-%d-%y")
ELMER_REV="Elmer_devel_${TIMESTAMP}"
ELMERSRC="/root/elmer/elmerfem"
BUILDDIR="$ELMERSRC/builddir"
IDIR="/usr/local/$ELMER_REV"
# next line is optional
#TOOLCHAIN="/path/to/your/own/toolchainfile/yourtoolchainfile.cmake"

echo "Building Elmer from within " ${BUILDDIR}
echo "using following toolchain file " ${TOOLCHAIN}
echo "installation into " ${IDIR}
cd ${BUILDDIR}
pwd
ls -ltr

echo $CMAKE $ELMERSRC 

# you can add a -DCMAKE_TOOLCHAIN_FILE=$TOOLCHAIN,
# if you have a toolchain file declared
$CMAKE $ELMERSRC  \
    -DCMAKE_INSTALL_PREFIX=$IDIR \
    -DCMAKE_C_COMPILER=/usr/bin/gcc \
    -DCMAKE_Fortran_COMPILER=/usr/bin/gfortran \
    -DWITH_MPI:BOOL=TRUE \
    -DWITH_Mumps:BOOL=TRUE \
    -DWITH_Hypre:BOOL=TRUE \
    -DWITH_Trilinos:BOOL=FALSE \
    -DWITH_ELMERGUI:BOOL=FALSE \
    -DWITH_ElmerIce:BOOL=TRUE

# change the -j4 to the number of available cores on your system                              
make -j4 && sudo make install

# this automatically links /usr/local/Elmer-devel to your new built
sudo rm /usr/local/Elmer-devel
sudo ln -s $IDIR /usr/local/Elmer-devel
~                                                                                                                                                          
~                                                                                                                                                          
~

But when I run ElmerIce , there are some errors.

Code: Select all

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: [/opt/elmerfem/share/elmersolver/lib/ElmerIceSolvers]
/opt/elmerfem/share/elmersolver/lib/ElmerIceSolvers: cannot open shared object file: No such file or directory

Load: Unable to open shared library: [/opt/elmerfem/share/elmersolver/lib/ElmerIceSolvers.so]
/opt/elmerfem/share/elmersolver/lib/ElmerIceSolvers.so: cannot open shared object file: No such file or directory                                                                                                                                                 
~
.

I wonder whether the installation way I choose is wrong. Can you give me some suggestions?

Yours
Saisai
joeatodd
Posts: 36
Joined: 02 Feb 2012, 18:49
Antispam: Yes

Re: Install Elmer/ice in Redhat

Post by joeatodd »

Hi Saisai,

It'd be more useful to see the logs of your installation to see why the elmer/ice installation failed. When you do

Code: Select all

 bash elmer_install.sh 
you could pipe the errors to a log file like this:

Code: Select all

 bash elmer_install.sh 2>&1 | tee LOG
and then either upload the whole LOG file somewhere, or have a look through for errors which might highlight the problem.

Joe
lusaisai
Posts: 6
Joined: 14 Apr 2015, 19:53
Antispam: Yes

Re: Install Elmer/ice in Redhat

Post by lusaisai »

Hi Joe,

Thank you for your suggestions. And I have successfully installed Elmer/ice by Cmake-gui, it is much easier. Thanks again.

Yours
Saisai
Post Reply