On a ubuntu linux computer (Feisty, i386), I compile R and additional packages from source. The compiler is gcc 4.1.2.
The problem is, I can run "sudo R" and successfully compile all packages (e.g., MASS, lattice) except rggobi. The error seems to be in display.c. My ggobi is in /usr/local/, which R can find. I don't think this is a dependence issue because install.packages(..., dependence=TRUE). The script complains about not finding "/usr/local/lib/R/library/rggobi/libs/*", but that directory is there, with one file "rggobi.so" (possibly from an earlier successful compilation). Any suggestions on what I am doing wrong? Many thanks in advance. Yuelin. --------- R output --------------- > install.packages("rggobi", repos = "http://lib.stat.cmu.edu/R/CRAN", > dependencies = TRUE, clean = TRUE) trying URL 'http://lib.stat.cmu.edu/R/CRAN/src/contrib/rggobi_2.1.6.tar.gz' Content type 'application/x-gzip' length 424483 bytes opened URL ================================================== downloaded 414Kb * Installing *source* package 'rggobi' ... checking for pkg-config... /usr/bin/pkg-config checking pkg-config is at least version 0.9.0... yes checking for GGOBI... yes configure: creating ./config.status config.status: creating src/Makevars ** libs gcc -std=gnu99 -I/usr/local/lib/R/include -I/usr/local/lib/R/include -g -DUSE_EXT_PTR=1 -D_R_=1 -I/usr/local/include/ggobi -I/usr/include/gtk-2.0 -I/usr/include/libxml2 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/local/include -fpic -g -O2 -c brush.c -o brush.o [... snipped ...] gcc -std=gnu99 -I/usr/local/lib/R/include -I/usr/local/lib/R/include -g -DUSE_EXT_PTR=1 -D_R_=1 -I/usr/local/include/ggobi -I/usr/include/gtk-2.0 -I/usr/include/libxml2 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/local/include -fpic -g -O2 -c dataset.c -o dataset.o gcc -std=gnu99 -I/usr/local/lib/R/include -I/usr/local/lib/R/include -g -DUSE_EXT_PTR=1 -D_R_=1 -I/usr/local/include/ggobi -I/usr/include/gtk-2.0 -I/usr/include/libxml2 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/local/include -fpic -g -O2 -c display.c -o display.o display.c: In function ‘RS_GGOBI_createDisplay’: display.c:37: warning: passing argument 3 of ‘klass->createWithVars’ makes pointer from integer without a cast display.c:37: warning: passing argument 4 of ‘klass->createWithVars’ from incompatible pointer type display.c:37: warning: passing argument 5 of ‘klass->createWithVars’ from incompatible pointer type display.c:37: error: too many arguments to function ‘klass->createWithVars’ display.c:39: warning: passing argument 4 of ‘klass->create’ from incompatible pointer type display.c:39: error: too many arguments to function ‘klass->create’ make: *** [display.o] Error 1 chmod: cannot access `/usr/local/lib/R/library/rggobi/libs/*': No such file or directory ERROR: compilation failed for package 'rggobi' ** Removing '/usr/local/lib/R/library/rggobi' ** Restoring previous '/usr/local/lib/R/library/rggobi' ______________________________________________ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.