Tags:
create new tag
, view all tags
Question After installing TWiki on the Web server I realized that the webmaster had to install RCS on the server in order for Twiki to keep revisions of the topics. Ok! RCS was installed (Thank you webmaster!) and now I can click on different revisions of a document (1.3, 1.2, ...) and I can see'em. Good!

But when I click on the greater than signs I get a 500 error from the web server. The error log shows the following line: [22/Mar/2001:17:52:54] failure ( 8489): for host 200.23.146.221 trying to GET /cgi-bin/pgit/TWiki/bin/rdiff/Test/TestTopic1, cgieng_scan_headers reports: the CGI program /www/apps/cgi-bin/pgit/TWiki/bin/rdiff did not produce a valid header (name without value: got line "       diff [-bitw] [-c number] file1 file2")

It is to mention that I had to edit all the perl scripts. (Only the first line) where they say something like:
#!/usr/bin/perl -wTI.
I omited the w 'cuz I was getting an error from the server. So it became:
#!/usr/bin/perl -TI.
Hey! The web server is not Apache. (Gosh! If it were I wouldn't be nagging with these things.)

Sincerely, thanks in advance.

  • TWiki version: Dic 2000
  • Web server: Netscape-Enterprise 3.6
  • Server OS: SunOS 5.6 Ultra-Enterprise

-- MarioMontoya - 22 Mar 2001

Answer

Have you seen RCSDiffNotWorkingBetweenRevisions?

Reply

I've seen it. Thank you...
As I was getting an illegal option error (B) running rcsdiff from the shell, I asked our gentle webmaster to install diffutils 2.7 from GNU. Finally we have this package running (thanks again!).

But the problem remains. :~(
I still get the same error (500) using a browser; and the same line in the error log. Yeah! something about the diff command.

Here is what I get when I run the command
usr/local/bin/rcsdiff -q -w -B -r1.1 -r1.4 WebHome.txt
on the shell:
/usr/bin/diff: illegal option -- B
usage: diff [-bitw] [-c | -e | -f | -h | -n] file1 file2
diff [-bitw] [-C number] file1 file2
diff [-bitw] [-D string] file1 file2
diff [-bitw] [-c | -e | -f | -h | -n] [-l] [-r] [-s] [-S name]directory1 directory2
rcsdiff: WebHome.txt: diff failed

I hope there's another workaround. * sigh * Hey! What about modifying the scripts so they don't use the B option, huh? Come on please, tell me there's a way to do it. B.t.w. Sorry for the delay, but our magnificent webmaster was quite a bit busy.

Best Regards.

P.S. Just a little confirmation: rcs and rcsdiff report RCS version 5.7. While diff, diff3, sdiff and cmp report GNU diffutils version 2.7

-- MarioMontoya - 30 Mar 2001

It looks like your RCS does not understand the -B switch. Simply removing it in the wikicfg.pm configuration file should solve the problem. The man pages report:

-B     Ignore  changes  that  just  insert or delete blank lines.

- PeterThoeny - 31 Mar 2001

That's what I did. Uuuuhuuu! It's working! Thank you very much.

-- MarioMontoya - 02 Apr 2001

btw: does somebody else have experience with using twiki with other webservers, like, eg. thttpd 2.21b?

-- ClemensFischer - 15 Jul 2001

Topic revision: r8 - 2001-11-01 - PeterThoeny
 
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.