Compile error

I have a problem installing highlighting (yes, I know this package was removed from CRAN - I tried to install the latest version here ). I'm not sure what the problem is, but it looks like there is a problem with compiling g ++.

The error I am getting is

> 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’

      

Session information

> 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    

      

+3


source to share


1 answer


Scorpio, I'm afraid Romain has allowed one or two of his bags to loosen a little.

We still use highlighting in the Rcpp * family, so when I needed it recently on another machine, I grabbed the SVN version that still works great for me - svn revision 355 from a dedicated repo on R-Forge. You need to install both the parser and highlight, which works great for me on Linux.



Allocation is orphaned, so if you want to accept it ...

+5


source







All Articles