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'
R CMD INSTALL fails where R CMD check succeeds.
3 messages · Rob Steele, Brian Ripley
On 24/02/2012 15:22, Rob Steele wrote:
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.
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 ....
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'
Brian D. Ripley, ripley at stats.ox.ac.uk Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/ University of Oxford, Tel: +44 1865 272861 (self) 1 South Parks Road, +44 1865 272866 (PA) Oxford OX1 3TG, UK Fax: +44 1865 272595
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:
Guess: did you set TMPDIR to somewhere you are allowed to execute scripts?