How to install Freeling on Mac OS X El Capitan 10.11.5

Submitted by AlvaroMarin6 on Fri, 06/03/2016 - 10:38

I have followed these instructions:

Installing on MacOS is very similar to installing on Linux. The main difference is how to install the dependencies and required development tools, which is greatly eased by MacPorts.
• Install XCode.
◦ Download and install XCode from Apple AppStore
◦ Configure it with sudo xcodebuild -license
◦ sudo xcode-select --install
• Install MacPorts
◦ Download and install MacPorts from []
◦ Update and configure:
◦ sudo port -v selfupdate
• Use MacPorts to install required developer tools:
sudo port install automake
sudo port install autoconf
sudo port install libtool
sudo port install git
• Use MacPorts to install required dependencies:
sudo port install boost
This will install also libicu and zlib. If configure complains about it not being there, you can install it with sudo port install lib.

The problem is that I don't know how to carry on:

•Compile and install FreeLing using the procedures described above (either install from source or install from GitHub), but skipping the steps about installing development tools and dependencies.
Important: libraries in MacOS are installed in /opt/local instead of /usr/local. So, when running configure, you need to specify the right library paths.

In summary, you need to run ./configure with the command:
./configure CPPFLAGS="-I/opt/local/include" LDFLAGS="-L/opt/local/lib"
You can add to this command any extra options you wish (-enable-traces, -prefix, etc). Use ./configure -help to find out available options.