Thanks for the good suggestions!

This is how I solved it (with lots of internet help):

Create a tempdir.  Do a chmod 777 on it.

Within R

> Sys.setenv(TMPDIR="/home/erin/tempdir")
> install.packages("Cairo",depen=TRUE)

and all was well.

Thanks,
Erin



On Tue, Oct 29, 2013 at 12:24 PM, <COLLINL@pitt.edu> wrote:

> > On Tue, 29 Oct 2013, Erin Hodgess wrote:
> >
> >> I'm on a Centos 5 Red Hat system and I'm trying to install such packages
> >> as
> >> Cairo, Rserve, etc.
> >> However, I keep getting an error:  sh:/bin/sh bad interpreter.
>
> Erin, just to add to what Rich wrote, this may be a disk related result as
> well.  I get this error occasionally on my posix systems.  Assuming that
> you are using install.packages I would check the disk permissions for the
> files and for the disk they reside on.  If, for example, you are
> installing them on a disk partition that does not have the executable flag
> set in fstab you may get this error because the system is unwilling to run
> code resident on those partitions.
>
>     Collin.
>
> ______________________________________________
> R-help@r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>



-- 
Erin Hodgess
Associate Professor
Department of Computer and Mathematical Sciences
University of Houston - Downtown
mailto: erinm.hodgess@gmail.com

	[[alternative HTML version deleted]]

