[CWB] Character encoding problems when transferring corpus

Stefan Evert stefanML at collocations.de
Thu Aug 16 23:53:00 CEST 2012


On 16 Aug 2012, at 21:37, Josep M. Fontana wrote:

> Anyway, I installed Homebrew but I still have problems installing the external Glib2 library. The error message I get when trying to install glib2 via Homebrew is:
> 
> "No available formula for glib2"

The formula is simply called "glib", not "glib2".  As per the instructions in the INSTALL file:

> Make sure that no other package managers (Fink, MacPorts) are installed on your
> system, as they might conflict with the build process described here.  Now install
> the prerequisite external libraries with the following shell commands:
> 
>         brew -v install pkg-config
>         brew -v install glib --universal
>         brew -v install pcre --universal
> 
> Now edit the file "config.mk", setting the platform entry to
> 
>         include $(TOP)/config/platform/darwin-universal
> 
> and the site configuration as desired.  Then enter the shell commands
> 
>         make clean
>         make depend
>         make all
>         make install
> 
> as shown in the section "QUICK INSTALLATION" above.


Concerning your other problems:

> OK, so after installing all the dependencies, I managed to run the 'cwb-install-mac-osx' script but then I got new errors which I reproduce at the end of the message. I looked into the script file and I realized that the problem was that the script looked for config.mk and the rest of files in its directory ('home/cwb/install-scripts/cwb-install-mac-osx') but these files were in 'home/cwb'.

That sounds like you executed the quick install script from its directory, whereas you're expected to do that from the root of the CWB source tree (~/cwb in your case).  See the instructions in INSTALL:

>          sudo ./install-scripts/cwb-install-mac-osx

All commands described in the INSTALL file need to be executed from this root directory.


If you've really got the prerequisites installed, all you really need to do is to edit config.mk manually to set the platform to

        include $(TOP)/config/platform/darwin-universal

and then run

        make clean
        make depend
        make all
        sudo make install

from the root directory of the source code tree.

Hope this helps,
Stefan




More information about the CWB mailing list