Tags:
create new tag
, view all tags

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

TWiki version: TWikiRelease04x00x04
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS: Solaris 10
Web server: Apache 2.0
Perl version: 5.8
Client OS:  
Web Browser:  
Categories: Installation

-- AlexRaabe - 21 Jul 2006

Answer

ALERT! If you answer a question - or have a question you asked answered by someone - please remember to edit the page and set the status to answered. The status is in a drop-down list 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

 
Topic revision: r5 - 2006-07-25 - AlexRaabe
 
Twitter Delicious Facebook Digg Google Bookmarks E-mail LinkedIn Reddit StumbleUpon    
  • Download TWiki
TWiki logo Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2012 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.