summaryrefslogtreecommitdiff
path: root/README-1ST
diff options
context:
space:
mode:
authorBradley M. Kuhn <bkuhn@ebb.org>2012-09-06 19:35:21 -0400
committerBradley M. Kuhn <bkuhn@ebb.org>2012-09-06 19:35:21 -0400
commit6fff6e993aea3b6315b0ce9e09d4d607ece99b5a (patch)
treee3fab371ad93a4c733be0e615c47c38f9830d9b9 /README-1ST
parent779378288f639ca4530901631c2ee91b67d8e286 (diff)
downloadfork-ledger-6fff6e993aea3b6315b0ce9e09d4d607ece99b5a.tar.gz
fork-ledger-6fff6e993aea3b6315b0ce9e09d4d607ece99b5a.tar.bz2
fork-ledger-6fff6e993aea3b6315b0ce9e09d4d607ece99b5a.zip
FAQ entry on how build your own Boost and/or CMake for use with Ledger.
Debian squeeze, which is currently the stable distribution at the time of this commit, has both a Boost and a CMake that is too old for Ledger. This FAQ entry explains how to build your own Boost and CMake for use with Ledger, and the exact commands to type to build and install each, and then configure, build and install Ledger against those new versions.
Diffstat (limited to 'README-1ST')
-rw-r--r--README-1ST40
1 files changed, 40 insertions, 0 deletions
diff --git a/README-1ST b/README-1ST
index 4643d655..45e9800a 100644
--- a/README-1ST
+++ b/README-1ST
@@ -114,3 +114,43 @@ it's usually fairly obvious where things have gone astray.
A: This can happen for the same reason as above. It can also happen if you
have ICU support enabled. This is a bug I'm still trying to track down.
+
+ ----------------------------------------------------------------------
+
+ - Q: My distribution has a versions of Boost and/or CMake that are too
+ old for Ledger. How do I build my own Boost and/or CMake binaries
+ that will work properly with Ledger? Thereafter, how do I configure
+ Ledger properly to use those newly built verisons of Boost and/or
+ CMake?
+
+ A: Here's commands that one user used to make this work, for Boost
+ 1.51.0 on Debian GNU/Linux 6.0.x (aka Debian squeeze). It's likely
+ to work ok for other versions of Boost as well. YMMV on other
+ distributions and/or other Debian distribution versions, though.
+
+ # Preparing and building Boost 1.51.0
+
+ $ cd /somewhere/you/want/to/build/boost
+ $ wget -N http://iweb.dl.sourceforge.net/project/boost/boost/1.51.0/boost_1_51_0.tar.bz2
+ $ tar xvf boost_1_51_0.tar.bz2
+ $ cd boost_1_51_0
+ $ ./bootstrap.sh
+ $ ./b2 --build-type=complete --layout=tagged --prefix=/where/you/want/boost/installed
+ $ ./b2 --build-type=complete --layout=tagged --prefix=/where/you/want/boost/installed install
+
+ # Preparing and building CMake 2.8.8
+
+ $ cd /somewhere/you/want/to/build/cmake
+ $ wget -N http://www.cmake.org/files/v2.8/cmake-2.8.8.tar.gz
+ $ tar xvf cmake-2.8.8.tar.gz
+ $ cd cmake-2.8.8
+ $ ./configure --prefix=/where/you/want/cmake/installed/
+ $ make
+ $ make install
+
+ # Building Ledger using the CMake and/or Boost as installed above
+
+ $ cd /path/to/ledger/sources
+ $ env PATH=/where/you/want/cmake/installed/bin:$PATH BOOST_ROOT=/where/you/want/boost/installed ./acprep --prefix=/where/you/want/ledger/installed --debug --python config
+ $ env PATH=/where/you/want/cmake/installed/bin:$PATH BOOST_ROOT=/where/you/want/boost/installed ./acprep --prefix=/where/you/want/ledger/installed --debug --python make
+ $ env PATH=/where/you/want/cmake/installed/bin:$PATH BOOST_ROOT=/where/you/want/boost/installed ./acprep --prefix=/where/you/want/ledger/installed --debug --python install