[R-SIG-Mac] compiling gbm

gene gene02_rsigmac at smalltime.com
Tue Feb 28 01:56:31 CET 2006

Does anyone have any advice on compiling gbm?

Here's what I get on my system:

 > sudo R CMD INSTALL ~/Desktop/gbm_1.5-5.tar.gz
* Installing *source* package 'gbm' ...
** libs
g++-3.3 -no-cpp-precomp -I/Library/Frameworks/R.framework/Resources/ 
include  -I/usr/local/include   -fno-common  -g -O2 -c adaboost.cpp - 
o adaboost.o
In file included from /usr/include/gcc/darwin/3.3/c++/bits/ 
                  from /usr/include/gcc/darwin/3.3/c++/vector:67,
                  from node_terminal.h:20,
                  from distribution.h:20,
                  from adaboost.h:20,
                  from adaboost.cpp:3:
/usr/include/gcc/darwin/3.3/c++/cstdlib:139: error: `_Exit' not declared
/usr/include/gcc/darwin/3.3/c++/cstdlib:165: error: `_Exit' not declared
make: *** [adaboost.o] Error 1
ERROR: compilation failed for package 'gbm'
** Removing '/Library/Frameworks/R.framework/Versions/2.2/Resources/ 

R version is:  "R version 2.2.0, 2005-10-06"
Mac OS X version is: 10.4.5


-- Gene

More information about the R-SIG-Mac mailing list