[R-SIG-Mac] R CMD check fails on Snow Leopard
Simon Urbanek
simon.urbanek at r-project.org
Wed Apr 28 23:38:07 CEST 2010
On Apr 28, 2010, at 5:22 PM, cstrato wrote:
> Dear all,
>
> Last week I have installed on my MacBook Pro Snow Leopard 10.6.3 and downloaded from Apple Xcode 3.2.2. Then I have installed R-2.11.0.pkg for Mac OS X 10.5 (Leopard) and higher.
>
> Now I wanted to run R CMD check for my BioC package which contains C++ code but got the following error:
>
> installing to /Volumes/CoreData/CRAN/xps.Rcheck/xps/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 library '/Volumes/CoreData/CRAN/xps.Rcheck/xps/libs/i386/xps.so':
> dlopen(/Volumes/CoreData/CRAN/xps.Rcheck/xps/libs/i386/xps.so, 6): no suitable image found. Did find:
> /Volumes/CoreData/CRAN/xps.Rcheck/xps/libs/i386/xps.so: mach-o, but wrong architecture
> ERROR: loading failed
> * removing '/Volumes/CoreData/CRAN/xps.Rcheck/xps'
>
> Do you have any hint what might be the reason for this error?
Apparently the R and your package have different architectures. The reason is most likely your package - often badly written Makevars or Makefile if some dependencies are used, or stale object files in the sources (failure to clean up) etc. You'd have to show us the package and exactly how you're trying to instal it if we are to help you further.
> As far as I understand this message means that Snow Leopard is the wrong architecture, why?
>
You understand the message incorrectly - it tells you the R (which is the one loading the package) cannot find binary of the same architecture in the package, but it can find another, different, architecture instead. "Snow Leopard" is not an architecture it's an operating system.
Cheers,
Simon
More information about the R-SIG-Mac
mailing list