Graphviz Issue Tracker
Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0002118graphvizDotpublic2011-07-27 11:332011-08-03 14:49
ReporterFusionDawg 
Assigned Toerg 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionfixed 
PlatformRHELOSLinuxOS VersionEL5
Summary0002118: Format: "png" not recognized
DescriptionI get the following message:

$ dot -Tpng -o/tmp/test.png -v ./gg_map_nve.dot
dot - graphviz version 2.26.3 (20100126.1600)
Activated plugin library: libgvplugin_dot_layout.so.6
Using layout: dot:dot_layout
Format: "png" not recognized. Use one of: canon cmap cmapx cmapx_np dot eps fig gd gd2 gif gv imap imap_np ismap plain plain-ext ps ps2 svg svgz tk vml vmlz wbmp xdot


This was an install of 2.28 using the RPM from graphviz.org

graphviz-guile-2.28.0-1.el5
graphviz-doc-2.28.0-1.el5
graphviz-gd-2.28.0-1.el5
graphviz-python-2.28.0-1.el5
graphviz-2.28.0-1.el5
graphviz-graphs-2.28.0-1.el5
graphviz-ruby-2.28.0-1.el5
graphviz-devel-2.28.0-1.el5
graphviz-tcl-2.28.0-1.el5
graphviz-java-2.28.0-1.el5


$ ls -arlt /usr/local/lib/graphviz
total 3020
-rwxr-xr-x 1 root root 542732 Mar 1 19:07 libgvplugin_gd.so.6.0.0
lrwxrwxrwx 1 root root 23 Mar 1 19:07 libgvplugin_gd.so.6 -> libgvplugin_gd.so.6.0.0
lrwxrwxrwx 1 root root 23 Mar 1 19:07 libgvplugin_gd.so -> libgvplugin_gd.so.6.0.0
-rwxr-xr-x 1 root root 1124 Mar 1 19:07 libgvplugin_gd.la
-rwxr-xr-x 1 root root 280124 Mar 1 19:07 libgvplugin_core.so.6.0.0
lrwxrwxrwx 1 root root 25 Mar 1 19:07 libgvplugin_core.so.6 -> libgvplugin_core.so.6.0.0
lrwxrwxrwx 1 root root 25 Mar 1 19:07 libgvplugin_core.so -> libgvplugin_core.so.6.0.0
-rwxr-xr-x 1 root root 1136 Mar 1 19:07 libgvplugin_core.la
drwxr-xr-x 4 root root 4096 Mar 1 19:07 ..
-rwxr-xr-x 1 root root 1594711 Mar 1 19:07 libgvplugin_neato_layout.so.6.0.0
lrwxrwxrwx 1 root root 33 Mar 1 19:07 libgvplugin_neato_layout.so.6 -> libgvplugin_neato_layout.so.6.0.0
lrwxrwxrwx 1 root root 33 Mar 1 19:07 libgvplugin_neato_layout.so -> libgvplugin_neato_layout.so.6.0.0
-rwxr-xr-x 1 root root 1184 Mar 1 19:07 libgvplugin_neato_layout.la
-rwxr-xr-x 1 root root 552290 Mar 1 19:07 libgvplugin_dot_layout.so.6.0.0
lrwxrwxrwx 1 root root 31 Mar 1 19:07 libgvplugin_dot_layout.so.6 -> libgvplugin_dot_layout.so.6.0.0
lrwxrwxrwx 1 root root 31 Mar 1 19:07 libgvplugin_dot_layout.so -> libgvplugin_dot_layout.so.6.0.0
-rwxr-xr-x 1 root root 1172 Mar 1 19:07 libgvplugin_dot_layout.la
drwxr-xr-x 2 root root 4096 Mar 1 19:07 tcl
drwxr-xr-x 2 root root 4096 Mar 1 19:07 sharp
drwxr-xr-x 2 root root 4096 Mar 1 19:07 ruby
drwxr-xr-x 2 root root 4096 Mar 1 19:07 R
drwxr-xr-x 2 root root 4096 Mar 1 19:07 python26
drwxr-xr-x 2 root root 4096 Mar 1 19:07 python25
drwxr-xr-x 2 root root 4096 Mar 1 19:07 python24
drwxr-xr-x 2 root root 4096 Mar 1 19:07 python23
drwxr-xr-x 2 root root 4096 Mar 1 19:07 python
drwxr-xr-x 2 root root 4096 Mar 1 19:07 php
drwxr-xr-x 2 root root 4096 Mar 1 19:07 perl
drwxr-xr-x 2 root root 4096 Mar 1 19:07 ocaml
drwxr-xr-x 2 root root 4096 Mar 1 19:07 lua
drwxr-xr-x 2 root root 4096 Mar 1 19:07 java
drwxr-xr-x 2 root root 4096 Mar 1 19:07 io
drwxr-xr-x 2 root root 4096 Mar 1 19:07 guile
drwxr-xr-x 18 root root 4096 Jul 26 16:00 .
-rw-r--r-- 1 root root 1966 Jul 27 14:39 config6

