if test "x" = "x"; then (cd /usr/local/bin; ./dot -c;); fi ./dot: error while loading shared libraries: libgvc.so.3: cannot open shared object file: No such file or directory make: *** [install-exec-hook] Error 127 make: Leaving directory `/home/ylo/graphviz-2.12/cmd/dot'
[ellson] I don't think so. This seems to be a difference between SuSE and Fedora build environments.
During 'rpmbuild --rebuild graphviz*src.rpm' on Fedora, the 'dot -c' execution is supposed to be suppressed because $(DESTDIR) is non-null. The 'dot -c' is intented to be run only in the %post scripts from the binary rpms when they are installed on the target machines.
I think what is needed is an improved test in src/cmd/makefile.am that works on SuSE. I don't have a SuSE box to play on. Can you help with this?
Add "ldconfig" in the appropriate place in Makefile. Beware, ldconfig is not present on all systems and may need to be checked in configure. Alternatively, set LD_LIBRARY_PATH before calling "dot -c" (this may be safer, but I have not checked if there are other related issues, and ldconfig probably needs to be run eventually anyway).