Problem with Rgraphviz on OSX with libgvc
3
0
Entering edit mode
@jarrett-byrnes-1989
Last seen 10.2 years ago
Hey, all, I'm trying to see if I can work with Rgraphviz as a means of implementing graph plotting for the sem package (I tried dynamicGraph, which was great for some things, but didn't deal with directionality of arrows and doubleheaded arrows so well). Also, sem already outputs dotfiles, so it is logical to just pipe them in to Rgraphviz or somesuch. Anyway, I installed graphiviz from source on a machine running OSX 10.4.8, and it worked like a charm. However, after installing Rgraphviz and it's dependencies, it was not able to load, due to graphviz not installing a library it seemed to need, libgvc where Rgraphviz wants it. The error I get when I attempt to load Rgraphviz is: Error in dyn.load(x, as.logical(local), as.logical(now)) : unable to load shared library '/Library/Frameworks/R.framework/ Versions/2.4/Resources/library/Rgraphviz/libs/ppc/Rgraphviz.so': dlopen(/Library/Frameworks/R.framework/Versions/2.4/Resources/ library/Rgraphviz/libs/ppc/Rgraphviz.so, 6): Library not loaded: /usr/ local/lib/graphviz/libgvc.2.dylib Referenced from: /Library/Frameworks/R.framework/Versions/2.4/ Resources/library/Rgraphviz/libs/ppc/Rgraphviz.so Reason: image not found Looing at libgvc, I find that instead of /usr/local/lib/graphviz/libgvc.2.dylib I have installed /usr/local/lib//libgvc.3.dylib Hrm. I noticed in a few posts that other solutions have been solved by installing older versions of grpahviz? Is this what I need to do instead? Will Rgraphviz be updated eventually to reflect the new version? Thanks! -Jarrett
graph Rgraphviz charm graph Rgraphviz charm • 1.4k views
ADD COMMENT
0
Entering edit mode
Seth Falcon ★ 7.4k
@seth-falcon-992
Last seen 10.2 years ago
Hi Jarrett, Jarrett Byrnes <jebyrnes at="" ucdavis.edu=""> writes: > Hey, all, I'm trying to see if I can work with Rgraphviz as a means > of implementing graph plotting for the sem package (I tried > dynamicGraph, which was great for some things, but didn't deal with > directionality of arrows and doubleheaded arrows so well). Also, sem > already outputs dotfiles, so it is logical to just pipe them in to > Rgraphviz or somesuch. > > Anyway, I installed graphiviz from source on a machine running OSX > 10.4.8, and it worked like a charm. Which version of graphviz? How did you install it? > However, after installing Rgraphviz and it's dependencies, it was not > able to load, due to graphviz not installing a library it seemed to > need, libgvc where Rgraphviz wants it. The error I get when I > attempt to load Rgraphviz is: Which version of R? How was R installed? How did you install Rgraphviz and which version? I'm guessing that you installed the OS X binary version of Rgraphviz. That is compatible with the graphviz binary downloadable from here: http://r.research.att.com/#pkg Yes, it is an old version. If you want to use a more recent graphviz, you will need to be able to install Rgraphviz from source. + seth
ADD COMMENT
0
Entering edit mode
Nope, this was installed from source. I'm running R 2.4.1. The error message I gave was after installing graphviz 2.12 from source. I have since tried installing graphviz 1.16 from source, as was listed in one of the past messages on this listserv, but it did not install any libgvc that I can tell. Is there a particular version of graphviz that I should install to make this work? Also, I installed Rgraphviz from the bioconductor binary using the R package manager, including all dependencies. What version of graphviz do I need to install from source? Or, will the package be fixed soon to reflect the most current version? Or can I just make a symbolic link to the new dynlib to trick the package into working (I am not above workarounds)? Thanks! -Jarrett On Jan 9, 2007, at 9:17 PM, Seth Falcon wrote: > Hi Jarrett, > > Jarrett Byrnes <jebyrnes at="" ucdavis.edu=""> writes: > >> Hey, all, I'm trying to see if I can work with Rgraphviz as a means >> of implementing graph plotting for the sem package (I tried >> dynamicGraph, which was great for some things, but didn't deal with >> directionality of arrows and doubleheaded arrows so well). Also, sem >> already outputs dotfiles, so it is logical to just pipe them in to >> Rgraphviz or somesuch. >> >> Anyway, I installed graphiviz from source on a machine running OSX >> 10.4.8, and it worked like a charm. > > Which version of graphviz? How did you install it? > >> However, after installing Rgraphviz and it's dependencies, it was not >> able to load, due to graphviz not installing a library it seemed to >> need, libgvc where Rgraphviz wants it. The error I get when I >> attempt to load Rgraphviz is: > > Which version of R? How was R installed? How did you install > Rgraphviz and which version? > > I'm guessing that you installed the OS X binary version of Rgraphviz. > That is compatible with the graphviz binary downloadable from here: > > http://r.research.att.com/#pkg > > Yes, it is an old version. If you want to use a more recent graphviz, > you will need to be able to install Rgraphviz from source. > > > + seth
ADD REPLY
0
Entering edit mode
Seth Falcon ★ 7.4k
@seth-falcon-992
Last seen 10.2 years ago
Jarrett Byrnes <jebyrnes at="" ucdavis.edu=""> writes: > Nope, this was installed from source. ^^^^ Sometimes email is a frustrating medium. :-\ > I'm running R 2.4.1. The error message I gave was after installing > graphviz 2.12 from source. Ok. If you want to use that version of graphviz, you need to install _Rgraphviz_ from source. And that will require having the right tools and setup for building source packages with R. > I have since tried installing graphviz > 1.16 from source, as was listed in one of the past messages on this > listserv, but it did not install any libgvc that I can tell. Is > there a particular version of graphviz that I should install to make > this work? Yes, install the binary version of graphviz 2.8 that I linked to in my previous message. That is the _only_ graphviz that is expected to work with the Rgraphviz binary. > Also, I installed Rgraphviz from the bioconductor binary using the R > package manager, including all dependencies. Better to use biocLite for installing Bioconductor packages in the future. + seth
ADD COMMENT
0
Entering edit mode
Jarrett: You can do two things: The easy way: Install the binary version of Graphviz 2.8 which Seth has linked to. Using that version of Graphviz you can install binaries from Bioconductor. The (slightly) harder way: If you want to use Graphviz 2.12 for other purposes, install it from source as you have already done. Now, you need to use the development version of Rgraphviz and you need to compile Rgraphviz from source, you cannot use the binary version as that is compiled against Graphviz 2.8. It does not matter if you install the dependencies from source or binary. I would assume you have already install the dependencies in your earlier attempt. The easy way is to download the tar ball of Rgraphviz from Bioconductor (you need to do this since you are running R-2.4.1 and not R-2.5.0 devel), use the link http://www.bioconductor.org/packages/2.0/bioc/src/contrib/ Rgraphviz_1.13.8.tar.gz The in the command prompt you do # R CMD INSTALL Rgraphviz and it should work Kasper On Jan 9, 2007, at 9:48 PM, Seth Falcon wrote: > Jarrett Byrnes <jebyrnes at="" ucdavis.edu=""> writes: > >> Nope, this was installed from source. > ^^^^ > > Sometimes email is a frustrating medium. :-\ > >> I'm running R 2.4.1. The error message I gave was after installing >> graphviz 2.12 from source. > > Ok. If you want to use that version of graphviz, you need to install > _Rgraphviz_ from source. And that will require having the right tools > and setup for building source packages with R. > > >> I have since tried installing graphviz >> 1.16 from source, as was listed in one of the past messages on this >> listserv, but it did not install any libgvc that I can tell. Is >> there a particular version of graphviz that I should install to make >> this work? > > Yes, install the binary version of graphviz 2.8 that I linked to in my > previous message. That is the _only_ graphviz that is expected to > work with the Rgraphviz binary. > >> Also, I installed Rgraphviz from the bioconductor binary using the R >> package manager, including all dependencies. > > Better to use biocLite for installing Bioconductor packages in the > future. > > + seth > > _______________________________________________ > Bioconductor mailing list > Bioconductor at stat.math.ethz.ch > https://stat.ethz.ch/mailman/listinfo/bioconductor > Search the archives: http://news.gmane.org/ > gmane.science.biology.informatics.conductor
ADD REPLY
0
Entering edit mode
Seth Falcon ★ 7.4k
@seth-falcon-992
Last seen 10.2 years ago
Kasper Daniel Hansen <khansen at="" stat.berkeley.edu=""> writes: > dependencies in your earlier attempt. The easy way is to download the > tar ball of Rgraphviz from Bioconductor (you need to do this since > you are running R-2.4.1 and not R-2.5.0 devel), use the link > http://www.bioconductor.org/packages/2.0/bioc/src/contrib/ > Rgraphviz_1.13.8.tar.gz > The in the command prompt you do > # R CMD INSTALL Rgraphviz > and it should work If you have pkg-config installed and it can find your graphviz installation this should work. I have recently discovered that the configure code in Rgraphviz is not up to date with the latest changes in graphviz. Hence if you do: R CMD INSTALL --configure-args="--with-graphviz=/usr/local/gviz" Rgraphviz Things won't work. I have a patch which I will commit to devel soon. + seth
ADD COMMENT

Login before adding your answer.

Traffic: 581 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6