Skip to content

Commit

Permalink
Take into account differences in install paths for RedHat systems
Browse files Browse the repository at this point in the history
  • Loading branch information
tmadlener committed May 25, 2020
1 parent 2b26064 commit 7148efd
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,12 @@ unamestr=`uname`
if [[ "$unamestr" == 'Linux' ]]; then
echo $LD_LIBRARY_PATH | grep $PODIO/lib >& /dev/null
if [ $? == "1" ]; then
export LD_LIBRARY_PATH=$PODIO/lib:$LD_LIBRARY_PATH
# RedHat based put the libraries into lib64
if [ -d $PODIO/lib64 ]; then
export LD_LIBRARY_PATH=$PODIO/lib64:$LD_LIBRARY_PATH
else
export LD_LIBRARY_PATH=$PODIO/lib:$LD_LIBRARY_PATH
fi
fi
elif [[ "$unamestr" == 'Darwin' ]]; then
# This currenty does not work on OS X as DYLD_LIBRARY_PATH is ignored
Expand Down

0 comments on commit 7148efd

Please sign in to comment.