[BioC] Problem loading Rgraphviz
Dan Tenenbaum
dtenenba at fhcrc.org
Thu Sep 15 01:57:19 CEST 2011
On Mon, Sep 12, 2011 at 5:10 PM, <ckingsley at tgen.org> wrote:
> Hello,
>
> I'm getting the same error others have gotten with Rgraphviz (v 1.27.0), but the previously posted solutions don't seem to be working:
>
>> library(Rgraphviz)
> Error : .onLoad failed in loadNamespace() for 'Rgraphviz', details:
> call: value[[3L]](cond)
> error: unable to load shared object 'C:/Users/ckingsley.TGEN/Documents/R/win-library/2.13/Rgraphviz/libs/x64/Rgraphviz.dll':
> LoadLibrary failure: %1 is not a valid Win32 application.
>
>
> Check that (1) graphviz is installed on your system; (2) the installed version of graphviz matches '2.20.3'; this is the version used to build this Rgraphviz package; (3) graphviz is accessible to R, e.g., the
> path to the graphviz 'bin' directory is in the system 'PATH' variable. See additional instructions in the 'README' file of the Rgraphviz 'source' distribution, available at
>
> http://bioconductor.org/packages/release/bioc/html/Rgraphviz.html
>
> Ask further questions on the Bioconductor mailing list
>
> http://bioconductor.org/docs/mailList.html
>
>
> Error: package/namespace load failed for 'Rgraphviz'
>
>
>
> I have installed graphviz 2.20.3.1 and the PATH environmental variable contains the path to the bin directory:
>
>> grep("Graphviz", strsplit(Sys.getenv("PATH"), ";")[[1]], value=T)
> [1] "C:\\Program Files (x86)\\Graphviz2.20\\bin<file:///\\Graphviz2.20\bin>"
This path item looks kind of wacky to me. What happens if you type
neato -V
at the command line?
>
>> list.files("C:\\Program Files (x86)\\Graphviz2.20\\bin<file:///\\Graphviz2.20\bin>")
> [1] "acyclic.exe" "bcomps.exe" "ccomps.exe" "circo.exe" "comdlg32.ocx" "diffimg.exe" "dijkstra.exe"
> [8] "dot.exe" "dot2gxl.exe" "dotty.exe" "fc-cache.exe" "fc-cat.exe" "fc-list.exe" "fc-match.exe"
> [15] "fdp.exe" "gc.exe" "gv2gxl.exe" "gvcolor.exe" "GVedit.exe" "gvpack.exe" "gvpr.exe"
> [22] "GVUI.exe" "gxl2dot.exe" "gxl2gv.exe" "iconv.dll" "intl.dll" "jpeg62.dll" "lefty.exe"
> [29] "libcairo-2.dll" "libcdt-4.dll" "libcgraph-4.dll" "libexpat.dll" "libfontconfig-1.dll" "libfreetype-6.dll" "libgdk_pixbuf-2.0-0.dll"
> [36] "libglib-2.0-0.dll" "libgmodule-2.0-0.dll" "libgobject-2.0-0.dll" "libgraph-4.dll" "libgvc-4.dll" "libgvplugin_core-5.dll" "libgvplugin_dot_layout-5.dll"
> [43] "libgvplugin_gd-5.dll" "libgvplugin_neato_layout-5.dll" "libgvplugin_pango-5.dll" "libltdl-3.dll" "libpango-1.0-0.dll" "libpangocairo-1.0-0.dll" "libpangoft2-1.0-0.dll"
> [50] "libpangowin32-1.0-0.dll" "libpathplan-4.dll" "libpng12.dll" "libxml2.dll" "lneato.exe" "mm2gv.exe" "neato.exe"
> [57] "nop.exe" "props.txt" "prune.exe" "sccmap.exe" "settings.ini" "tred.exe" "twopi.exe"
> [64] "unflatten.exe" "zlib1.dll"
>
> And the Rgraphviz.dll is present in the correct directory:
>
>> list.files("C:/Users/ckingsley.TGEN/Documents/R/win-library/2.13/Rgraphviz/libs/x64/")
> [1] "Rgraphviz.dll"
>
> I'm running 64 bit R 2.13.0 on Windows 7 Professional x64.
For 64-bit windows try grabbing the prebuilt binary of graphviz
referred to here:
https://stat.ethz.ch/pipermail/bioconductor/2010-October/036011.html
Note that this does not include all the executables but it does have
the libraries that Rgraphviz needs to run against.
Dan
>
> Thanks in advance.
>
> __________________________________________
>
> Christopher Kingsley, PhD
> Research Assistant Professor
> Diabetes, Cardiovascular & Metabolic Disease Division
> TGen, The Translational Genomics Research Institute
>
>
> [[alternative HTML version deleted]]
>
> _______________________________________________
> Bioconductor mailing list
> Bioconductor at r-project.org
> https://stat.ethz.ch/mailman/listinfo/bioconductor
> Search the archives: http://news.gmane.org/gmane.science.biology.informatics.conductor
>
More information about the Bioconductor
mailing list