install:compile_linux

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
install:compile_linux [2008/08/18 18:55] 137.204.90.135install: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 cwb-2.2.b99-RC1, tested on Ubuntu 8.04 (Hardy Haron) +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 (or other debian-based distros such as Mepis) is:+So, in case they are not installed, all you have to do in Ubuntu is:
  
 <code> <code>
-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 make subversion
 </code> </code>
- 
 ===== Getting the source code ===== ===== Getting the source code =====
  
-Get the source code from [[http://cwb.sourceforge.net/|here]], and unpack it: +Get the source code using subversion, see [[http://cwb.sourceforge.net/download.php#svn|this page]] for instructions.
- +
-<code bash> +
-tar xf cwb-XXXXXX.tgz +
-</code>+
  
 Enter the new directory: Enter the new directory:
Line 49: Line 46:
  
 <file> <file>
-include $(TOP)/config/platform/darwin-g4+include $(TOP)/config/platform/darwin-universal
 </file> </file>
  
Line 56: Line 53:
 <file> <file>
 include $(TOP)/config/platform/linux include $(TOP)/config/platform/linux
 +</file>
 +
 +or 
 +
 +<file>
 +include $(TOP)/config/platform/linux-64
 +</file>
 +
 +or
 +
 +<file>
 +include $(TOP)/config/platform/linux-opteron
 </file> </file>
  
Line 79: Line 88:
 [...] [...]
 </file> </file>
 +
  
 ===== 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:
 </code> </code>
  
-Then we compile the corpus library:+Then compile the corpus library:
  
 <code bash> <code bash>
Line 95: Line 105:
 </code> </code>
  
-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 ''editline''
  
 <code bash> <code bash>
-cd editline 
-make clean 
-autoconf  
-./configure 
-cd .. 
 make editline make editline
 </code> </code>
  
-Then the utilities+Then ''utilities''
  
 <code bash> <code bash>
Line 112: Line 117:
 </code> </code>
  
-Finally we compile cqp:+Finally compile ''cqp'':
  
 <code bash> <code bash>
  • install/compile_linux.1219078552.txt.gz
  • Last modified: 2008/08/18 18:55
  • by 137.204.90.135