Yinan-Scott-Shi / fds-smv

Automatically exported from code.google.com/p/fds-smv
0 stars 0 forks source link

SMV 5.4.3 binary can't find libifcore.so.5 shared lib on Linux #852

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
When I try to run smv5 from FDS_5.4.0-SMV_5.4.3_linux_64.tar.gz on Ubuntu
Linux 9.04, the following happens:

egissi@bramax:~/FDS_cases/test_par$ smv5_linux_64 acquario
smv5_linux_64: error while loading shared libraries: libifcore.so.5: cannot
open shared object file: No such file or directory

That Intel-specific Fortran run-time library is not included in the
distribution. Statically linking would be preferred for simplicity.

Original issue reported on code.google.com by emanuele.gissi on 2 Sep 2009 at 10:03

GoogleCodeExporter commented 9 years ago
I'll take a look at it.

Original comment by gfor...@gmail.com on 3 Sep 2009 at 2:07

GoogleCodeExporter commented 9 years ago
the utilities scripts are also missing in the distribution

Original comment by stan.ieu...@gmail.com on 4 Sep 2009 at 3:24

GoogleCodeExporter commented 9 years ago
what scripts were you thinking of?  The only scripts I can think of are 
distributed
through the svn repository.

Original comment by gfor...@gmail.com on 4 Sep 2009 at 3:49

GoogleCodeExporter commented 9 years ago
I performed some more testing on Linux.

I downloaded Intel fortran compiler (Intel 64 platform) and extracted some libs.
smv5 runs well adding the following libraries in the lib path:
libifcore.so.5  libimf.so  libintlc.so.5

Emanuele.

Original comment by emanuele.gissi on 5 Sep 2009 at 3:39

GoogleCodeExporter commented 9 years ago
good detective work.  I put a new bundle on the download site with the shared
libraries you need (same ones as you pointed out in comment 4) in a directory.  
There
is a readme file in the bin directory that briefly explains how to define the
environment variable, LD_LIBRARY_PATH, that points to these shared libraries.

I'm going to mark this as fixed.  Try using libs in the bundle and let me know 
how
this works for you.

Original comment by gfor...@gmail.com on 9 Sep 2009 at 8:37

GoogleCodeExporter commented 9 years ago
I can try it tomorrow. I am confident it will work.

I suggest creating a FDS5/lib directory, instead of FDS5/bin/INTEL_LIB64: it's 
more
Unix-ish. But that's not so important.

Emanuele.

Original comment by emanuele.gissi on 10 Sep 2009 at 6:31

GoogleCodeExporter commented 9 years ago
It would have to  be at least lib32 and lib64 - I want to handle the case that 
both
the 32 and 64 bit smokeview's are present

Original comment by gfor...@gmail.com on 10 Sep 2009 at 9:38

GoogleCodeExporter commented 9 years ago
Yes, you are right: FDS5/lib32 and FDS5/lib64 is perfect! Ubuntu and Redhat do 
the same.
Emanuele.

Original comment by emanuele.gissi on 10 Sep 2009 at 1:45

GoogleCodeExporter commented 9 years ago
Hi,
When I just try to launch smokeview, an error message appears :
"smv: error while loading shared libraries: libifcore.so.5: cannot open shared 
object
file: No such file or directory".
I imagine I don't have the needed library(ies) ifcore to be able to use 
smokeview.
When you said you put a new bundle on the download site with the shared
libraries, where could I find these libraries ? in order to download them of 
course!
Thanks a lot to answer me.
Baptiste

Original comment by baptiste...@gmail.com on 11 Sep 2009 at 8:38

GoogleCodeExporter commented 9 years ago
you can put them anywhere that you want - you just have to define (or add to) 
the
LD_LIBRARY_PATH to point to where the libraries are.  Take a look at the readme 
file
in the bin directory to see if if explains sufficiently what to do .  Rerport 
back
how things go.

Original comment by gfor...@gmail.com on 11 Sep 2009 at 11:13

GoogleCodeExporter commented 9 years ago
I understand what you mean but I don't have physically these libraries. Where 
can I
obtain them? Since I don't have them, I can't introduce them in the PATH 
variable or
define them. Is it possible to obtain them compiled by anyone else?
I don't even know if I have to download the package "Intel Fortran compiler",but
where can I download it? All these questions to be able to run smokeview!
To be noticed, my OS version is SUSE linux 11.1.
Thanks a lot to help me.
See you.
Baptiste

Original comment by baptiste...@gmail.com on 11 Sep 2009 at 1:07

