Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Compile error installing highlight package

Tags:

macos

r

I am having a problem installing highlight (yes I am aware this package has been removed from CRAN - I tried to install the latest version here). I am not positive what the problem is, but it seems like there is an issue with the g++ compiling.

The error I get 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 info

> 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    
like image 861
sckott Avatar asked Dec 13 '25 20:12

sckott


1 Answers

Scott, I fear that Romain let one or two of his packages decay a little.

We still use highlight in the Rcpp* family so when I needed it recently on another machine, I took the SVN version which still builds fine for me -- svn revision 355 of the highlight repo on R-Forge. You need to install both parser and highlight which build just fine for me on Linux.

Highlight is orphaned so if you feel like adopting it...

like image 193
Dirk Eddelbuettel Avatar answered Dec 16 '25 10:12

Dirk Eddelbuettel



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!