我在安装 highlight 时遇到问题(是的,我知道此软件包已从 CRAN 中删除 - 我尝试在此处安装最新版本)。我不确定问题是什么,但似乎 g++ 编译存在问题。
我得到的错误是
> install.packages("~/Downloads/highlight_0.3.2.tar.gz", repos = NULL, type = "source", lib="/Library/Frameworks/R.framework/Versions/2.15/Resources/library")
g++ -arch i386 -I/Library/Frameworks/R.framework/Resources/include -
...
i686-apple-darwin11-llvm-g++-4.2: No such file or directory
i686-apple-darwin11-llvm-g++-4.2: No such file or directory
i686-apple-darwin11-llvm-g++-4.2: No such file or directory
make: *** [highlight.so] Error 1
ERROR: compilation failed for package ‘highlight’
会话信息
> sessionInfo()
R version 2.15.2 Patched (2013-01-05 r61562)
Platform: x86_64-apple-darwin9.8.0/x86_64 (64-bit)
locale:
[1] en_CA.UTF-8/en_CA.UTF-8/en_CA.UTF-8/C/en_CA.UTF-8/en_CA.UTF-8
attached base packages:
[1] tools stats graphics grDevices utils datasets methods base
other attached packages:
[1] parser_0.1 codetools_0.2-8 Rcpp_0.10.2