[R-SIG-Mac] RGraphviz-graphviz linking problems

Andrew Beckerman a.beckerman at sheffield.ac.uk
Wed Sep 22 15:23:57 CEST 2004


Hi -

R1.9.1; OSX 10.3.5; Dev Tools etc install.

Thought I'd try here first.  I have installed, via darwinports,  
graphviz running in x11 (I also have the standalone aqua app...)
Having done that, I have tried to install RGraphviz from the  
Bioconductor suite via the x11 route to R, as Rgraphviz needs graphviz  
in the x11 environment (I think).

First, I used the Bioconductor script

getBioC("graph")
which installed everthing successfully except RGraphviz and Guuid....

Assuming that the build of RGraphviz would require the library path for  
graphviz installed by darwinports, I tried this to remedy the failed  
install of RGraphviz

dyn092203:~ apb$ export LD_LIBRARY_PATH=/opt/local/lib/graphviz
dyn092203:~ apb$ sudo R CMD INSTALL /Users/apb/Rgraphviz_1.4.0.tar.gz
Password:
* Installing *source* package 'Rgraphviz' ...
** libs
gcc -no-cpp-precomp -I/Library/Frameworks/R.framework/Resources/include  
`dotneato-config --cflags`  -I/usr/local/include  -Wall -fno-common  -g  
-O2 -c Rgraphviz.c -o Rgraphviz.o
In file included from /opt/local/include/graphviz/render.h:45,
                  from common.h:21,
                  from Rgraphviz.c:1:
/opt/local/include/graphviz/macros.h:34:1: warning: "NEW" redefined
In file included from common.h:13,
                  from Rgraphviz.c:1:
/Library/Frameworks/R.framework/Resources/include/Rdefines.h:129:1:  
warning: this is the location of the previous definition
Rgraphviz.c: In function `Rgraphviz_agopen':
Rgraphviz.c:244: warning: implicit declaration of function `GD_gvc'
Rgraphviz.c:244: error: invalid lvalue in assignment
make: *** [Rgraphviz.o] Error 1
ERROR: compilation failed for package 'Rgraphviz'
** Removing  
'/Library/Frameworks/R.framework/Versions/1.9.1/Resources/library/ 
Rgraphviz'

Any advice would be appreciated.
Cheers
andrew

------------------------------------------------------------------------ 
---------
Dr. Andrew Beckerman
Department of Animal and Plant Sciences, University of Sheffield,
Alfred Denny Building, Western Bank, Sheffield S10 2TN, UK
ph +44 (0)114 222 0026; fx +44 (0)114 222 0002
http://www.shef.ac.uk/beckslab
------------------------------------------------------------------------ 
----------



More information about the R-SIG-Mac mailing list