我只是想讓Rcpp在我的Mac上運行,但我掙扎。我已經安裝了命令行工具。我已經安裝了Rcpp和內聯包。我嘗試在R中運行以下腳本,並獲取以下錯誤。與Xcode 5.0和OSX 10.8.5和R 3.0.2 Rcpp錯誤
fx <- cxxfunction(signature(x = "numeric"),
'NumericVector xx(x);
return wrap(std::accumulate(xx.begin(), xx.end(), 0.0));',
plugin = "Rcpp",verbose=TRUE)
Error in compileCode(f, code, language = language, verbose = verbose) :
Compilation ERROR, function(s)/method(s) not created! /bin/sh: llvm-g++-4.2: command not found
make: *** [file2e731b1c0ff8.o] Error 127
我意識到這與發佈的問題非常相似。但是,如果能夠找到makevars文件的更多細節,我會很感激。
謝謝。
同樣的問題已經被詢問和回答了。 –