Quote:
As per the requirement library should be picked from /opt/trs/lib64.
|
if a file with the SAME NAME -- a very bad idea ! -- rename one of them !!!
is in /usr/lib AND in /opt/trs/lib64
the order of being used is FIRST COME FIRST SERVED
you have the needed and REQUIRED "/usr/lib ( a 32 bit folder!!!! ) coming before the 64 BIT /opt/trs/lib64
so you WILL have issues
the 32 bit one is being used
rename the one you placed in "/opt/trs/lib64 "
or
explicatly call it in your build line or configure.in or manually
Code:
export LD_LIBRARY_PATH=/opt/trs/lib64:$LD_LIBRARY_PATH
./configure -- prefix=/usr
make
su
make install
on 64 bit MULTI lib systems it is best to make 100 SURE that the 64 bit libs are seen FIRST by gcc
not everything dose a good job checking 32 VS 64 bit
in /etc/profile.d
write a script
or ( and this can be undone by updates )
edit /etc/profile
or if /etc/profile is set to look for a "/etc/profile.local" file make one ( this will not be undone by updates)
-- profile.local
Code:
PATH=$PATH:-- set them to YOUR system
C_INCLUDE_PATH= -- my CUDA install include folder
CPLUS_INCLUDE_PATH= -- my CUDA install include folder
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib64:/usr/lib:-- and so on
PKG_CONFIG_PATH=/???/??? -- if you have a few -- I DO
export PATH LD_LIBRARY_PATH PKG_CONFIG_PATH C_INCLUDE_PATH CPLUS_INCLUDE_PATH
place the 64 bit lib folders before the 32 bit ones
then reboot and CHECK IT!!!
Code:
echo $LD_LIBRARY_PATH