[CWB] CWB Windows 7 (64bit) used with cygwin

Hannah Kermes h.kermes at mx.uni-saarland.de
Mon Jul 26 12:00:05 CEST 2010


  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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://liste.sslmit.unibo.it/pipermail/cwb/attachments/20100726/99f1406b/attachment.htm


More information about the CWB mailing list