Compiling Link Grammar 4.4.0 DLL with MS Visual Studio Express 2008

December 24th, 2008

This article describes how to compile Link Grammar 4.4.0 DLL with MS Visual Studio 2008 Express. Download link-grammar-4.4.0.tar.gz archive from AbiWord project server. Apart from everything else, the archive contains the following folders:

link-grammar-4.4.0
    \link-grammar
    \msvc9

Extract link-grammar-4.4.0\link-grammar folder with all subfolders and files to <MS Visual Studio Folder>\VC\include folder, where <MS Visual Studio Folder> is the folder in which MS Visual Studio 2008 Express is installed (usually, it is %ProgramFiles%\Microsoft Visual Studio 9.0). Find link-features.h.in file in <MS Visual Studio Folder>\VC\include folder, rename the file to link-features.malloc1h.

Further, extract link-grammar-4.4.0\link-grammar and link-grammar-4.4.0\msvc9 folders with all subfolders and files to a convenient folder. Find link-features.h.in file in link-grammar folder, rename the file to link-features.h. Then, find LinkGrammar.sln file in msvc9 folder, open the file with MS Visual Studio 2008 Express. Using Solution Explorer, remove malloc-dbg.c from the file list (see the picture at the left). Everything is ready now, try to build the project with “Release” solution configuration. After building finished, find link-grammar.dll file in msvc9\Release folder.

P.S. Please take into account that English is not my native language. Probably, the text contains language errors. Sorry if so. Also, please note that some links may be obsolete at the moment.

Installing Link Grammar 4.3.9 on Linux Ubuntu 8.10

December 24th, 2008

The article contains a short description how to install Link Grammar 4.3.9 on Ubuntu 8.10. The installation process is quite simple. Open a terminal, go to a convenient folder, and download link-grammar-4.3.9.tar.gz archive from AbiWord project server:

wget http://www.abisource.com/downloads/link-grammar/4.3.9/link-grammar-4.3.9.tar.gz

Unpack the archive:

tar -zxf link-grammar-4.3.9.tar.gz

Go to link-grammar-4.3.9 folder. Install Link Grammar:

sudo ./configure
sudo make
sudo make check
sudo make install

The installation may take a minute. Just wait. After installation finished, try to start Link Grammar:

link-parser

If you see “link-parser: error while loading shared libraries: liblink-grammar.so.4: cannot open shared object file: No such file or directory” message, create a symbolic link for liblink-grammar.so.4 in /usr/lib:

sudo ln -s /usr/local/lib/liblink-grammar.so.4 /usr/lib/liblink-grammar.so.4

Link Grammar should work now. Probably, the same installation steps will be matched for the next versions of Link Grammar. I’ve tried 4.3.9 only.

P.S. Please take into account that English is not my native language. Probably, the text contains language errors. Sorry if so. Also, please note that some links may be obsolete at the moment.