I am using R-1.8.0 (macos 10.2.8) and have a working version of ggobi
installed. I am trying to install Rggobi and have had problems. I have
followed the instructions in the INSTALL file included with Rggobi that
include:
-----------------INSTALL FILE EXCERPT-------------
e) R interface
Install R after downloading and following instructions from
http://www.R-project.org
>From the ggobi web site, download Rggobi_0.51-0.tar.gz.
Set various system parameters:
% setenv R_HOME $HOME/R (where R got installed)
% setenv GGOBI_ROOT $HOME/ggobi (or wherever ggobi lives)
% setenv R_LIBS $HOME/R/library
% su
Set a symbolic link to the ggobi library and the gtkext library in the
/usr/local/lib directory (the one above where R resides):
% ln -s $GGOBI_ROOT/lib/libggobi.so /usr/local/lib/.
% ln -s $GGOBI_ROOT/lib/libgtkext.so /usr/local/lib/.
Install the Rggobi library:
% R CMD INSTALL Rggobi_0.51-0.tar.gz
which will create a directory called Rggobi in the
/usr/local/lib/R/library directory.
----------- END INSTALL FILE EXCERPT ---------
The libraries are dynamic libraries, so the files are called *.dylib and I
made that modification to the above. The partial output includes:
* Installing *source* package ''Rggobi'' ...
checking for gtk-config... /sw/bin/gtk-config
checking for ggobi-config... /Users/sdavis/Source/ggobi/bin/ggobi-config
CFLAGS: -I/usr/local/include/ggobi -I/sw/include/gtk-1.2
-I/sw/include/glib-1.2 -I/sw/lib/glib/include -I/usr/X11R6/include
-I/sw/include/libxml2 -I/sw/include -DUSE_XML=2 -DSUPPORT_PLUGINS=1
-DSUPPORT_INIT_FILES=1 -DHAVE_CONFIG_H -DDarwin
LIBS: -L/usr/local/lib -lggobi
GGOBI_ROOT = /usr/local/ggobi
configure: creating ./config.status
config.status: creating src/Makevars
config.status: creating inst/scripts/Rggobi.csh
config.status: creating R/GGobi.S
** libs
gcc -no-cpp-precomp -I/Users/sdavis/R-1.8.0/include -DUSE_EXT_PTR=1 -D_R_=1
-I../inst/include `/sw/bin/gtk-config --cflags` -I/usr/local/include/ggobi
-I/sw/include/gtk-1.2 -I/sw/include/glib-1.2 -I/sw/lib/glib/include
-I/usr/X11R6/include -I/sw/include/libxml2 -I/sw/include -DUSE_XML=2
-DSUPPORT_PLUGINS=1 -DSUPPORT_INIT_FILES=1 -DHAVE_CONFIG_H -DDarwin
-I/sw/include -I/usr/local/include -fno-common -g -O2 -c GUI.c -o GUI.o
------------CUT--------------
gcc -bundle -flat_namespace -undefined suppress -L/sw/lib -L/usr/local/lib
-o Rggobi.so GUI.o GtkObjects.o RDisplay.o RSBrush.o RSColorSchemes.o
RSCreatePlot.o RSEval.o RSGGobi.o RSGGobiCurrent.o RSGGobiSet.o
RSGGobiSysValues.o RSGGobiVersion.o RSIdentify.o RSKeyHandlers.o RSPrint.o
RSSmooth.o RUtils.o RgtkReflectance.o Rplugins.o gtkUtils.o -L/usr/local/lib
-lggobi `/sw/bin/gtk-config --libs` -lcc_dynamic
ld: warning multiple definitions of symbol _quit_ggobi
RSGGobi.o definition of _quit_ggobi in section (__TEXT,__text)
/usr/local/lib/libggobi.dylib(main_ui.lo) definition of _quit_ggobi
ld: warning multiple definitions of symbol _locale_charset
/sw/lib/libiconv.2.dylib(localcharset.lo) definition of _locale_charset
/sw/lib/libintl.dylib(localcharset.lo) definition of _locale_charset
ld: Undefined symbols:
_gtk_ext_hruler_new referenced from libggobi expected to be defined in
libgtkext.dylib
_gtk_ext_ruler_get_type referenced from libggobi expected to be defined in
libgtkext.dylib
_gtk_ext_ruler_set_range referenced from libggobi expected to be defined in
libgtkext.dylib
_gtk_ext_vruler_new referenced from libggobi expected to be defined in
libgtkext.dylib
_genrand_real1 referenced from libggobi expected to be defined in
libgtkext.dylib
_init_genrand referenced from libggobi expected to be defined in
libgtkext.dylib
ERROR: compilation failed for package ''Rggobi''
Any thoughts?
Thanks,
Sean
[[alternative HTML version deleted]]