Hi everyone,
After some tinkering I've got Rapache (mostly!) up and running (R
2.11.0; Apache 2.2.3; CentOS 5). It's really great and basic
operations and input forms seem to be working well, but I'm running
into problems when I try to include plots. My impression from the
examples and discussion is that plots rely on the Cairo (or previously
GDD) library. Is this correct?
Acting under this assumption, I've tried to install Cairo through R
with the command: install.packages('Cairo',lib='/usr/lib/R/library').
This command worked for other packages (brew, ggplot2) but in this
case gives the error and output:
################################################################
trying URL '
http://software.rc.fas.harvard.edu/mirrors/R/src/contrib/
Cairo_1.4-5.tar.gz'
Content type 'application/x-gzip' length 75318 bytes (73 Kb)
opened URL
==================================================
downloaded 73 Kb
* installing *source* package 'Cairo' ...
sh: ./configure: /bin/sh: bad interpreter: Permission denied
ERROR: configuration failed for package 'Cairo'
* removing '/usr/lib/R/library/Cairo'
The downloaded packages are in
'/tmp/RtmpEaI8uF/downloaded_packages'
Updating HTML index of packages in '.Library'
Warning message:
In install.packages("Cairo", lib = "/usr/lib/R/library") :
installation of package 'Cairo' had non-zero exit status
################################################################
I've also tried installing using R CMD INSTALL but get a similar
error. Based on the content of the error, I tried testing out the
permissions as as suggested here:
http://www.mail-archive.com/r-d...@r-project.org/msg17561.html.
Briefly:
################################################
Created sh script called /tmp/junk.sh containing
#!/bin/sh
echo Hello at `date`
Run:
chmod +x /tmp/junk.sh
sh -c /tmp/junk.sh
Output:
-bash: /tmp/junk.sh: bin/sh: bad interpreter: Permission denied
##############################################
This output seems consistent with the library installation error, so
maybe this is my problem? Unfortunately, I'm not sure how to fix
this. I've tried chmod 1777 /tmp before installing Cairo, but no
change in outcome. The previously mentioned post seems to recommend
changing the fstab file, but my /etc/fstab file is fairly minimal,
containing only:
none /dev/pts devpts rw 0 0
Because it didn't seem to include the /tmp has noexec mentioned in the
post, I wasn't sure what change and so left it alone. Is there
something I should add or change here?
In short, are my plotting problems likely caused by the lack of the
Cairo library? If so, how might I change the permissions (or
something else?) in order to install it?
Thanks,
LJ