From lgautier at gmail.com  Sat Nov 29 15:35:21 2008
From: lgautier at gmail.com (Laurent Gautier)
Date: Sat, 29 Nov 2008 15:35:21 +0100
Subject: [Rd] unrelated software install triggering an error from R's
 install script on Mac OS X 10.5
Message-ID: <49315329.7050703@gmail.com>


Dear List,


I am having a problem triggered by having R-2.8
(R version 2.8.0 Patched (2008-11-15 r46953)) installed on Mac OS X 
10.5.

The steps needed to generate the error are:

- install a binary distribution of R (default location)
- add R to the PATH
- install the python module pycairo
(http://www.cairographics.org/releases/pycairo-1.4.12.tar.gz)

That last step results in an error, and the error message point in the 
direction of the R installation (see below):


Making install in cairo
test -z "/sw/lib/python2.5/site-packages/cairo" || .././install-sh -c -d 
"/sw/lib/python2.5/site-packages/cairo"
  /bin/sh ../libtool --mode=install 
/Library/Frameworks/R.framework/Resources/bin/install -c  '_cairo.la' 
'/sw/lib/python2.5/site-packages/cairo/_cairo.la'
/Library/Frameworks/R.framework/Resources/bin/install -c .libs/_cairo.so 
/sw/lib/python2.5/site-packages/cairo/_cairo.so
/Library/Frameworks/R.framework/Resources/bin/install: line 113: 
/sh/dcf.sh: No such file or directory
make[2]: *** [install-pycairoexecLTLIBRARIES] Error 1
make[1]: *** [install-am] Error 2
make: *** [install-recursive] Error 1


Editing /Library/Frameworks/R.framework/Resources/bin/install, and 
hard-code the right path to R_SHARE_DIR is obviously an option, but I 
would like to hear that something more elegant is possible.




Laurent



[Rd] unrelated software install triggering an error from R's install script on Mac OS X 10.5
Laurent Gautier