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