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'
Prof Brian Ripley
2012-Feb-24 17:56 UTC
[R] R CMD INSTALL fails where R CMD check succeeds.
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