Number: 2163
Title: Another dependency problem installing on RHEL5 (graphviz-php won't install).
Submitter: Scott Brown
Date: Tue Apr 5 08:22:35 2011
Subsys: Build/Installation
Version: 2.26.3
System: x86-Linux-RHEL5
Severity: major
Problem:
My goal is to use some code in Matlab (someone else's code) that calls 'neato' - which looks like a really cool piece of software, by the way. I have problems installing GraphViz on RHEL5 (some similar issues on RHEL6, too - possibly related). I have looked through the previous bugs on this, and they were helpful, but they did not ultimately solve the problem.

Installing GraphViz via yum has all kinds of dependency errors. But then this version works fine:


> > []# yum install 'graphviz*' -x graphviz-php
  (thanks to bug1913 for that one).

So I figure the problem is with PHP and I don't care - except that it turns out the Matlab call to 'neato/dot' fails. Here are the errors I get when I try to install just the problem package:


> > []# yum install graphviz-php
> > Loaded plugins: rhnplugin, security
> > Setting up Install Process
> > Resolving Dependencies
> > --> Running transaction check
> > ---> Package graphviz-php.x86_64 0:2.16-1.el5 set to be updated
> > --> Processing Dependency: graphviz = 2.16-1.el5 for package: graphviz-php
> > --> Processing Dependency: libgvc.so.4()(64bit) for package: graphviz-php
> > --> Finished Dependency Resolution
> > graphviz-php-2.16-1.el5.x86_64 from graphviz-stable has depsolving problems
> >  --> Missing Dependency: graphviz = 2.16-1.el5 is needed by package graphviz-php-2.16-1.el5.x86_64 (graphviz-stable)
> > graphviz-php-2.16-1.el5.x86_64 from graphviz-stable has depsolving problems
> >   --> Missing Dependency: libgvc.so.4()(64bit) is needed by package graphviz-php-2.16-1.el5.x86_64 (graphviz-stable)
> > Error: Missing Dependency: libgvc.so.4()(64bit) is needed by package graphviz-php-2.16-1.el5.x86_64 (graphviz-stable)
> > Error: Missing Dependency: graphviz = 2.16-1.el5 is needed by package graphviz-php-2.16-1.el5.x86_64 (graphviz-stable)


So the questions I hope you might help me with are:
  1. Is 'graphviz-php' usually required for the Matlab interface?
  2. Any idea where this dependency hell for graphviz-php is headed?
  3. Any smart work-arounds that I've missed here?

Thanks very much for your help!

Scott.
Comments:
[north] Scott, sorry for the problems.

Why install graphviz-php? If Matlab just calls neato as an executable program, you just need basic graphviz.

What repository are you pointing to?

The dependency nightmares are particularly severe with the swig interfaces because they touch all the specific interpreters (which of course can come in both stable and devel releases themselves). A separate issue is that we also build on top of a bunch of graphics drivers including pango, cairo, fontconfig, freetype, gd2, png, zlib; we also now have a qt4 based editor.

Open source is an interesting software development methodology isn't it. The bazzar is neat but no one can build anything taller than one story.

[ellson] It sounds like you might have a previous installation of graphviz-php ?

Try:


    rpm -e graphviz-php
    yum update 'graphviz*'

[scott] Hi Stephen,

Thanks very much for your prompt and helpful reply. Here are some answers to your questions:


> > Why install graphviz-php?  If Matlab just calls neato as
> > an executable program, you just need basic graphviz.
In this code, Matlab calls neato as an executable (that works fine, and I love it) but Matlab also tries to use the layout engine for some fancy graphing on the X window. That's the bit that is broken.


> > What repository are you pointing to?
http://www.graphviz.org/pub/graphviz/stable/redhat/el5/x86_64/os/

[scott] Thanks for your help. Actually, I've done a clean install and there's no old graphviz-php hanging around.

One weird thing, though. If I:


  []# yum info 'graphviz*'

I get version numbers such as 2.26.3 for almost all components EXCEPT for graphviz-php which gives me an older version number (2.16). Is this as it ought to be? Here's the full printout for yum info graphviz-php:


Name       : graphviz-php
Arch       : x86_64
Version    : 2.16
Release    : 1.el5
Size       : 31 k
Repo       : graphviz-stable
Summary    : PHP extension for graphviz
URL        : http://www.graphviz.org/
License    : CPL
Description: PHP extension for graphviz.

Owner: *
Status: *