[CWB] Character encoding problems when transferring corpus

Stefan Evert stefanML at collocations.de
Mon Aug 13 09:31:41 CEST 2012


> OK, I tried to install version 3.4 via Subversion but as you predicted I wasn't able to overwrite my existing installation without using the CWB_LIVE_DANGEROUSLY environment variable. I then tried to follow the instructions in the INSTALL file but I'm a little confused.
> 
> My apologies for asking about what must be very basic UNIX stuff but how do I set this environment variable?  In the INSTALL file I have the following 3 lines which don't seem to be not a single command.
> 
> ## sudo echo "export CWB_LIVE_DANGEROUSLY=1 && ./install-scripts/cwb-install-$YOUR_OS" | sudo bash
> ifndef CWB_LIVE_DANGEROUSLY
> PREFIX=/usr/local/cwb-$(VERSION)
> endif
> 
> I tried to enter the following command from my terminal:
> 
> $sudo echo "export CWB_LIVE_DANGEROUSLY=1 && ./Users/jfontana/cwb/install-scripts/cwb-install-mac-osx" | sudo bash

A much easier (and more natural) solution would be to change the line

	include $(TOP)/config/site/beta-install

in the file "config.mk" to

	include $(TOP)/config/site/standard

and then simply run "sudo ./install-scripts/cwb-install-mac-osx".  I suppose that Andrew added the CWB_LIVE_DANGEROUSLY option because he cannot edit config.mk as a developer (changes would be sent back to the Subversion repository), but this isn't a problem for you.

> Obviuosly there is something very basic I must be doing wrong because I get the following error message:
> 
> bash: line 1: ./install-scripts/cwb-install-mac-osx: No such file or directory

That is strange, because it differs substantially from the command you've shown above:

> $sudo echo "export CWB_LIVE_DANGEROUSLY=1 && ./Users/jfontana/cwb/install-scripts/cwb-install-mac-osx" | sudo bash


Either use "./install-scripts/cwb-install-mac-osx" or the full path "/Users/jfontana/cwb/install-scripts/cwb-install-mac-osx" (WITHOUT full stop at the start!).


Have you already installed the prerequisite libraries?  The install script doesn't do this automatically on Mac OS X.  Please take a look at the Mac OS X section in the INSTALL file for some instructions.

Best,
Stefan



More information about the CWB mailing list