Matias Silva
2009-Sep-02 01:05 UTC
[Rd] Installing rJava RJDBC bad interpreter: Permission denied
Trying to install the above two packages via the "install.packages("package_name")" command and the "R CMD INSTALL file.tar.gz". I receive the following error either way "sh: ./configure: /bin/sh: bad interpreter: Permission denied". I have tried to chmod and chown permissions and also ran dos2unix in hopes that there is a CRLF in some of the tar.gz files, but that doesn't seem to fix the problem.? I'm looking for any help I can get.? I have tried the r-help and r-packages list. I have tried this with the compiled version of R and the RPM version of R. * Installing *source* package ?rJava? ... sh: ./configure: /bin/sh: bad interpreter: Permission denied ERROR: configuration failed for package ?rJava? * Removing ?/usr/lib64/R/library/rJava? * Installing *source* package ?RJDBC? ... ** R ** preparing package for lazy loading Error : package 'rJava' required by 'RJDBC' could not be found ERROR: lazy loading failed for package ?RJDBC? * Removing ?/usr/lib64/R/library/RJDBC? I'm using the rpm version of R found here http://cran.cnr.berkeley.edu/bin/linux/redhat/el5/x86_64 I ran the "R CMD javareconf" as root and set the JAVA_HOME environment variable. Here is my system configuration: OS: CentOS 5.2 x86_64 JDK: java version "1.6.0_12" Java(TM) SE Runtime Environment (build 1.6.0_12-b04) Java HotSpot(TM) 64-Bit Server VM (build 11.2-b01, mixed mode) R: 2.9.1 rJava: rJava_0.7-0.tar.gz RJDBC: RJDBC_0.1-5.tar.gz Thanks for your time and knowledge. Best, Matt
Simon Urbanek
2009-Sep-02 12:12 UTC
[Rd] Installing rJava RJDBC bad interpreter: Permission denied
On Sep 1, 2009, at 21:05 , Matias Silva wrote:> Trying to install the above two packages via the > "install.packages("package_name")" command and > the "R CMD INSTALL file.tar.gz". > > I receive the following error either way "sh: ./configure: /bin/sh: > bad interpreter: Permission denied". > I have tried to chmod and chown permissions and also ran dos2unix in > hopes that there is a CRLF > in some of the tar.gz files, but that doesn't seem to fix the problem.The problem is in your system not the packages. Please read the error message carefully - it says your /bin/sh is broken. Fix it and all should be well. Cheers, S> I'm looking for any help > I can get. I have tried the r-help and r-packages list. I have > tried this with the compiled > version of R and the RPM version of R. > > * Installing *source* package ?rJava? ... > sh: ./configure: /bin/sh: bad interpreter: Permission denied > ERROR: configuration failed for package ?rJava? > * Removing ?/usr/lib64/R/library/rJava? > * Installing *source* package ?RJDBC? ... > ** R > ** preparing package for lazy loading > Error : package 'rJava' required by 'RJDBC' could not be found > ERROR: lazy loading failed for package ?RJDBC? > * Removing ?/usr/lib64/R/library/RJDBC? > > I'm using the rpm version of R found here http://cran.cnr.berkeley.edu/bin/linux/redhat/el5/x86_64 > I ran the "R CMD javareconf" as root and set the JAVA_HOME > environment variable. > > Here is my system configuration: > OS: CentOS 5.2 x86_64 > > JDK: java version "1.6.0_12" > Java(TM) SE Runtime Environment (build 1.6.0_12-b04) > Java HotSpot(TM) 64-Bit Server VM (build 11.2-b01, mixed mode) > > R: 2.9.1 > rJava: rJava_0.7-0.tar.gz > RJDBC: RJDBC_0.1-5.tar.gz > > Thanks for your time and knowledge. > > Best, > Matt > > ______________________________________________ > R-devel at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-devel > >