I've also set GVBINDIR=/usr/local/lib/graphviz

Anything that I am missing?
TagsNo tags attached.
AUXILLARY-FILES
DATE-FIXED
FIX-COMMENT
FORMER-ID
INPUT-FILE
OUTPUT-FILE
STATUS-COMMENT
VERSION2.28
Attached Files

- Relationships

-  Notes
User avatar (0000034)
FusionDawg (reporter)
2011-07-27 11:38

This also fails with dot version 2.28:

$ /usr/bin/dot -Tpng -o/tmp/test.png -v ./gg_map_nve.dot
dot - graphviz version 2.28.0 (20110507.0352)
libdir = "/usr/local/lib/graphviz"
Format: "png" not recognized. Use one of: canon cmap cmapx cmapx_np dot eps fig gd gd2 gif gv imap imap_np ismap plain plain-ext ps ps2 svg svgz tk vml vmlz wbmp xdot
User avatar (0000035)
ellson (administrator)
2011-07-27 11:54

How did it get installed in /usr/local ?

Did you compile from source? Or did you try to relocate the rpms?


What is in /usr/local/lib/graphviz/config6 ?

What about after running "dot -c" as root?

Is /usr/local/lib in /etc/ld.so.conf or in your LD_LIBRARY_PATH


Basically, I don't recommend relocating graphviz. It can be done, but its problematic.


John
User avatar (0000036)
FusionDawg (reporter)
2011-07-27 12:16

Graphviz was installed via YUM using the rpms from http://www.graphviz.org/Download_linux_rhel.php [^] .

To my knowledge graphviz was not relocated after installation.

Running "dot -c" as root did not seem to do anything.

/usr/local/lib is NOT set in either /etc/ld.so.conf or LD_LIBRARY_PATH.

Including /usr/local/lib in LD_LIBRARY_PATH does not help.


~~~
$ cat /usr/local/lib/graphviz/config6
# This file was generated by "dot -c" at time of install.

# You may temporarily disable a plugin by removing or commenting out
# a line in this file, or you can modify its "quality" value to affect
# default plugin selection.

# Manual edits to this file **will be lost** on upgrade.

