[Rcpp-devel] More Rccp and RccpArmadillo Errors on Mavericks

Kevin Ushey kevinushey at gmail.com
Mon Nov 4 18:44:54 CET 2013


The .tgz files aren't source packages; those are the formats given to
the binary packages distributed on CRAN. You should be able to install
the source versions with install.packages( c("Rcpp", "RcppArmadillo"),
type="source") (and these are served up as .tar.gz).

Make sure your ~/.R/Makevars file is set up accordingly as well; e.g.
the answers here:
http://stackoverflow.com/questions/19546672/rcpp-error-with-xcode-5-0-and-osx-10-8-5-and-r-3-0-2

-Kevin

On Mon, Nov 4, 2013 at 9:35 AM, Scott Monroe <monroeleescott at gmail.com> wrote:
> This is sort of piggy-backing on the thread with Michael and Romain.
>
> I can't get RccpArmadillo working properly and am looking for suggestions.
>
> I have installed:
> R 3.0.2
> Xcode 5.0.1 and command line tools
> gfortran libs (i.e., gfortran-4.9-bin.tar)
> Rcpp package from source (i.e., Rcpp_0.10.6.tgz)
> RcppArmadillo package from source (i.e., RcppArmadillo_0.3.920.1.tgz)
>
> below, "rowSums.cpp" contains a function Romain Francis wrote, and can be
> seen in the middle of this post:
> http://www.mail-archive.com/rcpp-devel@lists.r-forge.r-project.org/msg05742.html
>
> In the R session, I have:
>
>> evalCpp("1+1")
> [1] 2
>
>> sourceCpp("rowSums.cpp")
> Error in
> dyn.load("/var/folders/x6/r9tqs57504z47hfz0y3hzplw0000gn/T//RtmppKYsAU/sourcecpp_1b0162749aaa/sourceCpp_8960.so")
> :
>   unable to load shared object
> '/var/folders/x6/r9tqs57504z47hfz0y3hzplw0000gn/T//RtmppKYsAU/sourcecpp_1b0162749aaa/sourceCpp_8960.so':
>
> dlopen(/var/folders/x6/r9tqs57504z47hfz0y3hzplw0000gn/T//RtmppKYsAU/sourcecpp_1b0162749aaa/sourceCpp_8960.so,
> 6): Symbol not found:
> __ZNK4Rcpp7RObject4attrERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE
>   Referenced from:
> /var/folders/x6/r9tqs57504z47hfz0y3hzplw0000gn/T//RtmppKYsAU/sourcecpp_1b0162749aaa/sourceCpp_8960.so
>   Expected in: flat namespace
>  in
> /var/folders/x6/r9tqs57504z47hfz0y3hzplw0000gn/T//RtmppKYsAU/sourcecpp_1b0162749aaa/sourceCpp_8960.so
>
>> sessionInfo()
> R version 3.0.2 (2013-09-25)
> Platform: x86_64-apple-darwin10.8.0 (64-bit)
>
> locale:
> [1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8
>
> attached base packages:
> [1] stats     graphics  grDevices utils     datasets  methods   base
>
> other attached packages:
> [1] RcppArmadillo_0.3.920.1 Rcpp_0.10.6
>
> loaded via a namespace (and not attached):
> [1] tools_3.0.2
>
>
> Any suggestions?  Thanks.
>
> _______________________________________________
> Rcpp-devel mailing list
> Rcpp-devel at lists.r-forge.r-project.org
> https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel


More information about the Rcpp-devel mailing list