Install Elmer/ice in Redhat

Extension of Elmer in computational glaciology

Install Elmer/ice in Redhat

Postby lusaisai » 25 Jun 2015, 10:08

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
lusaisai
 
Posts: 6
Joined: 14 Apr 2015, 19:53

Re: Install Elmer/ice in Redhat

Postby joeatodd » 25 Jun 2015, 11:17

Hi Saisai,

What errors did you encounter when installing elmer/ice?

Joe
joeatodd
 
Posts: 34
Joined: 02 Feb 2012, 18:49

Re: Install Elmer/ice in Redhat

Postby lusaisai » 26 Jun 2015, 10:44

Hi joe,

I installed Elmer by the guideline from http://elmerfem.org/forum/viewtopic.php?f=2&t=3818&p=13213&hilit=centos&sid=5600286c1b4108377f631531719adf05&sid=4069cb51f47c691f9d74e3df9b518c2f#p13213. Then, according to the instruction of "Building Elmer/Ice" from http://www.elmerice.elmerfem.org/wiki/doku.php?id=compilation:compilation, 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
lusaisai
 
Posts: 6
Joined: 14 Apr 2015, 19:53

Re: Install Elmer/ice in Redhat

Postby joeatodd » 02 Jul 2015, 13:49

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
joeatodd
 
Posts: 34
Joined: 02 Feb 2012, 18:49

Re: Install Elmer/ice in Redhat

Postby lusaisai » 05 Jul 2015, 11:23

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
lusaisai
 
Posts: 6
Joined: 14 Apr 2015, 19:53


Return to Elmer/Ice

Who is online

Users browsing this forum: No registered users and 2 guests

cron