Gnucash-2.0.5 Build Error

Rich Shepard rshepard at appl-ecosys.com
Mon Feb 26 17:40:31 EST 2007


On Mon, 26 Feb 2007, Derek Atkins wrote:

> So you DONT get an error if you run:   pkg-config --libs g-wrap-2-0-guile

Derek,

   I do with that name, but if I run

[rshepard at salmo ~]$ pkg-config --libs g-wrap-2.0-guile
-L/usr/local/lib -lgwrap-guile-runtime -lgwrap-core-runtime -lguile
-lguile-ltdl -lcrypt -lm -lffi

   A-ha! The .pc file did not have datarootdir=${prefix}/share. I added that
and the configure error was eliminated! Now, SLIB has disappeared so I'll go
duct tape it back in.

> Could be..  You're doing things so weirdly..

   Well, I tried staying within the lines, but the latest freerock gnome did
not have requisite libraries and the dropline installer kept segfaulting so
it did not install everything (but did leave a bit of a mess to clean up).

> And g-wrap is just so broken in so many ways,

   Too true.

> THIS is weird..  Where is datarootdir defined?   I think it's suppoed to
> be /usr/local/share but I dont see it defined anywhere here...

   See above. It wasn't defined until I manually entered it. That fixed that
problem.

   Now I'm back to SLIB not being found. Sigh.

   slib3a1 (-3.1.1) is installed in /usr/share/guile/1.6/slib/. I ran 'make
infoz' and 'make install'; the latter put slid in

[root at salmo /usr/share/guile/1.6/slib]# make install
test -d /usr/local/bin/ || mkdir /usr/local/bin/
echo '#! /bin/sh'                        > /usr/local/bin/slib
echo export SCHEME_LIBRARY_PATH=/usr/local/lib/slib/    >>
/usr/local/bin/slib
echo VERSION=3a1                        >> /usr/local/bin/slib
cat slib.sh                             >> /usr/local/bin/slib
chmod +x /usr/local/bin/slib

   Then I ran

[root at salmo /usr/share/guile/1.6/slib]# guile -c "(use-modules (ice-9 slib))
(require 'printf)"
[root at salmo /usr/share/guile/1.6/slib]# guile -c "(use-modules (g-wrap))"
ERROR: no code for module (g-wrap)

and

[root at salmo /usr/share/guile/1.6/slib]# guile -l
/usr/local/share/guile/1.6/slib/guile.init
ERROR: In procedure open-file:
ERROR: No such file or directory:
"/usr/local/share/guile/1.6/slib/guile.init"

   However, guile.init _is_ in /usr/local/share/guile/1.6/slib/.

   I don't see anything more -- and guile specific -- on the slib web page.
Is there some command I left off?

   At least the g-wrap problem is fixed. Your suggestion to run pkg-config
--libs revealed the lack of a datarootdir, and that was the cause of the
problem.

Rich

-- 
Richard B. Shepard, Ph.D.               |    The Environmental Permitting
Applied Ecosystem Services, Inc.        |          Accelerator(TM)
<http://www.appl-ecosys.com>     Voice: 503-667-4517      Fax: 503-667-8863


More information about the gnucash-user mailing list