Tags:
create new tag
view all tags

Question

  • TWiki version:20030201
  • Perl version:5.6
  • Web server & version:Apache/1.3.27
  • Server OS:Linux
  • Web browser & version:
  • Client OS:

I am running on a virtual host. Diff is not behaving properly. This is what I get when I diff Main.WebHome

 <<O>>  Difference Topic WebHome (r1.20 - 02 Feb 2003 - PeterThoeny)

 <<O>>  Difference Topic WebHome (r1.19 - 28 Jun 2002 - PeterThoeny)

 <<O>>  Difference Topic WebHome (r1.18 - 14 Apr 2002 - PeterThoeny)

 <<O>>  Difference Topic WebHome (r1.17 - 07 Apr 2002 - PeterThoeny)

 <<O>>  Difference Topic WebHome (r1.16 - 24 Nov 2001 - PeterThoeny)

 <<O>>  Difference Topic WebHome (r1.15 - 31 Aug 2001 - MikeMannix)

 <<O>>  Difference Topic WebHome (r1.14 - 17 Jul 2001 - PeterThoeny)

 <<O>>  Difference Topic WebHome (r1.13 - 16 Mar 2001 - PeterThoeny)

 <<O>>  Difference Topic WebHome (r1.12 - 14 Dec 2000 - PeterThoeny)

 <<O>>  Difference Topic WebHome (r1.11 - 27 Nov 2000 - PeterThoeny)

 <<O>>  Difference Topic WebHome (r1.10 - 08 Nov 2000 - PeterThoeny)

 <<O>>  Difference Topic WebHome (r1.9 - 15 Sep 2000 - PeterThoeny)

 <<O>>  Difference Topic WebHome (r1.8 - 09 Sep 2000 - PeterThoeny)

 <<O>>  Difference Topic WebHome (r1.7 - 19 Aug 2000 - PeterThoeny)

 <<O>>  Difference Topic WebHome (r1.6 - 03 Aug 2000 - PeterThoeny)

 <<O>>  Difference Topic WebHome (r1.5 - 05 Apr 2000 - PeterThoeny)

 <<O>>  Difference Topic WebHome (r1.4 - 26 Feb 2000 - PeterThoeny)

 <<O>>  Difference Topic WebHome (r1.3 - 04 Feb 2000 - PeterThoeny)

 <<O>>  Difference Topic WebHome (r1.2 - 05 Oct 1999 - PeterThoeny)

 <<O>>  Difference Topic WebHome (r1.1 - 13 Jun 1999 - PeterThoeny)
Added:
>
>

Welcome to the home of TWiki.Main. This is a web based collaboration area to get to know the TWiki tool.

The TWiki home is at http://www.mindspring.net/~peterthoeny/twiki/index.html

Good starting points at the TWiki.Main web are:

  • WelcomeGuest?: Look here first to get you rolling on TWiki.
  • TWikiWeb?: Explains what a TWiki web is.
  • TWikiUsers: List of visitors to this TWiki web.

  • GoodStyle?: Things to consider when changing text.
  • TextFormattingRules?: Easy to learn rules when editing text.
  • TextFormattingFAQ?: Answers to frequently asked questions about text formatting.
  • TestArea?: The place to get your virtual TWiki hands dirty!

  • Topic index: List up all TWiki.Main topics in alphabetical order.
  • Search: Full text search of TWiki.Main.
  •    (More options in WebSearch)
  • Changes: Find out recent changes of the Main web.
  • WebNotify: Subscribe to be automatically notified when something changes in TWiki.Main.

Notes:

  • You are currently in the TWiki.Main web. The color code for this web is a light yellow background, so you know where you are.



Topic WebHome . { View | Diffs | r1.20 | > | r1.19 | > | r1.18 | More }

-- MattVargas - 04 Feb 2003

Answer

It looks like there is a problem with the GNU diff. Is it installed, is TWiki.cfg configured correctly? what is the testenv utility reporting?

-- PeterThoeny - 04 Feb 2003

diff (GNU diffutils) 2.7.2 is installed. TWiki.cfg is configured well enough that everything else works. testenv reports this: diff:GNU diff was found on the PATH - this is the recommended diff tool.Note: The 'diff' command is used by RCS to compare files.

I had to manually install rcs to get versioning to work. Now that $rcsDir is defined correctly rcs works. Is there a similar setting for diff?

-- MattVargas - 04 Feb 2003

I believe the path to diff is hardcoded, e.g. determined at compile time of rcs. This can cause problems in case your http user has not the same environment like your own account.

-- PeterThoeny - 08 Feb 2003

Good point about hard coding, didn't realise this - you can run following command on Unix/Linux or CygWin to find the hard-coded path used by RCS:

strings  /bin/rcsdiff | grep /diff           # Unix/Linux

strings  /bin/rcsdiff.exe | grep /diff       # Cygwin

Probably testenv should run this command instead of using the path, or at least report if they are different.

-- RichardDonkin - 08 Feb 2003

I found that the diff command hard coded in rcsdiff was also in the path on my http account. strings ./rcsdiff | grep /diff gave /usr/bin/diff. So I added `which diff` to testenv and it reports that /usr/bin/diff is there. The http account environment is different than my normal user env. but /usr/bin/diff is common to both of them.

This doesn't seem to be the problem.

-- MattVargas - 10 Feb 2003

I have exactly the same problem as Matt. Is this issue still alive? I have RCS/GNU diff installed in a separate directory and have $SafeEnvPath configured. Running 'strings' on my rcsdiff doesn't yield anything.

Any ideas?

-- PatrickVanDerVeken - 15 Aug 2003

Add me to the list, too. My strings showed a link to /usr/lbin/rdiff. But moving that one out of the way, and linking /usr/lbin/rdiff to /usr/local/bin/diff still did not solve the problem. Sure would be nice to get diffs working. All suggestions appreciated.

-- SteveCooper - 02 Sep 2003

Steve, can you start a new question linking to this one (see SupportGuidelines for why), and include the details asked for in SupportGuidelines, including testenv output, Apache error log output, etc? You will need to show the RCS commands being run under TWiki, see TWikiDebugging for how to do this.

One relatively easy solution would be to install your own copy of RCS and diff, which may be easier than debugging this problem.

-- RichardDonkin - 03 Sep 2003

Richard, thanks for your response. I took your second suggestion, which was in fact much easier. I installed rcs in /usr/local/bin from the Purdue source, and am ignoring the one built-in to HP-UX 11i. It now works great! Thanks again.

-- SteveCooper - 04 Sep 2003

No problem - see also TWikiOnHPUX where building a new RCS and diff is recommended (as on TWikiOnSolaris which is similar).

-- RichardDonkin - 04 Sep 2003

Edit | Attach | Watch | Print version | History: r12 < r11 < r10 < r9 < r8 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r12 - 2003-09-04 - RichardDonkin
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.