[R-SIG-Mac] Difficulty installing package that works on Windows

Prof Brian Ripley ripley at stats.ox.ac.uk
Fri Oct 21 07:35:09 CEST 2011


On Thu, 20 Oct 2011, Burgette, Lane wrote:

> Hi Everyone,
>
> I'm having problems installing a package locally from source on my 
> Mac.  It was developed on a Windows 7 machine (x86-64) and loads 
> without incident under Windows (both x86-32 and x86-64) and Linux. 
> When I try to install, it steps through a bunch of g++ calls, and 
> then gives the following error message:

The actual command here has been truncated ....

> L/Library/Frameworks/R.framework/Resources/lib/x86_64 -lRblas 
> -lgfortran -F/Library/Frameworks/R.framework/.. -framework R 
> -Wl,-framework -Wl,CoreFoundation 
> /Library/Frameworks/R.framework/Versions/2.13/Resources/library/Rcpp/lib/x86_64/libRcpp.a: 
> line 1: syntax error near unexpected token `newline' 
> /Library/Frameworks/R.framework/Versions/2.13/Resources/library/Rcpp/lib/x86_64/libRcpp.a: 
> line 1: `!<arch>' installing to 
> /Library/Frameworks/R.framework/Versions/2.13/Resources/library/growcurves/libs/x86_64
>
> In the end, it fails to load.  (See below.)  I assume this is due to these errors.  Any thoughts as to what I am doing wrong?

I don't think you are: the problem seems to be in the way Rcpp's 
library is built.  You could try rebuilding it, then ask on Rcpp's 
lists.

>
> Thanks,
>
> Lane
>
>
> ** R
> ** data
> ** 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 '/Library/Frameworks/R.framework/Versions/2.13/Resources/library/growcurves/libs/x86_64/growcurves.so':
>  dlopen(/Library/Frameworks/R.framework/Versions/2.13/Resources/library/growcurves/libs/x86_64/growcurves.so, 6): Symbol not found: __ZTIN4Rcpp12not_a_matrixE
>  Referenced from: /Library/Frameworks/R.framework/Versions/2.13/Resources/library/growcurves/libs/x86_64/growcurves.so
>  Expected in: flat namespace
> in /Library/Frameworks/R.framework/Versions/2.13/Resources/library/growcurves/libs/x86_64/growcurves.so
> Error: loading failed
> Execution halted
> ERROR: loading failed
> * removing '/Library/Frameworks/R.framework/Versions/2.13/Resources/library/growcurves'
>
>
>> sessionInfo()
> R version 2.13.2 (2011-09-30)
> Platform: x86_64-apple-darwin9.8.0/x86_64 (64-bit)
>
> locale:
> [1] en_US.UTF-8/en_US.UTF-8/C/C/en_US.UTF-8/en_US.UTF-8
>
> attached base packages:
> [1] grid      stats     graphics  grDevices utils     datasets  methods   base
>
> other attached packages:
> [1] ggplot2_0.8.9        proto_0.3-9.2        reshape_0.8.4        plyr_1.6             RcppArmadillo_0.2.29
> [6] Rcpp_0.9.7
>
>
> __________________________________________________________________________
>
> This email message is for the sole use of the intended r...{{dropped:9}}
>
> _______________________________________________
> R-SIG-Mac mailing list
> R-SIG-Mac at r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-mac
>

-- 
Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595



More information about the R-SIG-Mac mailing list