Installing LBFGS on OSX
This was written to help me remember how to install the libLBFGS for use with the SRI LM Toolkit on Mac OSX 10.8.2 (Mountain Lion).
Installing libLBFGS on Mac OSX 10.8.2
(Note: this assumes that you have XCode and the XCode command line tools installed.)
Download
The libLBFGS source code can be found here.
Unpack
cd ~/src
tar zxvf ~/Downloads/liblbfgs-1.10.tar.gz
cd liblbfgs-1.10
Build
./configure
make
sudo make install
The library should now be installed in /usr/local/lib
Using LBFGS with SRI LM Toolkit
If you are installing LBFGS to use with the SRI LM Toolkit, then you should add the following line to common/Makefile.site.macosx (located in the top-level srilm dir) prior to compiling the SRI LM Toolkit:
HAVE_LIBLBFGS=1