Question
HI,
I've installed the GNU version of diff into /usr/local/bin (which ist the current PATH).
diff (GNU diffutils) 2.8.1
Copyright (C) 2002 Free Software Foundation, Inc.
Anyway, I am getting the following error message:
Warning: 'diff' program was found on the PATH but is not GNU diff - this may cause problems. diff: illegal option -- version usage: diff [-bitw] [-c | -e | -f | -h | -n | -u] file1 file2 diff [-bitw] [-C number | -U number] file1 file2 diff [-bitw] [-D string] file1 file2 diff [-bitw] [-c | -e | -f | -h | -n | -u] [-l] [-r] [-s] [-S name] directory1 directory2
Has anyone an idea for that problem?
Thanks
Environment
--
AlexRaabe - 21 Jul 2006
Answer
If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.
This looks like TWiki is picking another version of diff and not the GNU one which you installed.
Probable reason: During initialisation, TWiki resets the
PATH to whatever is configured as
$TWiki::cfg{SafeEnvPath}, which defaults to
'/bin:/usr/bin'.
So you'd have to choose:
- Either prepend
/usr/local/bin to your $TWiki::cfg{SafeEnvPath} (e.g. with TWiki's bin/configure),
- or install GNU diff in the paths where TWiki looks for it,
- or just check whether your
/bin/diff (or /usr/bin/diff) just works, though it does not understand --version.
--
HaraldJoerg - 21 Jul 2006
FYI, TWiki.org also runs on Solaris. We get the same error message, but diff and rcs just work fine.
--
PeterThoeny - 21 Jul 2006
That's the case in my installation as well. Thanks for the help!
--
AlexRaabe - 25 Jul 2006