libgvplugin_gd.so.6 gd {
        render {
                gd 1
        }
        render {
        }
        textlayout {
        }
        loadimage {
                gd:gd 1
                gd2:gd 1
                gif:gd 1
                gd:ps 1
#FAILS gd:lasi 1
                gd2:ps 1
#FAILS gd2:lasi 1
                gif:ps 1
#FAILS gif:lasi 1
        }
        device {
        }
        device {
                gif:gd 1
                wbmp:gd 1
                gd:gd 1
                gd2:gd 1
        }
        device {
        }
}
libgvplugin_neato_layout.so.6 neato_layout {
        layout {
                neato 0
                fdp 0
                sfdp 0
                twopi 0
                circo 0
                patchwork 0
                osage 0
                nop 0
                nop1 0
                nop2 0
        }
}
libgvplugin_dot_layout.so.6 dot_layout {
        layout {
                dot 0
        }
}
libgvplugin_core.so.6 core {
        device {
                dot:dot 1
                gv:dot 1
                canon:dot 1
                plain:dot 1
                plain-ext:dot 1
                xdot:xdot 1
        }
        device {
                fig:fig 1
        }
        device {
                ismap:map 1
                cmap:map 1
                imap:map 1
                cmapx:map 1
                imap_np:map 1
                cmapx_np:map 1
        }
        device {
                ps:ps 1
                ps2:ps 1
                eps:ps 1
        }
        device {
                svg:svg 1
                svgz:svg 1
        }
        device {
                tk:tk 1
        }
        device {
                vml:vml 1
                vmlz:vml 1
        }
        render {
                dot 1
                xdot 1
        }
        render {
                fig 1
        }
        render {
                map 1
        }
        render {
                ps 1
        }
        render {
                svg 1
        }
        render {
                tk 1
        }
        render {
                vml 1
        }
        loadimage {
                png:svg 1
                gif:svg 1
                jpeg:svg 1
                jpe:svg 1
                jpg:svg 1
                png:fig 1
                gif:fig 1
                jpeg:fig 1
                jpe:fig 1
                jpg:fig 1
#FAILS png:vrml 1
#FAILS gif:vrml 1
#FAILS jpeg:vrml 1
#FAILS jpe:vrml 1
#FAILS jpg:vrml 1
                eps:ps 1
#FAILS eps:lasi 1
                ps:ps 1
#FAILS ps:lasi 1
                (lib):ps 1
                png:map 1
                gif:map 1
                jpeg:map 1
                jpe:map 1
                jpg:map 1
                ps:map 1
                eps:map 1
                svg:map 1
                png:dot 1
                gif:dot 1
                jpeg:dot 1
                jpe:dot 1
                jpg:dot 1
                ps:dot 1
                eps:dot 1
                svg:dot 1
                png:xdot 1
                gif:xdot 1
                jpeg:xdot 1
                jpe:xdot 1
                jpg:xdot 1
                ps:xdot 1
                eps:xdot 1
                svg:xdot 1
                svg:svg 1
        }
}
User avatar (0000037)
ellson (administrator)
2011-07-27 12:25

Your installation is broken.


See the output from "rpm -qpl graphviz-2.28.0-1.el5.i386.rpm"
and you will note that nothing is installed in /usr/local.

Why do you have "libdir" set ?

Please try an unmodified yum installation.
User avatar (0000038)
FusionDawg (reporter)
2011-07-27 14:20

Unsetting GVBINDIR and using the correct version of dot (/usr/bin/dot) fixed the problem.

graphviz from the rpm was installed in /usr/lib64/graphviz.


It looks like /usr/local/lib/graphviz was a 2.26 install.

Thanks for your help.
User avatar (0000044)
erg (administrator)
2011-08-03 14:49

John fixed the problem by discussion with the submitter.

- Issue History
Date Modified Username Field Change
2011-07-27 11:33 FusionDawg New Issue
2011-07-27 11:38 FusionDawg Note Added: 0000034
2011-07-27 11:54 ellson Note Added: 0000035
2011-07-27 12:16 FusionDawg Note Added: 0000036
2011-07-27 12:25 ellson Note Added: 0000037
2011-07-27 14:20 FusionDawg Note Added: 0000038
2011-08-03 14:49 erg Note Added: 0000044
2011-08-03 14:49 erg Status new => closed
2011-08-03 14:49 erg Assigned To => erg
2011-08-03 14:49 erg Resolution open => fixed


MantisBT 1.2.5[^]
Copyright © 2000 - 2011 MantisBT Group
Powered by Mantis Bugtracker