Tags:
create new tag
, view all tags
Due to be refactored into TWikiOnWindows ...


I've successfully moved TWiki over to mod_perl on Windows NT (see codev.ModPerl for details).

However, while I at first thought some things where working better, they don't in fact seem to be. Is there _anyone_ out there who has gotten TWiki Dec 2000 running fully on Windows NT, including all features: rcs, diff etc? If so, would you PLEASE tell me how you did it! I have gotten TWiki up in general, have found and installed windows versions of RCS and diffutils. What I need to do is test that those programs are actually callable from TWiki/Perl (I have put the .exe files in the twiki/bin dir, which helped). Here is a sample of some of the errors i'm seeing in the apache error.log:

[Thu Jun 14 10:42:02 2001] [error] [client 216.39.170.247] (2)No such file or directory: script not found or unable to stat: /apache/twiki/bin/view

k:/apache/twiki/data/TWiki/RCS/egrep,v: No such file or directory

rlog: rlog: -i option is ignored after pathnames

rlog: -l option is ignored after pathnames

RCS/.txt.txt,v: No such file or directory

rlog: Use of uninitialized value in gmtime at k:/apache/twiki/bin/wikistore.pm line 134. An actual Twiki-on-Windows bug?

k:/apache/twiki/data/TWiki/RCS/egrep,v: No such file or directory

rlog: rlog: -i option is ignored after pathnames

rlog: -l option is ignored after pathnames

RCS/.txt.txt,v: No such file or directory

rlog: Use of uninitialized value in gmtime at k:/apache/twiki/bin/wikistore.pm line 134.

k:/apache/twiki/data/TWiki/RCS/egrep,v: No such file or directory

rlog: rlog: -i option is ignored after pathnames

I also think it might not be a bad idea at this point to reinstall or update my Twiki install - which version would you recommend - I do have CVS access etc. I'm not at all afraid of (and in fact would relish) something closer to the leading edge, but maybe that should wait until I have a fully working instance of a stable distro?

Thanks,

-- DavidLeBlanc - 14 Jun 2001

most of the problems that I had on WinNT have to do with getting the slashes just right. in some places you need to use UNIX style slashes, in others the windows one. If you put the windows slash into the Twiki.cfg file you have to remember to use two of them (you need to escape the slash in perl code).

similarly, when i did the VSS port, I had to edit the perl code that created the filename with path to the .txt file so that it appended the double windows slash. Eventually we will need to put that into the configuration file, and then I will cater for it in the install script.

the stable distribution will probably not help you with that..

-- SvenDowideit - 14 Jun 2001

Diffs don't work for me.... but I suspect I don't have the right ordering of GNU DIFF in the path. RCS works, there is a topic about fixing that.

-- MartinCleaver - 15 Jun 2001

Windows does NOT need back slashes to function - it will accept forward slashes quite nicely - except on the command line.

I have verified that rlog, co, ci, diff, egrep, fgrep and grep all work from the command line, just not with TWiki.

-- DavidLeBlanc - 16 Jun 2001

This is not true except for cygwin-compiled software.

The Cygwin DLLs emulate a Unix file system on top of the NT file system, which still won't accept forward slashes.

There are some environment variables that influence Cygwin's filesystem behaviour.

Another possible source of problems is the shell. The Cygwin toolchain is designed to work with bash, not with NT's CMD.EXE. You may have to configure your Perl installation so that it uses bash, or maybe copy bash.exe to /bin/sh to make shell scripts happy.

Some of these things changed with the latest release of Cygwin. In particular, there's an installation program that handles the bash-related issues for you smile (Perl may still need tweaking, I've never installed Perl)

-- JoachimDurchholz - 17 Jun 2001

I can confirm that Perl can do the right thing with forward slashes.

-- MartinCleaver - 17 Jun 2001

Sorry, but unless the slashes are used on the command line, a forward slash is 100% legal. In Visual C++, opening a file using something like "c:/my/path/to/a/file.txt" works just fine. OTOH, in VC++, using "\"'s requires doubling so that it would have to be "c:\\my\\path\\to\\a\\file.txt". This is documented somewhere obscurely.

FWIW, Python and Tcl also do the right thing with forward slashes within their respective environments (and require doubling if back slashes are used).

-- DavidLeBlanc - 19 Jun 2001

Oh. Right.

Some experiments yielded the following results:

  • You can use the forward slash in a directory name.
  • This works even on the command line if you put the name into quotes.
  • You cannot separate directory and file name with a forward slash. (Tested with quoted file names from the command line.)

Microsoft <sigh>.

The official documentation in MSDN is under the heading "File Name Conventions", but it has a somewhat sloppy wording (the definition of the term "path" is easy to overlook, and some terms aren't defined at all).

-- JoachimDurchholz - 20 Jun 2001

Meanwhile, back to the chase - Joachim and/or Martin and/or whoever is running a fully featured Twiki on NT - would you share your secrets PLEASE? smile

-- DavidLeBlanc - 20 Jun 2001

Can't help you with that. I make a living with programming on Windows, but my TWiki is installed on the AIX box of a friend.

I just try to add background information on NT when I feel it's helpful.

-- JoachimDurchholz - 22 Jun 2001

Hey, I owe you all an apology - I said IŽd share what my experiences ages ago and I still have not done this. I apologise. I do want to formalise what I found for work as well.

The whole of next week is not possible for me, but the weeke after should be.

So, please feel free to remind me the week of the 2nd July! I will spend at least evenings in that week formalising what I found.

[I no longer have any time allocated to our TWiki installation and am full-time on a client engagement with no access to the installation at weekends. Access in the evenings is tricky as well: access to the internet is different to access to my installation.]

-- MartinCleaver - 22 Jun 2001

Edit | Attach | Watch | Print version | History: r14 < r13 < r12 < r11 < r10 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r14 - 2001-11-21 - MikeMannix
 
  • 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-2017 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.