[ https://issues.apache.org/jira/browse/HADOOP-8806?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13456244#comment-13456244 ]
Colin Patrick McCabe commented on HADOOP-8806: ---------------------------------------------- bq. Why use RPATH instead of RUNPATH? RUNPATH support is a little newer than RPATH, so it seemed less likely to work with older versions of CMake or older distributions. RUNPATH is also a Linux-ism, apparently. I guess we could use RUNPATH, but it seemed simpler to go with the default (RPATH). The only difference is that RPATH supercedes {{LD_LIBRARY_PATH}}, and RUNPATH does not. bq. Have you tested with libsnappy.so in $HADOOP_ROOT/lib/native as well as installed in the system (ie in LD_LIBRARY_PATH)? Yes. > libhadoop.so: dlopen should be better at locating libsnappy.so, etc. > -------------------------------------------------------------------- > > Key: HADOOP-8806 > URL: https://issues.apache.org/jira/browse/HADOOP-8806 > Project: Hadoop Common > Issue Type: Improvement > Reporter: Colin Patrick McCabe > Assignee: Colin Patrick McCabe > Priority: Minor > Attachments: HADOOP-8806.003.patch > > > libhadoop calls {{dlopen}} to load {{libsnappy.so}} and {{libz.so}}. These > libraries can be bundled in the {{$HADOOP_ROOT/lib/native}} directory. For > example, the {{-Dbundle.snappy}} build option copies {{libsnappy.so}} to this > directory. However, snappy can't be loaded from this directory unless > {{LD_LIBRARY_PATH}} is set to include this directory. > Can we make this configuration "just work" without needing to rely on > {{LD_LIBRARY_PATH}}? -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira