Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| install:compile_linux [2008/08/18 18:55] – 137.204.90.135 | install:compile_linux [2010/12/03 09:30] (current) – old revision restored eros | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Compiling CWB from source under Linux ====== | ====== Compiling CWB from source under Linux ====== | ||
| - | Compilation and installation of CWB version 2.2.b98 | + | Compilation and installation of CWB version 2.2.104, tested on Ubuntu 9.10 (Karmic Koala) | 
| ===== Prerequisites ===== | ===== Prerequisites ===== | ||
| Line 13: | Line 12: | ||
| * gcc | * gcc | ||
| * libc6-dev | * libc6-dev | ||
| + | * libglib2.0-dev | ||
| * libncurses5-dev | * libncurses5-dev | ||
| + | * make | ||
| + | * subversion | ||
| - | So, in case they are not installed, all you have to do in Ubuntu  | + | So, in case they are not installed, all you have to do in Ubuntu is: | 
| < | < | ||
| - | sudo apt-get install autoconf bison flex gcc libc6-dev libncurses5-dev | + | sudo apt-get install autoconf bison flex gcc libc6-dev libglib2.0-dev libncurses5-dev  | 
| </ | </ | ||
| - | |||
| ===== Getting the source code ===== | ===== Getting the source code ===== | ||
| - | Get the source code from [[http:// | + | Get the source code using subversion, see [[http:// | 
| - | + | ||
| - | <code bash> | + | |
| - | tar xf cwb-XXXXXX.tgz | + | |
| - | </ | + | |
| Enter the new directory: | Enter the new directory: | ||
| Line 49: | Line 46: | ||
| < | < | ||
| - | include $(TOP)/ | + | include $(TOP)/ | 
| </ | </ | ||
| Line 56: | Line 53: | ||
| < | < | ||
| include $(TOP)/ | include $(TOP)/ | ||
| + | </ | ||
| + | |||
| + | or | ||
| + | |||
| + | < | ||
| + | include $(TOP)/ | ||
| + | </ | ||
| + | |||
| + | or | ||
| + | |||
| + | < | ||
| + | include $(TOP)/ | ||
| </ | </ | ||
| Line 79: | Line 88: | ||
| [...] | [...] | ||
| </ | </ | ||
| + | |||
| ===== Compilation ===== | ===== Compilation ===== | ||
| - | Then we compile the different components, one at a time. First we clean and check dependencies: | + | Next compile the different components, one at a time. First clean and check dependencies: | 
| <code bash> | <code bash> | ||
| Line 89: | Line 99: | ||
| </ | </ | ||
| - | Then we compile the corpus library: | + | Then compile the corpus library: | 
| <code bash> | <code bash> | ||
| Line 95: | Line 105: | ||
| </ | </ | ||
| - | Editline is a bit of a problem at the time, hopefully it will be fixed very soon, but right now you have to follow this procedures to compile it correctly: | + | Now '' | 
| <code bash> | <code bash> | ||
| - | cd editline | ||
| - | make clean | ||
| - | autoconf  | ||
| - | ./configure | ||
| - | cd .. | ||
| make editline | make editline | ||
| </ | </ | ||
| - | Then the utilities | + | Then '' | 
| <code bash> | <code bash> | ||
| Line 112: | Line 117: | ||
| </ | </ | ||
| - | Finally  | + | Finally compile  | 
| <code bash> | <code bash> | ||