EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  <20032004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  <20032004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: R3.14.1 ioc example
From: Andrew Johnson <[email protected]>
To: "Kevin M. Peterson" <[email protected]>
Cc: tech-talk <[email protected]>
Date: Mon, 27 Jan 2003 17:10:14 -0600
Kevin M. Peterson wrote:

I am trying to run the ioc example from the R3.14.1 AppDevGuide
on a Redhat 8.0 machine.

...


and I get the following error message:

..../../bin/linux-x86/example: error while loading shared libraries: \
    libiocsh.so: cannot open shared object file: \
    No such file or directory

I have verified that EPICS_HOST_ARCH has been set correctly.
I have also built base and the example app with and without
$(INSTALL_LOCATION)/lib/$(EPICS_HOST_ARCH) added to
my LD_LIBRARY_PATH env. variable.

I have a feeling there is something small that I am overlooking.

If you run 'ldd ../../bin/linux-x86/example' you'll see that it is unable to find the shared libraries from base, which is where libiocsh.so is found. This is an issue that R3.14.1 doesn't really deal with properly - we need to add some additional functionality to one of the perl scripts to fix it, but there are several ways of doing so manually.


I suspect you haven't actually set the LD_LIBRARY_PATH environment variable properly - what is its exact value? It should be a colon (:) separated list of absolute path-names to the directories containing the shared libraries. However there is another way to resolve this problem which was added to R3.14.1 at a fairly late stage - edit <base>/configure/os/CONFIG_SITE.Common.linux-x86 and there uncomment and set the SHRLIB_SEARCH_DIRS path to the absolute path to <base>, then rebuild your example application (gnumake rebuild from the top level). You can add other paths to SHRLIB_SEARCH_DIRS in your application too - you'll need to edit <top>/configure/CONFIG and add the line
SHRLIB_SEARCH_DIRS += $(SNCSEQ)
to make the sequencer example build and run properly (as well as setting SNCSEQ in your <top>/configure/RELEASE file).


HTH,

- Andrew
--
A: No, see http://www.netmeister.org/news/learn2quote.html
Q: Should I include quotations after my reply ?


References:
R3.14.1 ioc example Kevin M. Peterson

Navigate by Date:
Prev: R3.14.1 ioc example Kevin M. Peterson
Next: Re: R3.14.1 ioc example Till Straumann
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  <20032004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: R3.14.1 ioc example Kevin M. Peterson
Next: Re: R3.14.1 ioc example Till Straumann
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  <20032004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 10 Aug 2010 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·