llancet has asked for the wisdom of the Perl Monks concerning the following question:

The file exists, and permission seems to be allowed, but I cannot get that:
$ perl -I /usr/lib64/R/library/RSPerl/perl/x86_64-linux-thread-multi - +e 'use R;' Can't load '/usr/lib64/R/library/RSPerl/perl/x86_64-linux-thread-multi +/auto/R/R.so' for module R: libPerlConverter.so: cannot open shared o +bject file: No such file or directory at /usr/lib64/perl5/DynaLoader. +pm line 200. at -e line 1 Compilation failed in require at -e line 1. BEGIN failed--compilation aborted at -e line 1. $ ls -l /usr/lib64/R/library/RSPerl/perl/x86_64-linux-thread-multi/aut +o/R/R.so -rwxr-xr-x. 1 root root 91628 Jun 19 11:11 /usr/lib64/R/library/RSPerl +/perl/x86_64-linux-thread-multi/auto/R/R.so

Replies are listed 'Best First'.
Re: Cannot find an exist shared lib?
by ikegami (Patriarch) on Jun 19, 2010 at 03:55 UTC
    perl -I /usr/lib64/R/library/RSPerl/perl/x86_64-linux-thread-multi -e +'use R;'

    should be

    perl -I /usr/lib64/R/library/RSPerl/perl -e 'use R;'

    But I don't know if that's going to help.

Re: Cannot find an exist shared lib?
by cdarke (Prior) on Jun 19, 2010 at 15:32 UTC
    I think you are mis-reading the eror message. Seems to me it is complaining about libPerlConverter.so, not R.so (the one you did an ls on).
      Doesn't cannot find A for B means B want A, but cannot find A?
        Check to see if the .so files are readable. It is most likely a permission issue.