Number: 1061
Title: make install fails (cannot find
Submitter: Tatu Ylonen
Date: Fri Jan 5 08:14:04 2007
Subsys: Dot
Version: 2.12
System: x86-Linux-SuSE 10.1
Severity: minor
"make install" after compiling from 2.12 source rpm fails with the following error. Running ldconfig and then rerunning "make install" fixes the problem. Perhaps a call to "ldconfig" is missing from the Makefile (install target) after installing

if test "x" = "x"; then (cd /usr/local/bin; ./dot -c;); fi
./dot: error while loading shared libraries: cannot open shared object file: No such file or directory
make[4]: *** [install-exec-hook] Error 127
make[4]: Leaving directory `/home/ylo/graphviz-2.12/cmd/dot'

[north] John, do you agree here?

[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/ 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).
Owner: ellson
Status: *