(Note: this assumes that you have XCode and the XCode command line tools installed.)
The libLBFGS source code can be found here.
$ cd ~/src
$ tar zxvf ~/Downloads/liblbfgs-1.10.tar.gz
$ cd liblbfgs-1.10
$ ./configure
$ make
$ sudo make install
The library should now be installed in /usr/local/lib
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