Problems with Gnucash development environment on Ubuntu 10.04 -- Solved

Valdis Vītoliņš valdis.vitolins at odo.lv
Wed May 12 15:46:43 EDT 2010


Done with Gnucash revision 19152.
which still doesn't run using guile 1.6

But, as Tao noted, Ubuntu 10.04 doesn't have guile-1.8-slib package
similarly to guile-1.6-slib.
Fortunately this package doesn't have anything exceptional:
As root
root at studio:/# apt-file list guile-1.6-slib
guile-1.6-slib: /usr/share/doc/guile-1.6-slib/changelog.Debian.gz
guile-1.6-slib: /usr/share/doc/guile-1.6-slib/copyright
guile-1.6-slib: /usr/share/guile/1.6/slib
So only valuable file is symlink /usr/share/guile/1.6/slib->../../slib.

So, we can try to migrate to 1.8 ant patch missing symlink.
Check for installed packages:
dpkg-query -W|grep guile
and remove them:
apt-get remove --purge guile-1.6 guile-1.6-dev guile-1.6-libs
guile-1.6-slib guile-1.8-libs libguile-ltdl-1

Add guile 1.8 packages
apt-get install --reinstall guile-1.8 guile-1.8-dev guile-1.8-libs
(of course accept, if it says that need to install more)

Create missing symlink:
cd /usr/share/guile/1.8
ln -s ../../slib slib

And say "focus-pocus":
guile -c "(use-modules (ice-9 slib)) (require 'new-catalog)"

(John, can you explain in plain English what that means?)

Then fully rebuild Gnucash
As user:
make clean
./autogen.sh
./configure --enable-debug --prefix=/opt/gnucash-svn
make
sudo make install

/opt/gnucash-svn/bin/gnucash

And it works!!
(Was checked on two computers, so should be more or less reproducible).

Valdis


> On May 12, 2010, at 6:00 AM, Tao Wang wrote:
> 
> > Hi,
> > 
> > I got exactly same problem when building GnuCash from trunk in Ubuntu
> > 10.04. I confirmed /usr/share/guile/1.6/slib is a softlink to
> > /usr/share/slib. But I cannot find slib for 1.8 in Ubuntu. And I think
> > the build script is using 1.6 instead of 1.8, because I got following
> > lines during running ./configure:
> 
> Slib is pure scheme, so there's no compiling involved. You can just create the link in /usr/share/guile/1.8 and run the following:
> guile -c "(use-modules (ice-9 slib)) (require 'new-catalog)"
> 
> That assumes, of course, that guile 1.8 is the first guile on the path... which is the one that gnucash would use as well.
> 
> Regards,
> John Ralls
> _______________________________________________
> gnucash-devel mailing list
> gnucash-devel at gnucash.org
> https://lists.gnucash.org/mailman/listinfo/gnucash-devel




More information about the gnucash-devel mailing list