[CWB] CWB Windows 7 (64bit) used with cygwin
Hardie, Andrew
a.hardie at lancaster.ac.uk
Fri Jul 30 01:01:18 CEST 2010
Hi Hannah,
I am afraid that I can't reproduce this error on my system - the following all works for me within cmd.exe:
C:\CWB>cqp -r registry
[no corpus]> show corpora;
System corpora:
[correct list of corpora]
C:\>cqp -r C:\CWB\REgistry
[no corpus]> show corpora;
System corpora:
[correct list of corpora]
C:\Documents and Settings>cqp -r C:\CWB\REgistry
[no corpus]> show corpora;
System corpora:
[correct list of corpora]
With the following paths in the registry file:
# path to binary data files
HOME "C:\\CWB\\Data\\name-of-corpus"
# optional info file (displayed by "info;" command in CQP)
INFO "C:\\CWB\\Data\\name-of-corpus\\corpus-info.txt"
Even cqp -r "documents and Settings\..\CWB\Registry" worked.
I was working on a clean XP virtual machine, version 3.2.b1. I have not got a Windows 7 install disk yet, but I should have it next week, and when I do I will try it on there to see if it's just a difference in the OS that is causing your trouble.
Andrew.
From: cwb-bounces at sslmit.unibo.it [mailto:cwb-bounces at sslmit.unibo.it] On Behalf Of Hannah Kermes
Sent: 26 July 2010 12:08
To: cwb at sslmit.unibo.it
Subject: Re: [CWB] CWB Windows 7 (64bit) used with cygwin
Hi Andrew,
Am 26.07.2010 12:17, schrieb Hardie, Andrew:
Hi Hannah,
It's almost certainly because you are using forward-slash as the directory separator. The Windows build expects backslash as is usual in the Windows world. Likewise it expects a drive-letter root not a bare / root for absolute paths. (If you use cwb-encode to create your registry file, you'll see it creates paths like this; paths may also need to be double quoted in the reg file).
That was what I tried first, but with backslashes with or without drive-letter root it wouldn't work (I am talking about the windows shell now). The only version that works is with forward-slashes and no drive-letter root (i.e., the version I sent to you). That was what suprised me in the beginning, because the windows shell displays the directory with backslashes.
Best
Hannah
The Windows version can in some cases but not all cope with the forward slash as a separator, as you found, but I think the problems on cygwin may be due to the conflicting expectations of cygwin and the win32 build environment in this regard. But I'm not especially troubled by this; as I said before, the win32 binaries are not expected to work in cygwin, so when they don't, it's not a bug! If you build CWB from source within cygwin, then all the paths you gave below will work exactly as per your expectations.
As for -e mode - I see the problem now. The command-line editing you get from cmd.exe includes the use of backspace, left-right cursors, and a command history on the up-down cursors. Under *nix, you need the -e option to get these - and so that's what I was thinking about, rather than the TAB-complete-corpus. Next time I get a chance, I'll take a look at the code to see if there is a way to enable this in the Win32 build. However, I suspect this may be problematic.
best
Andrew.
From: cwb-bounces at sslmit.unibo.it [mailto:cwb-bounces at sslmit.unibo.it] On Behalf Of Hannah Kermes
Sent: 26 July 2010 11:00
To: cwb at sslmit.unibo.it
Subject: Re: [CWB] CWB Windows 7 (64bit) used with cygwin
Hi Andrew,
sorry for not replying earlier, but I had a terrible cold which prevented me from working in a reasonable manner.
Am 21.07.2010 18:56, schrieb Hardie, Andrew:
Hannah,
Can you actually literally copy-paste into an email the commands you typed please? Plus the relevant lines of your registry file.
I tried the whole thing out again, and thought I had tried all before, but I must have omitted the following:
registry file:
ID dickens
HOME /Dateien/Uni/Corpora/DemoCorpus/data
INFO /Dateien/Uni/Corpora/DemoCorpus/data/.info
This works as a non-local path in the windows shell, but not in the cygwin. Sorry about that, I thought I had tried this variant before as well.
commands, e.g.
cqp -r Corpora/registry
which wouldn't work (for cygwin), while (when inside the directory Corpora)
cqp -r registry
worked
so I guess I must have taken something like (and others, including the cygwin-paths):
registry file:
ID dickens
HOME D:/Dateien/Uni/Corpora/DemoCorpus/data
INFO D:/Dateien/Uni/Corpora/DemoCorpus/data/.info
before (which was what cd showed me as path), which definetly does not work, neither in the windows nor the cygwin shell.
For cygwin I tried also to use:
registry file:
ID dickens
HOME /home/HK/Dateien/Uni/Corpora/DemoCorpus/data
INFO /home/HK/Dateien/Uni/Corpora/DemoCorpus/data/.info
and
ID dickens
HOME /cygdrive/d/Dateien/Uni/Corpora/DemoCorpus/data
INFO /cygdrive/d/Dateien/Uni/Corpora/DemoCorpus/data/.info
which both didn't work.
So I guess the problem was with cygwin.
Also, can you expand on "I do not have command-line editing in the windows shell either", i.e. specify what you expected to be able to do that you couldn't.
This problem still exists:
If I type the beginning of a command or corpusname and hit TAB the command or corpusname should be expanded - to the end, if only one possibility exists and up to the common characters, and
- showing me the possible expansions, if more than one possibility exists.
which it doesn't. (and I thought, this is what the -e option does)
Sorry again about the "directory"-problem.
Best
Hannah
Thanks
Andrew.
________________________________
From: cwb-bounces at sslmit.unibo.it [mailto:cwb-bounces at sslmit.unibo.it] On Behalf Of Hannah Kermes
Sent: 21 July 2010 17:50
To: cwb at sslmit.unibo.it
Subject: [CWB] CWB Windows 7 (64bit) used with cygwin
Hi Andrew,
with regard to the PATH problem I tried different things.
I wanted to be able to run cqp no matter in which directory I was.
So I tried:
absolut path of the corpus directory in the respective registry file of the corpus.
The file was in a non-standard registry.
Then I started cqp with the -r option and the path to the respective registry directory.
-> the corpus was not found
I put the registry file in the standard registry.
Started cqp
-> corpus was not found
The only way to make cqp find the corpus was
to have a local path in the registry file
start cqp with the -r option and the path to the registry directory
with regard to the -e option:
I do not have command-line editing in the windows shell either.
But beside of that it works quite well: I can even use macros
and the cygwin command with pipes for the export.
Funny enough the macro-files do not have to be stored locally and can be read in automatically
via the .cqprc with absolute paths.
Best Hannah
Hi Hannah,
First, I'm pleasantly surprised that the programs run at all under Cygwin - the Windows binaries are compiled with all kinds of assumptions that are not necessarily true under Cygwin. The "right way" to use CWB in Cygwin is to compile it within Cygwin and the "right way" to use the Windows binaries is from the Windows shell.
That said, the fact you had problems in the Windows shell as well suggests this is an actual bug rather than an incompatibility with Cygwin. Could you give some more details about where you entered the absolute paths (with the -r option? or as commands into CQP? if so with which commands?) If I know exactly what you entered and exactly what happened / didn't happen I may be able to track the bug down.
You're correct that cwb-make isn't present in the Windows install. This is because it is part of the Perl support module, not part of the actual CWB package. Adapting the latter to be Windows-compatible is a job we have not yet addressed.
Finally: The -e option is removed purposefully from the Windows version. (Although I may not yet have got round to removing it from the -h help dump!) On *nix it activates the editline library, but on Windows cmd.exe gives you input line editing anyway, so it's not needed.
best
Andrew.
-----Original Message-----
From: cwb-bounces at sslmit.unibo.it <http://devel.sslmit.unibo.it/mailman/listinfo/cwb> [mailto:cwb-bounces at sslmit.unibo.it <http://devel.sslmit.unibo.it/mailman/listinfo/cwb> ] On Behalf Of Hannah Kermes
Sent: 21 July 2010 13:28
To: cwb at sslmit.unibo.it <http://devel.sslmit.unibo.it/mailman/listinfo/cwb>
Subject: [CWB] CWB Windows 7 (64bit) used with cygwin
Hello,
I just recently installed the windows version of CWB on my laptop.
Untill now I worked only with smaller corpora (the largest was the
EUROPARL).
So far it works fine as long as I use the cqp with local paths. The
registry and the corpora directories are in the same directory and I
start cqp from this directory.
If I want to use absolute paths, the corpus is not found by CQP,
even if I use the normal registry directory of CQP.
When exporting results from cqp, it again works fine to store the
results in the local directory, but I cannot redirect it to another
directory.
Another problem I encountered, which is a bit more annoying, is that the
-e option does not seem to work.
Despite my dislike for the native windows shell, I tried it also, but
encountered the same problems.
I encoded some small sample corpora, which worked fine, but I do not
seem to have the more comfortable cwb-make but only cwb-makeall ...
Did I forget to install something, or is that not available for the
Windows-Version?.
Thanks a lot in advance
Hannah
--
Dr. Hannah Kermes
Dept. of Applied Linguistics, Interpreting and Translation (FR 4.6)
Universität des Saarlandes
Building A2.2, Room 1.07
P.O. Box 15 11 50, D-66041 Saarbrücken
phone: +49-(0)681-302-70076
--
Dr. Hannah Kermes
Dept. of Applied Linguistics, Interpreting and Translation (FR 4.6)
Universität des Saarlandes
Building A2.2, Room 1.07
P.O. Box 15 11 50, D-66041 Saarbrücken
phone: +49-(0)681-302-70076
_______________________________________________
CWB mailing list
CWB at sslmit.unibo.it
http://devel.sslmit.unibo.it/mailman/listinfo/cwb
--
Dr. Hannah Kermes
Dept. of Applied Linguistics, Interpreting and Translation (FR 4.6)
Universität des Saarlandes
Building A2.2, Room 1.07
P.O. Box 15 11 50, D-66041 Saarbrücken
phone: +49-(0)681-302-70076
_______________________________________________
CWB mailing list
CWB at sslmit.unibo.it
http://devel.sslmit.unibo.it/mailman/listinfo/cwb
--
Dr. Hannah Kermes
Dept. of Applied Linguistics, Interpreting and Translation (FR 4.6)
Universität des Saarlandes
Building A2.2, Room 1.07
P.O. Box 15 11 50, D-66041 Saarbrücken
phone: +49-(0)681-302-70076
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://liste.sslmit.unibo.it/pipermail/cwb/attachments/20100730/2a9df1d0/attachment-0001.htm
More information about the CWB
mailing list