Experimental Physics and Industrial Control System
|
Till Straumann wrote:
You have to set LD_LIBRARY_PATH when _running_, not when compiling
the 'example' application.
Good point.
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)
Note that setting the SHRLIB_SEARCH_DIRS variable adds the necessary
-rpath options. It has only been implemented on Linux though - we should
probably do the same thing on all Unix class OSs, but I believe Linux is
currently the only OS where we build and use shared libraries by default.
I don't like having a manual setting, but some sites need to be able to
use different paths at build time and run-time.
- 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
- Re: R3.14.1 ioc example Till Straumann
- Navigate by Date:
- Prev:
Re: R3.14.1 ioc example Till Straumann
- Next:
Tornado II on HP-UX11.0 kabe
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
2002
<2003>
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
- Navigate by Thread:
- Prev:
Re: R3.14.1 ioc example Till Straumann
- Next:
Tornado II on HP-UX11.0 kabe
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
2002
<2003>
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
|
ANJ, 10 Aug 2010 |
·
Home
·
News
·
About
·
Base
·
Modules
·
Extensions
·
Distributions
·
·
Download
·
Search
·
IRMIS
·
Talk
·
Documents
·
Links
·
Licensing
·
|