Error when with Xcode 5.0 and Rcpp (Command Line Tools ARE installed)

前端 未结 3 2197
隐瞒了意图╮
隐瞒了意图╮ 2020-12-01 04:49

I have a new iMac and I\'m trying to run code using the Rcpp library that has been working on both my old iMac and Macbook Pro without issue. I have tried everything I can\

3条回答
  •  失恋的感觉
    2020-12-01 05:28

    Quick guess:

    1. You are running the pre-built R binary which Simon built / CRAN provides.

    2. R stores its configuration options from its compile time, those influence its run-time.

    3. Check via the file $R_HOME/etc/Makeconf and look at CC and CXX.

    4. As Romain suggested, override CC and CXX via a file ~/.R/Makevars.

    5. Try again.

    Edit: I just confirmed with a colleague who has the exact same issue on a Mac OS X which he just upgrades to XCode 5 -- one now needs to override CC and CXX as R was built with the previous version of XCode.

提交回复
热议问题