summaryrefslogtreecommitdiff
path: root/README-1ST
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2012-09-06 17:16:18 -0700
committerJohn Wiegley <johnw@newartisans.com>2012-09-06 17:16:18 -0700
commitd994c03292e351165eb97aa2781f551221d9e0f0 (patch)
treee3fab371ad93a4c733be0e615c47c38f9830d9b9 /README-1ST
parent779378288f639ca4530901631c2ee91b67d8e286 (diff)
parent6fff6e993aea3b6315b0ce9e09d4d607ece99b5a (diff)
downloadfork-ledger-d994c03292e351165eb97aa2781f551221d9e0f0.tar.gz
fork-ledger-d994c03292e351165eb97aa2781f551221d9e0f0.tar.bz2
fork-ledger-d994c03292e351165eb97aa2781f551221d9e0f0.zip
Merge pull request #78 from bkuhn/README-FAQ-on-building-own-boost-cmake
FAQ entry on how build your own Boost and/or CMake for use with Ledger.
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