Tags:
create new tag
view all tags

Question

Problem: I can't get RCS to work at all but everything else works. DIFFs work on the content that comes with TWiki, but any edits or new pages never create/change the .txt,v files.

I tried to follow the WindowsInstallCookbook as much as I could give I was using IIS and ActivePerl.

  • TWiki version: 20011201
  • Web server: IIS5
  • Server OS: Windows 2000
  • Web browser: IE 5.5 SP2
  • Client OS: Windows 98
  • Perl: ActiveState 5.6.1 build 631
  • Unix Utils: Cygwin

Debug from store.pm changes: 05 Apr 2002 - 11:17 Store exec: /usr/bin/ci -x,v -q -l -m"none" -t-none -w"guest" d:/web/twiki/data/Main/WebHome.txt 2>&1 1>NUL -> 05 Apr 2002 - 11:17 Store exec: /usr/bin/co -x,v -q -p1.1 d:/web/twiki/data/Main/WebHome.txt ->

I tried changing the RCS path back to d:/web/cygnus/bin and the debug only shows one entry: 05 Apr 2002 - 11:34 Store exec: d:/web/cygwin/bin/ci -x,v -q -l -m"none" -t-none -w"guest" d:/web/twiki/data/Main/WebHome.txt 2>&1 1>NUL ->

I will try to attach the output from the new testenv.pl

-- MichaelCodanti - 05 Apr 2002

Answer

Thanks for the attached testenv output - this shows that you have a mixture of config for Cygwin Perl and ActivePerl. A simple way to fix this would be to do the WindowsInstallCookbook steps to install Cygwin Perl, and then just use the sort of config shown there. However, I noticed you have PERL5SHELL set to 'bash -c', so commands using pipes will go via bash at least.

If you prefer ActivePerl, the thing to remember is that it requires pathnames such as d:/web/foo, i.e. you must have 'd:/' in the pathname. The sole issue with this is the $safeEnvPath setting, which takes a bit of tweaking - probably a command called by RCS is failing because the PATH setting, based on $safeEnvPath, is wrong. If you are using Cygwin RCS, the PATH needs to use a Cygwin path; otherwise, just use a Windows path with '/' characters. This is covered to some extent in WindowsInstallCookbook, see the bits about $egrepCmd etc.

I've also fixed the bug that caused the warning output in the testenv page - it's in CVS, so you can grab the fixed version from CVSget:bin/testenv.

-- RichardDonkin - 06 Apr 2002

I do want to use the ActivePerl, I have my $safeEnvPath set to /bin;/usr/bin;d:/web/cygwin/bin so that both Cygwin, and ActivePerl should be able to find what they are looking for.

I updated my testenv script, but I don't see any difference, which warning was supposed to be fixed?

What seems really weird to me is the diffs work on the pages that came with TWiki, so I know shelling to run all the diff stuff works, it just won't create or edit the ,v files.

-- MichaelCodanti - 08 Apr 2002

You can't mix different types of pathname in a single $safeEnvPath - the separators are ':' for Cygwin and ';' for Windows, so it won't work. However, if you have the full pathnames to $egrepCmd etc, you only need a very basic path pointing to diff and bash or cmd.exe, with just two parts to the PATH setting. See CVSget:lib/TWiki.cfg and read the comments and examples there. Also, you may need to use backslash paths if you are using cmd.exe, but be sure to use single quotes as mentioned in TWiki.cfg. (Note that you can't just use this version of the file as some other details are different.)

What happens when you run the commands shown above from the command line?

-- RichardDonkin - 09 Apr 2002

Topic attachments
I Attachment History Action Size Date Who Comment
HTMLhtml testenv.html r2 r1 manage 12.6 K 2002-04-05 - 19:33 UnknownUser Output from testenv.pl
Edit | Attach | Watch | Print version | History: r6 < r5 < r4 < r3 < r2 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r6 - 2002-05-21 - TWikiAdmin
 
  • 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.