Skip to content

[Bioc-devel] [BioC] Bioconductor1.6(Rgraphviz etc.) install problem with red hat9.0

7 messages · Byron Ellis, Robert Gentleman, Jeff Gentry +1 more

#
You probably didn't properly install graphviz since it clearly can't  
find libneato (which is part of graphviz). If you really did 'make  
install' you probably want to 'sudo make install' to put them in /usr/ 
local/lib (unless you did something weird to your prefix, which can  
also happen).
On Nov 22, 2005, at 7:21 AM, xinan yang wrote:

            
---
Byron Ellis (ellis at stat.harvard.edu)
"Oook" -- The Librarian
#
Hi,
  I think Byron is essentially right, and his advice will almost surely 
fix your problem. You might also try and set your LD_LIBRARY path (there 
seems to be some sort of disconnect between your building of Rgraphviz 
and your running of R, possibly these are done from different accounts 
and the right libraries are not being found?)

  And, also Rgraphviz has a configure script and you should be able to 
use the --with-graphviz flag. Please see the R Extensions manual for 
more details on how that works.

  Best wishes,
   Robert
xinan yang wrote:

  
    
#
Yes, you've chosen to install graphviz in a place not specified in  
the default library path so you need to set an environment variable.  
Why is this a surprise?
On Nov 22, 2005, at 8:13 AM, xinan yang wrote:

            
---
Byron Ellis (ellis at stat.harvard.edu)
"Oook" -- The Librarian
#
Hi Robert,

You are right, the package GDD is not necessary.
But the package Rgraphviz stilol doesn"t work, even after I reinstalling 
everything.

I have download the graphviz-2.6.tar.gz
after typing:
$ tar -xvfz graphviz......
$ cd graphviz-2.6
$./configure
$make
$make check
$make install

Now, in R:
 > sessionInfo()
R version 2.2.0, 2005-10-06, i686-pc-linux-gnu

attached base packages:
[1] "methods"   "stats"     "graphics"  "grDevices" "utils"     "datasets"
[7] "base"
 > library(Rgraphviz)
Loading required package: graph
Loading required package: cluster
Loading required package: Ruuid
Creating a new generic function for 'print' in 'Ruuid'
Error in dyn.load(x, as.logical(local), as.logical(now)) :
        unable to load shared library 
'/usr/local/lib/R/library/Rgraphviz/libs/Rgraphviz.so':
  libdotneato.so.0: cannot open shared object file: No such file or 
directory
Error: .onLoad failed in 'loadNamespace' for 'Rgraphviz'
Error: package/namespace load failed for 'Rgraphviz'

But it is there:
$ cd /usr/local/lib/R/library/Rgraphviz/libs/
$ ls -al
total 108
drwxr-xr-x    2 root     root         4096 Nov 21 16:24 .
drwxr-xr-x   12 root     root         4096 Nov 21 16:24 ..
-rwxr-xr-x    1 root     root        94257 Nov 21 16:24 Rgraphviz.so

What was wrong?

xinan
Robert Gentleman wrote:

            
#
Why do you think that setting environment vars in one shell will carry
over to another automagically?  You need to include them in your shell's
init scripts (e.g. .bashrc/.bash_profile, etc) for them to be universal
like that.
#
Hi Robert and Byron,

Thanks for your prompt reply.  It seems work  using "sudo make install" !
because, in the shell, it "R CMD INSTALL" works, which did not work before:

%whereis graphviz
graphviz: /usr/local/lib/graphviz

%export LD_LIBRARY_PATH=/usr/local/lib/graphviz
%R CMD REMOVE Rgraphviz
% R CMD INSTALL Rgraphviz

Then I can load the package.


But , after open a new shell, it still doesn"t work!
%R
 > library(Rgraphviz)
Loading required package: graph
Loading required package: cluster
Loading required package: Ruuid
Creating a new generic function for 'print' in 'Ruuid'
Error in dyn.load(x, as.logical(local), as.logical(now)) :
        unable to load shared library 
'/usr/local/lib/R/library/Rgraphviz/libs/Rgraphviz.so':
  libdotneato.so.0: cannot open shared object file: No such file or 
directory
Error: .onLoad failed in 'loadNamespace' for 'Rgraphviz'
Error: package/namespace load failed for 'Rgraphviz'
 > sessionInfo()
R version 2.2.0, 2005-10-06, i686-pc-linux-gnu

attached base packages:
[1] "methods"   "stats"     "graphics"  "grDevices" "utils"     "datasets"
[7] "base"

other attached packages:
   graph    Ruuid  cluster
 "1.8.0"  "1.5.3" "1.10.2"


I must re-type "export LD_LIBRARY_PATH=/usr/local/lib/graphviz" to let 
it works!


BTW,
What should I do if I want to update the graphviz-2.2 to graphviz 2.6?
Simply download the graphviz-2.2.0, then "./configure","make","sudo make 
install" in the directory of graphviz-2.6?
Should I uninstall the previous one?

The same question for R, How to install R-2.2.0 while keep the old version?


Thanks!

Xinan
Byron Ellis wrote:

            
#
Hi Ellis,

I tried the graphviz-2.6.0, the default installed path is still 
"/usr/local/lib/graphviz". and the worse is Rgraphviz-1.8.0 "unable to 
load shared library '/usr/local/lib/R/library/ 
Rgraphviz/libs/Rgraphviz.so': " again.

Then I re-tried graphviz-2.2 as mentioned in last email, it works, but 
need to type the path for R.
Where is the deault path for graphviz as Rgraphviz looks for?

need more help to simplify that.


xinan
Byron Ellis wrote: