configure flag for compilation question..
Quoted 8 lines · ---- Martin Bochnig
Quoted 5 lines · Ben Taylor
As Martin indicated, setting
LD_LIBRARY_PATHmay get you a running binary, butLD_LIBRARY_PATHis the wrong answer for Solaris.
Quoted 8 lines
My answer had been a bit longer:
"Read ld.so.1(1)
i.e.# man ld.so.1Then: *One* option is to set $LD_LIBRARY_PATH (or potentially $LD_LIBRARY_PATH_64 [not required])."
I'm not saying it doesn't work. But properly compiled programs for Solaris include the run time paths to the libraries so an LD_LIBRARY_PATH environment variable is not required.
LD_LIBRARY_PATH is interesting to test out new versions of support libraries without actually having to recompile, so it has it's uses. but too often, folks use LD_LIBRARY_PATH as a panacea on Solaris to fix poorly compiled programs.
Ben
Quoted 29 lines · Ben Taylor
Quoted 11 lines · ---- Martin Bochnig
Quoted 7 lines · Ben Taylor
As Martin indicated, setting
LD_LIBRARY_PATHmay get you a running binary, butLD_LIBRARY_PATHis the wrong answer for Solaris.Quoted 10 lines
My answer had been a bit longer:
"Read ld.so.1(1)
i.e.# man ld.so.1Then: *One* option is to set $LD_LIBRARY_PATH (or potentially $LD_LIBRARY_PATH_64 [not required])."
I'm not saying it doesn't work. But properly compiled programs for Solaris include the run time paths to the libraries so an
LD_LIBRARY_PATHenvironment variable is not required.
Quoted 8 lines
LD_LIBRARY_PATHis interesting to test out new versions of support libraries without actually having to recompile, so it has it's uses. but too often, folks useLD_LIBRARY_PATHas a panacea on Solaris to fix poorly compiled programs.Ben
He is experimenting and trying out a bit.
Not building to be published packages.
I advised him to read and understand ld.so.1(1).
And I mentioned $LD_LIBRARY_PATH as *one* possible option for him to get quick results.