[R-SIG-Mac] rgeos install

Andrew Bevan a.bevan at ucl.ac.uk
Wed Mar 2 21:41:37 CET 2011


Dear list

I am having problems installing rgeos from the R-forge site. It seems to install okay for the 64-bit version of R but not for the 32-bit version for some reason. For the latter, I get the following errors:

------------------------------

Via the install.packages route...

install.packages("rgeos", repos="http://R-Forge.R-project.org")
Installing package(s) into ‘/Users/abevan/Library/R/2.12/library’
(as ‘lib’ is unspecified)
Warning message:
In getDependencies(pkgs, dependencies, available, lib) :
 package ‘rgeos’ is not available
library(rgeos)
Error: package 'rgeos' is not installed for 'arch=i386'

------------------------------

Or via svn checkout with an explicit request for 32bit as follows:

greymatter:src abevan$ svn checkout svn://svn.r-forge.r-project.org/svnroot/rgeos
Checked out revision 222.

greymatter:src abevan$ cd rgeos

greymatter:rgeos abevan$ sudo R --arch=i386 CMD INSTALL pkg

* installing to library ‘/Users/abevan/Library/R/2.12/library’
* installing *source* package ‘rgeos’ ...
geos-config: geos-config
configure: creating ./config.status
config.status: creating src/Makevars
** libs
*** arch - i386
make: Nothing to be done for `all'.
installing to /Users/abevan/Library/R/2.12/library/rgeos/libs/i386
** R
** inst
** preparing package for lazy loading
** help
*** installing help indices
** building package indices ...
** testing if installed package can be loaded
Error in dyn.load(file, DLLpath = DLLpath, ...) : 
 unable to load shared object '/Users/abevan/Library/R/2.12/library/rgeos/libs/i386/rgeos.so':
 dlopen(/Users/abevan/Library/R/2.12/library/rgeos/libs/i386/rgeos.so, 6): no suitable image found.  Did find:
	/Users/abevan/Library/R/2.12/library/rgeos/libs/i386/rgeos.so: mach-o, but wrong architecture
ERROR: loading failed
* removing ‘/Users/abevan/Library/R/2.12/library/rgeos’

----------------------

I am using MacOSX 10.6.6 with GEOS 3.2.2-1 (the latter from William Kyngesburye site) and R 2.12.1, on a MacBook Pro 2.4GHz Intel Core Duo; also XCode 3.2.5.

Can anyone suggest how to proceed?

Many thanks

Andy

UCL Institute of Archaeology



More information about the R-SIG-Mac mailing list