Problem installing - amount.cc fails

0 views
Skip to first unread message

dastagg

unread,
Nov 21, 2009, 7:50:30 PM11/21/09
to Ledger
Running ./acprep update, I get the following error message:

make[2]: Entering directory `/home/dastagg/ledger'
CXX libledger_math_la-amount.lo
src/amount.cc: In member function ‘bool ledger::amount_t::parse
(std::istream&, const ledger::parse_flags_t&)’:
src/amount.cc:1001: error: expected primary-expression before ‘const’
src/amount.cc:1001: error: ‘BOOST_REVERSE_FOREACH’ was not declared in
this scope
src/amount.cc:1001: error: expected `;' before ‘{’ token
src/amount.cc:1276: error: expected `}' at end of input
src/amount.cc: At global scope:
src/amount.cc:1276: error: expected `}' at end of input
make[2]: *** [libledger_math_la-amount.lo] Error 1
make[2]: Leaving directory `/home/dastagg/ledger'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/dastagg/ledger'
make: *** [all] Error 2
acprep: ERROR: Execution failed: make


John Wiegley

unread,
Nov 23, 2009, 3:20:19 PM11/23/09
to ledge...@googlegroups.com
What version of Boost are you using?

John

dastagg

unread,
Nov 23, 2009, 4:45:13 PM11/23/09
to Ledger
In Debian 5.0: libboost1.35
In CrunchBang 9.04: libboost1.35 also.
When I had the problem in CB, I tried in Debian but got the exact same
message in both.

Saw the note about the 1.40 version for Ubuntu 9.10 but that isn't
available in the repositories yet.

dastagg

unread,
Nov 24, 2009, 2:43:19 PM11/24/09
to Ledger
I just tried sudo ./acprep dependencies and received this error:
E: Couldn't find package libboost-filesystem1.35-devlibedit-dev

So, then I did sudo apt-get update and re-ran ./acprep dependencies
and I still see the same "E: cant find".

1) Is this the package where that constant is defined?
2) If so, what do I do now?

David

dastagg

unread,
Nov 24, 2009, 3:14:09 PM11/24/09
to Ledger
Okay, THAT's not the problem. The problem with the Error message below
is that
there is a comma missing in acprep right after .35-dev to separate .35-
dev from libedit-dev.

I added the comma and ./acprep dependencies runs fine.

(It looks like a comma is missing in the Karmic section also.)

John Wiegley

unread,
Nov 24, 2009, 10:09:10 PM11/24/09
to ledge...@googlegroups.com
On Nov 24, 2009, at 3:14 PM, dastagg wrote:

> Okay, THAT's not the problem. The problem with the Error message below
> is that
> there is a comma missing in acprep right after .35-dev to separate .35-
> dev from libedit-dev.
>
> I added the comma and ./acprep dependencies runs fine.

Fix has been applied, running full tests now.

John

dastagg

unread,
Nov 27, 2009, 1:01:34 PM11/27/09
to Ledger
Just to keep you up to date: I am still getting the exact same error
message re:account.cc so the install is still failing.

I rm'd the ledger directory, ran git clone git://github.com/jwiegley/ledger.git,
cd'd into ledger and ran ./acprep update.

Not sure where to go from here.
Are there log files or other information that I could send to you?
Maybe you might be able to look at them and you will see something
obvious?

David

John Wiegley

unread,
Nov 28, 2009, 1:14:56 AM11/28/09
to ledge...@googlegroups.com
On Nov 27, 2009, at 1:01 PM, dastagg wrote:

> Just to keep you up to date: I am still getting the exact same error
> message re:account.cc so the install is still failing.

Please send me the output from "acprep --debug update", and also the contents of your config.log and Makefile, both in your build directory.

Thanks, John

John Wiegley

unread,
Dec 1, 2009, 3:00:21 AM12/1/09
to ledge...@googlegroups.com
On Nov 27, 2009, at 1:01 PM, dastagg wrote:

> Are there log files or other information that I could send to you?
> Maybe you might be able to look at them and you will see something
> obvious?

Not sure if I responded to this yet, but can you run "acprep --debug update", and send me:

1. the output from that command
2. the config.log file in your build directory
3. the Makefile in your build directory

Thanks, John
Reply all
Reply to author
Forward
0 new messages