出現(xiàn)error: unable to load shared object '/some/dir/rJava/libs/rJava.so': libjvm.so: cannot open shared object file: No such file or directory
問題的解決方案:
$sudo updatedb
$locate libjvm.so
/usr/lib/debug/usr/lib/jvm/java-7-openjdk-amd64/jre/lib/amd64/server/libjvm.so
/usr/lib/debug/usr/lib/jvm/java-7-openjdk-amd64/jre/lib/amd64/zero/libjvm.so
/usr/lib/jvm/java-7-openjdk-amd64/jre/lib/amd64/jamvm/libjvm.so
/usr/lib/jvm/java-7-openjdk-amd64/jre/lib/amd64/server/libjvm.so
/usr/lib/jvm/java-7-openjdk-amd64/jre/lib/amd64/zero/libjvm.so
$sudo ln -s /usr/lib/jvm/java-7-openjdk-amd64/jre/lib/amd64/server/libjvm.so /usr/lib/
/usr/lib目錄紡織的是屯换,執(zhí)行文件所需的函數(shù)庫。usr是UNIX Software Resource的縮寫泽本,是UNIX 操作系統(tǒng)軟件資源所放置的目錄撬腾。