Skip to content

R CMD INSTALL fails where R CMD check succeeds.

3 messages · Rob Steele, Brian Ripley

#
This is in a 64 bit CentOS 5.6 instance at Amazon AWS with R version 
2.14.1 (2011-12-22).  It happens on several packages: RMySQL, RODBC, 
FastICA.  Many other packages install just fine.

Here's an example error message:

* installing *source* package 'RODBC' ...
** package 'RODBC' successfully unpacked and MD5 sums checked
sh: ./configure: /bin/sh: bad interpreter: Permission denied
ERROR: configuration failed for package 'RODBC'
* removing '/usr/share/R/library/RODBC'
* restoring previous '/usr/share/R/library/RODBC'
#
On 24/02/2012 15:22, Rob Steele wrote:
Your subject line cannot be really true: R CMD check calls R CMD 
INSTALL.  So this has to be about how you ran R CMD INSTALL.

Guess: did you set TMPDIR to somewhere you are allowed to execute 
scripts?  See the R-admin manual ....

  
    
#
That's it!  I was mounting /tmp with the noexec option.  That was the 
problem.  Thanks!
On 2/24/2012 12:56 PM, Prof Brian Ripley wrote: