Skip to content
Prev 15244 / 63424 Next

LD_LIBRARY_PATH is harmfull

On Mon, 21 Feb 2005, Alexander Klimov wrote:

            
Something is very strange: notice you say you have 3.4.3 and it is looking 
for GCC_3.3!  I get

         libgcc_s.so.1 =>         /usr/local/lib/libgcc_s.so.1

and no version number.
Yes.  That is not what you say happens for you, though, rather you are 
sayin *instead of*.
You need something to find R's shared libraries, e.g. libRlapack.
The issue is if they are ignored, not if they are overridden.
No, as I don't have your layout.  But it _is_ there:

If you have libraries and header files, e.g., for @acronym{GNU}
readline, in non-system directories, use the variables @code{LDFLAGS}
(for libraries, using @samp{-L} flags to be passed to the linker) and
@code{CPPFLAGS} (for header files, using @samp{-I} flags to be passed to
the C/C++ preprocessors), respectively, to specify these locations.
These default to @file{/usr/local/lib} and @file{/usr/local/include} to
catch the most common cases.

[You clearly do so have.]

...

Library paths specified as @option{-L/lib/path} in @code{LDFLAGS} are
collected together and prepended to @env{LD_LIBRARY_PATH} (or your
system's equivalent), so there should be no need for @option{-R} or
@option{-rpath} flags.

and in config.site.
It gives an example of setting LDFLAGS: you cannot expect every user's 
setup to be mentioned.
Windows (probably the most-used platform for R).

I actually said -R is not portable, and many platforms do not have that.