LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 05-07-2011, 10:11 AM   #1
gamewolf
Member
 
Registered: Jun 2007
Distribution: Debian Sid, Slackware 13.37
Posts: 204

Rep: Reputation: 16
ledger accounting software doesn't work on Slack


I really like the way the ledger CLI accounting software works, but I cannot seem to get it to function correctly.

I set my LEDGER_FILE environment variable to my text file. Whenever I use ledger the output is always formatted incorrectly.

Heres an example:

I can do ledger bal

results (replace $MONEY with actual numbers):

$MONEY ESC[34mAssets:CheckingESC[0m
ESC[31m$-MONEYESC[0m ESC[34mEquity:Opening BalanceESC[0m

That is the result I get. I am not sure whats wrong.

There is also no man page for ledger or any kind of help with the -h flag.

Thanks.
 
Click here to see the post LQ members have rated as the most helpful post in this thread.
Old 05-07-2011, 10:37 AM   #2
gamewolf
Member
 
Registered: Jun 2007
Distribution: Debian Sid, Slackware 13.37
Posts: 204

Original Poster
Rep: Reputation: 16
Ok so I found an RPM for ledger online, converted it to tgz, installed, and it now works fine.

But that begs the question why building the source didn't work?
 
Old 05-07-2011, 01:16 PM   #3
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
How did you build it from source ? What CFLAGS ?
 
Old 05-07-2011, 02:48 PM   #4
gamewolf
Member
 
Registered: Jun 2007
Distribution: Debian Sid, Slackware 13.37
Posts: 204

Original Poster
Rep: Reputation: 16
I used the included acprep script file that did it all for me.
 
0 members found this post helpful.
Old 12-08-2011, 01:06 PM   #5
Jins
LQ Newbie
 
Registered: Jan 2008
Location: Latvia, Riga
Distribution: Slackware current
Posts: 16

Rep: Reputation: 0
Question acprep

Quote:
Originally Posted by gamewolf View Post
I used the included acprep script file that did it all for me.
Ok I Using slackware-current. And git ledger, use this same script, but didn't work for Me that same result. Anny ideas?

Last edited by Jins; 12-08-2011 at 01:08 PM.
 
Old 12-11-2011, 11:21 AM   #6
psionl0
Member
 
Registered: Jan 2011
Distribution: slackware_64 14.1
Posts: 722
Blog Entries: 2

Rep: Reputation: 124Reputation: 124
Did you use ledger.tar.gz from slackbuilds to build your ledger program?
 
Old 12-12-2011, 07:40 PM   #7
lstamm
Member
 
Registered: Aug 2007
Location: McBride, BC, Canada
Distribution: Slackware, OpenBSD, Edubuntu
Posts: 53

Rep: Reputation: 18
If you obtained the ledger sources using git, then you got the sources for the 3.0 in-progress version, not yet released as stable. Most RPMs and other packaged releases of ledger are for the 2.6.x versions, which is the current stable release.

By default, the new 3.0 version outputs its reports to a pager with the output colourized with the ANSI colour codes. Those wierd "ESC[34m", etc, groups are the ANSI colour codes being output through the pager less, which by default doesn't colourize its output.

You can get around this by putting "--pager=most" or "--pager=none" at the end of your ledger command, or you can put the pager options in your .ledgerrc file. Or, if you don't want colour output, put "--no-color" at the end of your command or in .ledgerrc.
 
2 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
FOSS accounting software that doesn't need most of Gnome? catkin Linux - Software 21 12-06-2009 05:54 AM
ALSA doesn't work after upgrade to Slack 11.0 TheMusicGuy Slackware 9 12-18-2006 05:14 PM
LXer: Ledger, the bran muffin of accounting tools LXer Syndicated Linux News 0 11-10-2006 11:54 PM
Keyboard doesn´t work after Slack instalation erickFis Linux - Hardware 3 05-19-2006 04:28 PM
iptables start doesn't work in slack 9 phishintrip Linux - Newbie 4 06-25-2003 01:15 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 12:29 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration