[BioC] error installing Rgraphviz
dtenenba at fhcrc.org
Mon May 28 19:35:52 CEST 2012
On Sun, May 27, 2012 at 4:13 PM, Mark Miller
<mark.wayne.miller at gmail.com> wrote:
> I am attempting to install the package 'Rgraphviz' in R version 2.15.0 on a
> PC running Windows 7, Platform: x86_64-pc-mingw32/x64 (64-bit). However,
> when I type 'library('Rgraphviz')' I keep getting a pop-up error message
> stating 'DP_LocalAvatar: Rgui.exe - System Error' 'The program can't start
> because libcdt-4.dll is missing from your computer. Try reinstalling the
> program to fix the problem.' Within R I get an error message stating that
> there is no package 'Rgraphviz'.
> I installed Graphviz using a file called 'graphviz-22.214.171.124.msi' which I
> believe I downloaded from the link in an R post found here:
> The actual link within the above R post was:
> The directory to Graphviz on my computer is 'c:\Program Files
> (x86)\Graphviz2.20' and the file 'libcdt-4.dll' is located in the folder
> 'c:\Program Files (x86)\Graphviz2.20\bin'. The following appears at the
> end of my path statement 'Program Files (x86)\Graphvis2.20\bin' and is also
> displayed when I type 'C:\echo %PATH%' in a command window.
Can you send the full output of the echo %PATH% command?
Note that "Graphviz" is mis-spelled above. Could that be the problem?
Also note that if you set your PATH in Control Panel, you need to
start a new command window after making the change, because the change
will not be reflected in any currently open command windows.
> The directory to R on my computer is 'c:\Program Files\R\R-2.15.0\'.
> When I try to install 'Rgraphviz' I get the following messages within R:
> BiocInstaller version 1.4.4, ?biocLite for help
> BioC_mirror: http://bioconductor.org
> Using R version 2.15, BiocInstaller version 1.4.4.
> Installing package(s) 'Rgraphviz'
> trying URL '
> Content type 'application/zip' length 936601 bytes (914 Kb)
> opened URL
> downloaded 914 Kb
> package ‘Rgraphviz’ successfully unpacked and MD5 sums checked
> The downloaded binary packages are in
> C:\Users\Mark W
> Warning message:
> installed directory not writable, cannot update packages 'foreign', 'MASS',
> 'mgcv', 'nlme', 'survival'
> The file 'Rgraphviz_1.34.0.zip' is placed in 'C:\Users\Mark W
> Miller\AppData\Local\Temp\Rtmpqyh1A3\downloaded_packages' and the package
> 'Rgraphviz' does not appear in the R library in 'c:\Program
> Files\R\R-2.15.0\library'. Rather 'Rgraphviz' appears in 'C:\users\Mark W
This is ok.
> I have copied and pasted the 'Rgraphviz' folder from 'C:\users\Mark W
> Miller\Documents\R\win-library\2.15' into 'C:\Program
You do not need to do this.
> Then inside R I type 'library('Rgraphviz')' and get the following message
> in a pop-up window:
> 'DP_LocalAvatar: Rgui.exe - System Error' 'The program can't start because
> libcdt-4.dll is missing from your computer. Try reinstalling the program to
> fix the problem.'
> and the following messages within R:
> Loading required package: graph
> Loading required package: grid
> Error : .onLoad failed in loadNamespace() for 'Rgraphviz', details:
> call: value[[3L]](cond)
> error: unable to load shared object 'C:/Users/Mark W
> LoadLibrary failure: The specified module could not be found.
> 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
> Ask further questions on the Bioconductor mailing list
> Error: package/namespace load failed for ‘Rgraphviz’
> The file 'C:\Users\Mark W
> Miller\Documents\R\win-library\2.15\Rgraphviz\libs\x64\Rgraphviz.dll' does
> exist in that folder and in the folder where I copied and pasted it
> into: 'c:\Program Files\R\r-2.15.0\library\Rgraphviz\libs\x64\'.
> In addition to the steps described above I have tried countless variations
> over approximately 8 hours, including uninstalling R and re-installing it.
> During one reboot maybe 4 hours into this process I even got an error
> message on start-up and almost everything on my desktop had disappeared. I
> restarted the computer again and my normal desktop was restored. (I found
> a post on the internet describing something similar when trying to install
> 'Rgraphviz' but I do not know whether my experience was related to that
> previous incident.)
> I am hoping someone can provide detailed step-by-step instructions on how
> to install the package Rgraphviz and/or identify where I am making a
> mistake based on the information I have provided. I have tried to include
> here as much information as I can think of. If I can include additional
> helpful information please let me know.
> I wonder whether the above warning message is related to why I cannot
> install 'Rgraphviz': 'Warning message: installed directory not writable,
> cannot update packages 'foreign', 'MASS', 'mgcv', 'nlme', 'survival''.
No. That is just biocLite() telling you that those packages couldn't
be updated because they live in a directory that you can't write to.
If you log in as an admin user you can update those packages and make
that message go away, or you can just ignore it.
> I have not previously posted on this forum. Hopefully I am following
> Thank you for any advice.
> Mark W. Miller
> [[alternative HTML version deleted]]
> Bioconductor mailing list
> Bioconductor at r-project.org
> Search the archives: http://news.gmane.org/gmane.science.biology.informatics.conductor
More information about the Bioconductor