How-to PDF Print E-mail Option A (the easy way). Installing libraries from distribution packages The easiest way to install the required libraries is using the package manager in your Linux distribution. * Install the packages corresponding to the required libraries (both binary and headers). The names of the packages depend on the distribution and the version. Some examples can be found in the following table (note that package names may vary from one distribution to another. Package manager offer tools to search for a package name containing a certain string, e.g. "pcre", "db4", "cfg+"): Debian/Ubuntu libpcre3 libpcre3-dev libdb4.7 libdb4.7-dev libcfg+0-dev_0.6.1_i386.deb Notes (1) Not included in this distribution, get it from http://platon.sk/projects. (IMPORTANT) Baixar libcfg+-0.6.1 de http://platon.sk/projects. Instalar normal (configure make sudo make install) * Unpack libfries and libomlet and follow installation instructions in the INSTALL file of each. Basically, for each of them you have to issue: ./configure make make install (Last commmand must be executed as root or with "sudo" in Ubuntu systems) * Unpack FreeLing, and follow installation instructions in the INSTALL file, which means issuing: ./configure make make install (Last commmand must be executed as root or with "sudo" in Ubuntu systems) Omlet&Fries are installed by default at /usr/local, and that directory may not be in the default search path of the compiler. If ./configure complains about not finding those libraries, even after you installed them, you have to specify the path where they are located: ./configure CPPFLAGS='-I/usr/local/include' LDFLAGS='-L/usr/local/lib' * Unpack and Install Freeling 2.0 ./configure CPPFLAGS='-I/usr/local/include' LDFLAGS='-L/usr/local/lib' make sudo make install IMPORTANT: export FREELINGSHARE=/usr/local/share/FreeLing/ ( Per a no tenir q fer-ho tots els dies es pot posar al .bashrc dins del home/user/) IMPORTANT: If you find "error while loading shared libraries: libmorfo.so.1: cannot open shared object file" error in Ubuntu Solve it by: export LD_LIBRARY_PATH=/usr/local/lib/ If not try to find libmorfo.so: whereis libmorfo And then substitute /usr/local/lib/ with the real location in the Solve it line. ( Per a no tenir q fer-ho tots els dies es pot posar al .bashrc dins del home/user/) EXAMPLE USE: $ analyzer -f /usr/local/share/FreeLing/config/en.cfg < my_text.txt