[CWB] Re: CWB software package - request for help
Stefan Evert
stefanML at collocations.de
Wed Sep 8 00:29:45 CEST 2010
[CC: to the CWBdev list because this is probably something that should go in the FAQ, or at least that every user should be aware of ...]
Hi Eva!
> Maybe I found the source of the erroneous installation; in the API README file it says:
>
> You will probably have to login as root for the last step (or you can type
> "sudo make install" and enter your root password). If you want to install
> the CWB/Perl modules in a non-standard location, say in "~/perl/lib/perl5/..."
> and "~/perl/man/...", type the following instead of "perl Makefile.PL":
>
> perl Makefile.PL PREFIX=~/perl INSTALLMAN1DIR=~/perl/man/man1
>
> In the instructions it says to use ~, so I might have used it as well.
It's fine to use this when installing the Perl modules ...
> I installed the package and the API all over again , however I still encounter errors when trying to run some commands (simple CQP commands, like $cqp->exec(' "hi" ')).
> Maybe you have some idea on that matter?
... the problem must have happened at an earlier stage, when installing the CWB binary distribution (with cqp, cwb-encode, etc.). When you did this, you must have edited "install-cwb.sh" to set a different installation path, like so:
## Directory tree where the CWB will be installed
## (e.g. /usr/local installs CQP in /usr/local/bin, manpages in /usr/local/share/man, etc.)
PREFIX='~/Installs/CWB'
(I don't remember the exact path you used). The problem is that "~" isn't always interpreted correctly to mean your home directory. It works in the install script, but not e.g. in the CWB/Perl modules.
The cleanest solution is to always specify the complete absolute path, e.g.
PREFIX='/Users/my_name/Installs/CWB'
At least on my Mac, it also seems to work well if I just omit the quotes:
PREFIX=~/Installs/CWB
You just have to be careful about blanks or other special characters in the directory names, but this should be avoided anyway.
Hope this finally solves your CWB/Perl woes!
Best wishes,
Stefan
More information about the CWB
mailing list