Question
I notice that in editing wikicfg.pm that the rcs checkin command "ci" is not the only rcs command. In
MacOSX there is no "ci" command in the directory containing rcs. However, there is a command called "rcs-checkin". There does not appear to be a "co" command.
My question here is "what to do?"
- TWiki version: 20001201
- Web server: Apache/1.3.14 (Darwin)
- Server OS: Mac OS X 10.0
--
GeorgeGirton - 06 Apr 2001
Answer
The Developer Tools CD includes all the rcs commands. --
JonReid - 18 Jun 2001
Thanks!
Thanks very much. That explains where they came from all of a sudden! I had been wondering how I could have overlooked them and had forgotten that I ran the Developer Tools CD.
--
GeorgeGirton - 19 June 2001
Fixing the RCS user
Due to some security features in
MacOSX (and some other OSes too), you also need to make slight modifications to TWiki's
RCS support to ensure that the revision-control files are accessed under the correct user name.
In first section of
lib/TWiki.cfg, add:
# User name of the web server (for RCS)
$serverUID = "www";
In
lib/TWiki.pm,
- at the end of the
use vars qw block, add: $serverUID
- in initialize, before
# Make %ENV safer for CGI (around line 154) add these two lines:
$ENV{'USER'} = $serverUID;
$ENV{'LOGNAME'} = $serverUID;
See
RcsNonStrictLocking for more details and history of this issue.
Does anyone know if these changes have been rolled into the TWiki distribution since this issue was resolved?
--
ToddJonker - 24 Jun 2002
RcsLite should be possible on Mac, but needs testing and might need some alterations.
--
JohnTalintyre - 09 Apr 2002
Changing the user to "www" will work but you might notice something interesting when getting all of this to work. It may appear that this fix didn't work when it really did. According to
RCSStuckVersion, "The version number does not increase if the same person edits the same topic again with one hour (by default)." Therefore, you may see some files increasing in version number and some not. That's why. Your system is really working.
--
JoelSumner - 22 Jan 2003
I'm having the
RCS user issue with Dakar (4.0.1). RCSLite works, but performance is so bad my users think the server is down. The error seems to be with the lock command
During save of myweb.WikiWord an error was found by the version control system. Please notify your TWiki administrator.
=RCS: /usr/bin/rcs -e -l %FILENAME|F% failed: =
The warn log says "| 21 Mar 2006 - 00:35 | exec failed: No such file or directory at /Twiki/lib/TWiki/Sandbox.pm line 317."
New files are created as root, although the web server runs as www. Can someone update the instructions for Dakar?
--
MichaelCroft - 21 Mar 2006