Installation problems with Fedora 23

Hi,

I have come across a few people having this issue over the years, but all the suggestions I have found don't seem to fix the problem.

When installing graphviz from the dnf repo (dnf install graphviz) I get the following:

[tom0@sagat graphviz]$ sudo dnf install graphviz
Last metadata expiration check performed 0:49:00 ago on Mon Feb 15 17:41:25 2016.
Dependencies resolved.
===================================================================================================================================================================================================================
Package Arch Version Repository Size
===================================================================================================================================================================================================================
Installing:
graphviz x86_64 2.38.0-29.fc23 fedora 3.2 M
lasi x86_64 1.1.2-5.fc23 fedora 46 k
xorg-x11-fonts-ISO8859-1-100dpi noarch 7.5-15.fc23 fedora 1.1 M

Transaction Summary
===================================================================================================================================================================================================================
Install 3 Packages

Total download size: 4.3 M
Installed size: 63 M
Is this ok [y/N]: y
Downloading Packages:
(1/3): lasi-1.1.2-5.fc23.x86_64.rpm 374 kB/s | 46 kB 00:00
(2/3): xorg-x11-fonts-ISO8859-1-100dpi-7.5-15.fc23.noarch.rpm 1.5 MB/s | 1.1 MB 00:00
(3/3): graphviz-2.38.0-29.fc23.x86_64.rpm 2.1 MB/s | 3.2 MB 00:01
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total 1.4 MB/s | 4.3 MB 00:03
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
Installing : xorg-x11-fonts-ISO8859-1-100dpi-7.5-15.fc23.noarch 1/3
Installing : lasi-1.1.2-5.fc23.x86_64 2/3
Installing : graphviz-2.38.0-29.fc23.x86_64 3/3
Warning: Could not load "/usr/lib64/graphviz/libgvplugin_rsvg.so.6" - file not found
Warning: Could not load "/usr/lib64/graphviz/libgvplugin_xlib.so.6" - file not found
/var/tmp/rpm-tmp.ZH20r6: line 2: 26223 Segmentation fault (core dumped) /usr/bin/dot -c
warning: %post(graphviz-2.38.0-29.fc23.x86_64) scriptlet failed, exit status 139
Non-fatal POSTIN scriptlet failure in rpm package graphviz
Non-fatal POSTIN scriptlet failure in rpm package graphviz
Verifying : graphviz-2.38.0-29.fc23.x86_64 1/3
Verifying : lasi-1.1.2-5.fc23.x86_64 2/3
Verifying : xorg-x11-fonts-ISO8859-1-100dpi-7.5-15.fc23.noarch 3/3

Installed:
graphviz.x86_64 2.38.0-29.fc23 lasi.x86_64 1.1.2-5.fc23 xorg-x11-fonts-ISO8859-1-100dpi.noarch 7.5-15.fc23

Complete!
[tom0@sagat graphviz]$ sudo dot -c
Error: /usr/lib64/graphviz/config6 is zero sized, or other read error.
Warning: Could not load "/usr/lib64/graphviz/libgvplugin_rsvg.so.6" - file not found
Warning: Could not load "/usr/lib64/graphviz/libgvplugin_xlib.so.6" - file not found
Segmentation fault

If I then install "graphviz-devel" as well:

[tom0@sagat graphviz]$ sudo dnf install graphviz-devel
Last metadata expiration check performed 0:59:42 ago on Mon Feb 15 17:41:25 2016.
Dependencies resolved.
===================================================================================================================================================================================================================
Package Arch Version Repository Size
===================================================================================================================================================================================================================
Installing:
graphviz-devel x86_64 2.38.0-29.fc23 fedora 89 k
graphviz-devil x86_64 2.38.0-29.fc23 fedora 26 k
graphviz-gd x86_64 2.38.0-29.fc23 fedora 41 k

Transaction Summary
===================================================================================================================================================================================================================
Install 3 Packages

Total download size: 156 k
Installed size: 213 k
Is this ok [y/N]: y
Downloading Packages:
(1/3): graphviz-gd-2.38.0-29.fc23.x86_64.rpm 402 kB/s | 41 kB 00:00
(2/3): graphviz-devil-2.38.0-29.fc23.x86_64.rpm 254 kB/s | 26 kB 00:00
(3/3): graphviz-devel-2.38.0-29.fc23.x86_64.rpm 625 kB/s | 89 kB 00:00
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total 101 kB/s | 156 kB 00:01
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
Installing : graphviz-gd-2.38.0-29.fc23.x86_64 1/3
/var/tmp/rpm-tmp.xhf7IO: line 1: 26483 Segmentation fault (core dumped) /usr/bin/dot -c 2> /dev/null
Installing : graphviz-devil-2.38.0-29.fc23.x86_64 2/3
/var/tmp/rpm-tmp.wnGcbM: line 1: 26490 Segmentation fault (core dumped) /usr/bin/dot -c 2> /dev/null
Installing : graphviz-devel-2.38.0-29.fc23.x86_64 3/3
Verifying : graphviz-devel-2.38.0-29.fc23.x86_64 1/3
Verifying : graphviz-devil-2.38.0-29.fc23.x86_64 2/3
Verifying : graphviz-gd-2.38.0-29.fc23.x86_64 3/3

Installed:
graphviz-devel.x86_64 2.38.0-29.fc23 graphviz-devil.x86_64 2.38.0-29.fc23 graphviz-gd.x86_64 2.38.0-29.fc23

Complete!
[tom0@sagat graphviz]$ sudo dot -c
Error: /usr/lib64/graphviz/config6 is zero sized, or other read error.
Warning: Could not load "/usr/lib64/graphviz/libgvplugin_gd.so.6" - file not found
Warning: Could not load "/usr/lib64/graphviz/libgvplugin_rsvg.so.6" - file not found
Warning: Could not load "/usr/lib64/graphviz/libgvplugin_xlib.so.6" - file not found
Segmentation fault

All these files are present at those locations.

I have installed all the deps listed here: http://www.graphviz.org/Download_source.php including optional packages and the devel versions of all of them. Also installed "dnf install gtk2 libXau libxcb libXext" from a SO post which looked like the same problem.

Does anyone have any suggestions?

Many thanks,
Tom

1.  You are not expected to

1.  You are not expected to run "sudo dot -c"  by hand.  Its run in the post-install scripts from the rpms.

2. I would guess that you have some older, broken plugins still in /usr/lib(64)/graphviz/ ?  Perhaps they were from a manual installation?

This should clear everything out (as root)

     rpm -qa | grep graphviz | xargs rpm -e

     yum install graphviz

but you could also try:

     rm -rf /usr/lib*/graphviz

     yum reinstall graphviz

3. The warnings say that something looking like a plugin failed to load, which should be innocuous.   The segmentation fault is a bug.

Recent comments