Question
I'm having difficulties with the rcs command ci not being found. Here's what I've done.
%which rcs
/usr/bin/rcs
So, in my TWiki.cfg file
#
RCS directory (find out by 'which rcs') :
$rcsDir ="/usr/bin";
When I run testenv from my browser, it tells me:
$rcsDir: /usr/bin
Note: This is the directory where
RCS is located.
Warning:
RCS program /usr/bin/ci not found. Check the path.
I can enter the command "ci" at the shell prompt and get it to work.
I get the following error when I try to save changes to a topic.
/usr/bin/ci -q -l -m'none' -t-none -w'guest' /usr/home/jsb/usr/local/etc/httpd/twiki/data/Main/WebHome.txt 2>&1 1>/dev/null
/usr/bin/ci: not found
Even with the error, it seems to work and changes are saved.
Any help would be greatly appreciated.
.
- TWiki version: December 2001
- Web server: Apache/1.3.12 OpenSSL/0.9.6a
- Server OS: FreeBSD 4.2
- Web browser: IE 5.00
- Client OS: WIN98
--
JonathanBucki - 13 Jan 2002
Answer
What does "which ci" give you?
--
JonReid - 14 Jan 2002
"which ci" gives:
/usr/bin/ci
--
JonathanBucki - 14 Jan 2002
So, here's what I did. I copied rcs, ci, and co to another directory, (it's a virtual server situation), so a local /usr/bin, and then changed the path. It
seems to work now. Will this cause me any headaches later?
--
JonathanBucki - 15 Jan 2002
A friend helped me out. Here's what I found out. My virtual server is using something called "changed root," which means that the web server thinks that it is running at root level when it is really running at ~/home/username/ level. Since I didn't have rcs correctly installed in ~/home/username/user/bin (or some other appropriate directory), rcs never really worked because TWiki's scripts could not find/use it. So we installed rcs in ~/home/username/user/bin, edited the TWiki.cfg file appropriately, and Viola! Ca Marche.
--
JonathanBucki - 30 Jan 2002
This is what you need to do on VPS servers with root access (maybe virtual hosts too). Download a copy of gnu rcs (www.gnu.org). Then go to your ~site/usr/local/src directory (not the system /usr/bin directory). SU to admin and unpack the rcs source. Compile with ./configure --prefix=/path/to/~site/usr/. Then run make. This should install it all to ~site/usr/bin/, which is the /usr/bin under your virtual host. Then su back to root. Type 'make install' and it should now work.
--
MikeMindel - 27th August 2003