Jan Niehusmann <[EMAIL PROTECTED]> writes: > Compiling a simple test program with qt4 failed with this error message: > > $ qmake > $ make > (cd "/src/tools/moc" && make) > /bin/sh: line 0: cd: /src/tools/moc: No such file or directory > make: *** [/usr/bin/moc] Error 1 > > The reason is, that I somehow ended up with a broken alternatives > symlink > for moc: > > $ ls -al /etc/alternatives/moc > lrwxrwxrwx 1 root root 20 Nov 5 2003 /etc/alternatives/moc -> > /usr/lib/qt2/bin/moc > $ ls -al /usr/lib/qt2/bin/moc > ls: /usr/lib/qt2/bin/moc: No such file or directory
Hmm, I wonder if an old Qt2 package didn't properly call "update-alternatives --remove" in the prerm. > Unfortunately, update-alternatives seems to be unable to correct this: > > # update-alternatives --config moc > > There is only 1 program which provides moc > (/usr/bin/moc-qt4). Nothing to configure. That's probably an update-alternatives bug, but there are so many to choose from I can't figure out which one it is... #100135 is one possibility... > Of course, the fix is trivial (manually correct the symlink). I have no > idea how this happened, but I surely didn't manually mess with the > alternatives. Probably some interesting sequence of installs and > uninstalls of different versions of qt. Yep, that would be my guess. -- Society is never going to make any progress until we all learn to pretend to like each other. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]