LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   gnucash on Slackware 14.1 (https://www.linuxquestions.org/questions/slackware-14/gnucash-on-slackware-14-1-a-4175483337/)

aikempshall 11-04-2013 07:43 AM

gnucash on Slackware 14.1
 
Following on from the discussion in this thread - http://www.linuxquestions.org/questi...nt-4175465882/


I have now got -

guile 2.0.9
guile 1.8.8
slib 3b2
gnucash 2.4.11

"happily" running in a Slackware 14.1 environment. Presupposes all the other pre-reqs are already installed

Show path to guile 2.0 series and version
Code:

type guile
guile is a tracked alias for /usr/bin/guile


guile -v
guile (GNU Guile) 2.0.9
Copyright (C) 2013 Free Software Foundation, Inc.

License LGPLv3+: GNU LGPL 3 or later <http://gnu.org/licenses/lgpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Now run something to prove it works!
Code:

guile -c '(use-modules (srfi srfi-19)) (display (date->string (current-date) "Printed at ~d/~m/~Y ~H:~M:~S\n")) (quit)'
Printed at 04/11/2013 11:57:41

Show version for 1.8 series
Code:

/usr/guile/1.8/bin/guile -v
Guile 1.8.8
Copyright (c) 1995, 1996, 1997, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation
Guile may be distributed under the terms of the GNU General Public Licence;
certain other uses are permitted as well.  For details, see the file
`COPYING', which is included in the Guile distribution.
There is no warranty, to the extent permitted by law.

Now run something to prove it works!
Code:

/usr/guile/1.8/bin/guile -c '(use-modules (srfi srfi-19)) (display (date->string (current-date) "Printed at ~d/~m/~Y ~H:~M:~S\n")) (quit)'
WARNING: (guile-user): imported module (srfi srfi-19) overrides core binding `current-time'
Printed at 04/11/2013 11:58:45

show gnucash version
Code:

root@victoria:/etc/gconf/gconf.xml.defaults/schemas/apps# gnucash -v
gnc.bin-Message: main: binreloc relocation support was disabled at configure time.

GnuCash 2.4.11
Built 2013-11-04 from r22264M
root@victoria:/etc/gconf/gconf.xml.defaults/schemas/apps#

How?

for guile I changed guile.SlackBuild to compile to /usr/guile/1.8 instead of /usr. Really I should have renamed the package as well i.e guile1.8 or something like.

Code:

CFLAGS="$SLKCFLAGS" \
./configure \
  --prefix=/usr/guile/1.8 \
  --libdir=/usr/guile/1.8/lib${LIBDIRSUFFIX} \
  --infodir=/usr/guile/1.8/info \
  --mandir=/usr/guile/1.8/man \
  --with-threads \
  --disable-static \
  --disable-rpath \
  --disable-error-on-warning \
  --build=$ARCH-slackware-linux


for slib I changed the doinst.sh to reflect where guile 1.8.8 is

Code:

 
1c1
< chroot . /usr/bin/guile -q -s /usr/doc/@PRGNAM@-@VERSION@/guile-slibcat.script
---
> chroot . /usr/guile/1.8/bin/guile -q -s /usr/doc/@PRGNAM@-@VERSION@/guile-slibcat.script

and set up some environment variables which I think were

Code:

export GUILE=/usr/guile/1.8/bin/guile
export GUILE_CONFIG=/usr/guile/1.8/bin/guile-config

and possibly changed the path to include export GUILE=/usr/guile/1.8/bin

For gnucash I added the following to gnucash.SlackBuild immediately before it runs configure.

Code:

export GUILE=/usr/guile/1.8/bin/guile
export GUILE_CONFIG=/usr/guile/1.8/bin/guile-config
export GUILE_INCS=-I/usr/guile/1.8/include/
export GUILE_LIBS=-L/usr/guile/1.8/lib/
export PATH=/usr/guile/1.8/bin:/usr/local/aikbin:/usr/local/sbin:/usr/sbin:/sbin:/usr/local/bin:/usr/bin:/bin:/usr/games:/usr/lib/java/bin:/usr/lib/java/jre/bin:/usr/lib/kde4/libexec:/usr/lib/qt/bin:/usr/share/texmf/bin

cd src/bin
sed -i.bak "/gnucash_LDADD = /a /usr/guile/1.8/lib/libguile.la \\\\" Makefile.am
sed -i.bak "/libgncmod-report-gnome.la/a /usr/guile/1.8/lib/libguile.la \\\\" Makefile.in

cd $TMP
cd $PRGNAM-$VERSION


The reason why I added the two sed commands to patch the Makefiles is that I couldn't resolve a linking problem for libguile.so.17 in any other way. Unfortunately I've lost the error message so I can't paste it here.

I'll need to go through this again on a clean install of 14.1 as I'm bound to have left something out.


Alex

fgcl2k 11-05-2013 02:47 AM

Thank you for this information. Since I don't use guile I could simply revert to version 1.8.8 and compile gnucash without patches.
Do you know if there are other packages depending on guile and requiring 2.0.9?

bartgymnast 11-05-2013 04:57 AM

for non slackware packages I do not know.
I do know hoever that the new gnucash will support guile2
its still in dev phase tho version 2.5.x

aikempshall 11-05-2013 06:28 AM

on current/14.1

I have these packages that have appear to have a guile element -

gnucash-2.4.11-i486-1_SBo
gnutls-3.1.14-i486-1
guile-1.8.8-i486-1
guile-2.0.9-i486-1
slib-3b2-i486-3_SBo
swig-2.0.10-i486-1

I've introduced packages gnucash, guile-1.8.8 (standalone) and slib-3b2

guile-2.0.9, gnutls and swig were included in 14.1 and still are on my machine

Alex

Lenard Spencer 02-13-2014 07:13 AM

To anybody still following this thread: Gnucash 2.6.1 is now on Slackbuilds.org for 14.1. It has nowhere near the deps the older 2.4.x needed, so it should be much easier to install.

qweasd 02-13-2014 10:24 AM

Careful, folks, if you are using it for personal finances: this game is highly addictive, and may elicit sarcasm from your spouse or significant other. :rolleyes:

TracyTiger 02-13-2014 09:56 PM

Quote:

Originally Posted by Lenard Spencer (Post 5116880)
To anybody still following this thread: Gnucash 2.6.1 is now on Slackbuilds.org for 14.1. It has nowhere near the deps the older 2.4.x needed, so it should be much easier to install.

Last year I thought I'd give GnuCash a quick tryout ... but changed my mind when I saw all of the dependencies, and went onto other activities.

Tonight I was encouraged some when I saw your post. So I went to slackbuilds.org and counted about 19 dependencies with GnuCash 2.4.11 on slackbuilds.org (Slackware 14.0) and about 13 dependencies with GnuCash 2.6.1 (Slackware 14.1). Myself, I wouldn't use the phrase "nowhere near" when comparing 13 to 19.

Yes, 2.6.1 is an improvement regarding dependencies, but I'm not yet motivated enough to deal with that many dependencies. Please post again when the number is about a half a dozen dependencies. :)

From looking at the gnucash.org website it appears that GnuCash version 2.6.1 is a production release, not a beta version. The verbiage on the slackbuild page however has beta version verbiage. I sent a note to the slackbuild maintainer regarding this.

Perhaps later this year I'll stop being lazy and be enticed enough by GnuCash to spend the few minutes it takes to install the dependencies. Thanks for bringing the new release to our attention Lenard.

@qweasd - I liked your humor regarding finances.


All times are GMT -5. The time now is 05:52 PM.