Find the answer to your Linux question:
Results 1 to 2 of 2
Hello, I am trying to install a program, which is dependent on another program called R (for statistical processing). Here is the error message I get: root@darkstar:/home/gemm/UCS# perl System/Install.perl -R ...
  1. #1
    Just Joined!
    Join Date
    Sep 2008
    Posts
    32

    Program installed, but interpreter cannot be recognized

    Hello,

    I am trying to install a program, which is dependent on another program called R (for statistical processing).
    Here is the error message I get:

    root@darkstar:/home/gemm/UCS# perl System/Install.perl -R /usr/local/lib/R/bin/R
    Error: Can't run the R interpreter (/usr/local/lib/R/bin/R).
    Please make sure that R is installed and specify the fully qualified
    filename of the R interpreter with -R if necessary (see "doc/install.txt").

    I do have installed the program R, and the interpreter R is in /usr/local/lib/R/bin/R - I can run it from there. I am under root when I try to install it. In doc/install.txt is written to try -R /usr/local/lib/R/bin/R or -rh /usr/local/lib/R/bin/R which I am actually doing. I cannot understand why I am getting this error message. Thank you very much in advance.

  2. #2
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, or in a galaxy far, far away.
    Posts
    8,970
    There are a couple of possibilities here. In order of likelihood:

    1. You don't have permission to run the executable /usr/local/lib/R/bin/R. Check this with the command "ls -l /usr/local/lib/R/bin/R". If your user id is not the owner of this file, then you need to see if it is executable by anyone other than the owner. IE, the permissions should be something like this: -rwxr-xr-x
    The x's indicate whether or not the file is executable by the owner (first x), the group (second x), or anyone (the third x). If you don't have execute permissions, then execute the following command (assuming you have sudo permission): sudo chmod +x /usr/local/lib/R/bin/R
    2. There may be parts to R that have to be in your execution path. Add /usr/local/lib/R/bin to your path. Assuming you are running the bash shell, then execute this command: export PATH=${PATH}:/usr/local/lib/R/bin
    3. You may need the shared libraries used by R and installed in /usr/local/lib or /usr/local/lib/R in your library load path. Execute the command: export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/usr/local/lib:/usr/local/lib/R

    You can put these export commands, if necessary, in your bash profile. The file for that is ~/.bash_profile

    I hope this helps.
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...