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  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 
<== Date ==> <== Thread ==>

Subject: Re: R3.14.1 ioc example
From: Till Straumann <strauman@SLAC.Stanford.EDU>
To: "Kevin M. Peterson" <kmpeters@anl.gov>
Cc: tech-talk <tech-talk@aps.anl.gov>
Date: Mon, 27 Jan 2003 15:20:01 -0800
RTM

man ld.so
man ld

You have to set LD_LIBRARY_PATH when _running_, not when compiling
the 'example' application.

Under LINUX, in order to embed the library path into the executable, you have to
1) either use the -rpath option to the linker
2) set LD_RUN_PATH when linking (note the difference: LD_RUN_PATH
is evaluated by the linker, LD_LIBRARY_PATH by the runtime linker,
i.e. when executing the linked application)


--->
 g++ <cflags etc.>  <objects> -L <library paths>
      -Wl,-rpath,$(INSTALLDIR)/lib/$(EPICS_HOST_ARCH) -l <libraries>


HTH


-- Till

Kevin M. Peterson wrote:

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

I see no errors during the building of R3.14.1.

The commands I used to create the example app are the ones that
are shown in the AppDevGuide (the line continuation symbols are
only used here to keep the lines from becoming excessively long):

mkdir exampletop
cd exampletop
/net/snap-80gb/share1/epics/R3.14/base-3.14.1/bin/linux-x86/  \
    makeBaseApp.pl -t example example
/net/snap-80gb/share1/epics/R3.14/base-3.14.1/bin/linux-x86/  \
    makeBaseApp.pl -i -t example example

The last line prompts me to choose an architecture.  I choose the
only one available (linux-x86).

I then issue a make and the build completes without error.

I can then attempt to run the ioc example:

cd /net/snap-80gb/share1/epics/R3.14/exampletop/iocBoot/iocexample
...../../bin/linux-x86/example st.cmd

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.

Any suggestions would be greatly appreciated.

Kevin Peterson





Replies:
Re: R3.14.1 ioc example Andrew Johnson
References:
R3.14.1 ioc example Kevin M. Peterson

Navigate by Date:
Prev: Re: R3.14.1 ioc example Andrew Johnson
Next: Re: R3.14.1 ioc example Andrew Johnson
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 
Navigate by Thread:
Prev: Re: R3.14.1 ioc example Andrew Johnson
Next: Re: R3.14.1 ioc example Andrew Johnson
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 
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 ·