GoogleCodeExporter commented 9 years ago
If you download FDS_5.4.1-SMV_5.4.3_linux_32.tar.gz again you will find all you 
need.

I noticed a little error in the README_LINUX.txt file.
Replace:
"setenv LD_LIBRARY_PATH ~/FDS/FDS5/bin/INTEL_LIB32"
with
"setenv LD_LIBRARY_PATH ~/FDS/FDS5/bin/lib32"

And I would add:
"""
If you are using a bash shell, type the following command:
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:~/FDS/FDS5/bin/lib32
"""

Many thanks, Emanuele

Original comment by emanuele.gissi on 11 Sep 2009 at 1:21

GoogleCodeExporter commented 9 years ago
The installation page is in the repository and also at the following web link.  
I've
incorporated your suggestions - take a look and let me know if you have any 
other
suggestions - this page will be included the next time I make a bundle

http://fds-smv.googlecode.com/svn/trunk/FDS/trunk/Utilities/Scripts/bundle_setup
/README_LINUX.html

Original comment by gfor...@gmail.com on 11 Sep 2009 at 7:38

GoogleCodeExporter commented 9 years ago
It seems ok. Thanks.
Emanuele

Original comment by emanuele.gissi on 11 Sep 2009 at 7:47

GoogleCodeExporter commented 9 years ago
thanks - I'm going to mark this case as verified - let me know if you notice any
other problems.

Original comment by gfor...@gmail.com on 11 Sep 2009 at 8:16

GoogleCodeExporter commented 9 years ago
Hi there,
Sorry to come back on this issue:
/home/mcgrok/FDS/FDS5/bin/smv5_linux_64: error while loading shared libraries:
libifcore.so.5: cannot open shared object file: No such file or directory

although I've already defined the path where libraries are

> ls /home/mcgrok/FDS/FDS5/bin/lib64
libifcore.so.5  libimf.so  libintlc.so.5

> echo $LD_LIBRARY_PATH
:/opt/intel/Compiler/11.1/072/lib/intel64:/home/mcgrok/FDS/FDS5/bin/lib64:

My OS is Ubuntu 9.10 on intel 64
Any idea?
Thanks

Original comment by mcg...@gmail.com on 2 Jun 2010 at 2:50

GoogleCodeExporter commented 9 years ago
Do you have the 072 release of the Intel compilers installed?  If so, your 
installed
libraries in .../072/lib/intel64 are newer than what I built smokeview with.  
Try
changing (temporarily) the LD_LIBRARY_PATH variable to just contain the 
libraries
that came with smokeview is

/home/mcgrok/FDS/FDS5/bin/lib64

Original comment by gfor...@gmail.com on 4 Jun 2010 at 11:40

GoogleCodeExporter commented 9 years ago

Thank you very much! a bit tricky... 
now I have to build a way to switch easily between libraries.

Sorry to come back this late I wasn't warned about answers
Thanks again

Original comment by mcg...@gmail.com on 20 Jul 2010 at 2:08

GoogleCodeExporter commented 9 years ago
could write a wrapper script for smokeview that also defines LD_LIBRARY_PATH it 
wants.

for example something like

#!/bin/csh -f

set arg1=$1

SETENV LD_LIBRARY_PATH path/to/smokeview/shared/libraries

path/to/smokeview $arg1

Original comment by gfor...@gmail.com on 20 Jul 2010 at 2:50

GoogleCodeExporter commented 9 years ago
Thanks, finally I used a bash shell script like 

#!/bin/bash
LD_LIBRARY_PATH=/home/mcgrok/FDS/FDS5/bin/lib64
export LD_LIBRARY_PATH

problem is that variables can only be exported 
to subordinate processes so that I need to 
include the following alias into my .bashrc file

alias smv='. ~/bin/smvlib.sh && /home/mcgrok/FDS/FDS5/bin/smv5_linux_64'

Now it is working fine, thanks for all

Original comment by mcg...@gmail.com on 21 Jul 2010 at 11:39

GoogleCodeExporter commented 9 years ago
Hi I am experiencing similar problem

`smv5_linux_64: error while loading shared libraries: libifcore.so.5: cannot 
open shared object file: No such file or directory`

I followed all the discussion described in this section but unfortunately could 
not succed to run smokeview. the installation have all the libraries in lib64 
and again i downloaded the bundle as said in the discussion but am still can 
run the smokeview.

I am running Ubuntu 10.04 LTS - the Lucid Lynx - released in April 2010
with fds553 and smokeview5.6

Regards

Original comment by bigz...@gmail.com on 16 Apr 2012 at 2:08