From the documentation Structure / Include (directly after the introduction):
Spirit is a header file only library. There are no libraries to link to
This indeed means you only need to indicate the location of the headers, and you're good to go.
- download the current version (via http://www.boost.org/)
- extract
- add to include path
Note that the same goes for all the requisites from Boost: Phoenix, Proto, Fusion, Mpl, Typetraits, Utility are all header-only
Finally, you can create a subset of boost that matches what you use. E.g. to 'excise' the subset for
#include <boost/spirit/include/qi.hpp>
#include <boost/spirit/include/phoenix.hpp>
on my system I could do
~/custom/boost/bin.v2/tools/bcp/gcc-4.7/release/link-static/bcp \
--boost=/home/sehe/custom/boost --scan ./test.cpp outdir/
which results in 2757 files (totalling ~1.1MiB when bzip2 compressed)