本文介绍了Rccp失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

R Open不能在OSX(可能是linux)上使用Rcpp,因为我们缺少一堆库。 


library(Rcpp)

evalCpp(" 2 + 2")



clang:错误:没有这样的文件或目录:'/ usr / local / lib / libcairo.a'

clang:错误:没有这样的文件或目录:'/ usr / local / lib / libpixman-1.a'
$
clang:错误:没有这样的文件或目录:' /usr/local/lib/libfreetype.a'
$
clang:错误:没有这样的文件或目录:'/ usr / local / lib / libfontconfig.a'

clang :错误:没有这样的文件或目录:'/ usr / local / lib / libreadline.a'
$
make:*** [sourceCpp_1.so]错误1

这个问题是在feb的stackoverflow上引发的。
http://stackoverflow.com/questions/35687820/osx-rcpp-sourcecpp-errors


解决方案

R Open does not work with Rcpp on OSX (and probably linux) as we're missing a bunch of libraries. 

library(Rcpp)
evalCpp("2 + 2")

clang: error: no such file or directory: '/usr/local/lib/libcairo.a'
clang: error: no such file or directory: '/usr/local/lib/libpixman-1.a'
clang: error: no such file or directory: '/usr/local/lib/libfreetype.a'
clang: error: no such file or directory: '/usr/local/lib/libfontconfig.a'
clang: error: no such file or directory: '/usr/local/lib/libreadline.a'
make: *** [sourceCpp_1.so] Error 1

This issue was raised on stackoverflow in feb
http://stackoverflow.com/questions/35687820/osx-rcpp-sourcecpp-errors

解决方案


这篇关于Rccp失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-27 20:33