summaryrefslogtreecommitdiff
path: root/README-1ST
blob: 0b8318280d62fc7997eee90c6d48c900297b44ce (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82

                                 README FIRST!!!

===============================================================================

To build this code after doing a Git clone, run:

    $ ./acprep update

If you try to configure/build on your own, you are almost certainly going to
run into problems.  In future, you can run this command again and it will keep
you updated with the very latest version.

===============================================================================

                                    F.A.Q.

   ----------------------------------------------------------------------

 - Q: The build fails saying it can't find utf8.h

   A: You didn't run ./acprep update.

   ----------------------------------------------------------------------

 - Q: Configure fails saying it can't find boost_regex

   A: Look in config.log and search for "boost_regex", then scroll down a bit
      until you see the exact compile error.  Usually it's failing because
      your include directory is different from anything acprep is expecting to
      see.  It could also be failing because your Boost libraries have a
      custom "suffix" on them.

      Let's say your Boost was installed in ~/boost, and every library has the
      suffix '-xgcc42'.  This is what you would run:

        CPPFLAGS=-I$HOME/boost acprep --boost=xgcc42 update

   ----------------------------------------------------------------------

 - Q: Configure fails saying it can't find MPFR

   A: You need MPFR version 2.4.0 or higher.  This version does not come with
      most Debian distributions, so you will need to build it.

   ----------------------------------------------------------------------

 - Q: Something else fails, or Ledger crashes on startup

   A: This, I am most interested in hearing about.  Please e-mail me a copy of
      config.log and your build log to <johnw@newartisans.com>.  Also, if
      Ledger is crashing, try running it under gdb like so:

        $ gdb ledger
        (gdb) run <ARGS TO LEDGER>
        ... runs till crash ...
        (gdb) bt

      Send me that backtrace output, and the output from "ledger --version".

   ----------------------------------------------------------------------

 - Q: Whenever I try to use the Python support, I get a segfault

   A: Make sure that the boost_python library you linked against is using the
      exact same Python as the Ledger executable.  In particular I see this
      bug on OS X systems where boost_python is linked against the default
      Python, while Ledger is linked against the version provided by MacPorts.

      Solution: Use one or the other.  If you prefer the system Python, run
      "port deactivate -f python26", to get MacPorts' version out of the way.
      You'll then need to delete the Ledger binary and run "make" to relink
      it.

   ----------------------------------------------------------------------

 - Q: When I run "make check", the Python unit tests always crash

   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.

   ----------------------------------------------------------------------