SOLUTION: Building 1.8.1 on SuSE 8.1

Paul Harouff pharouff at comcast.net
Sun Feb 16 11:41:01 CST 2003


On Sat, 2003-02-15 at 22:52, Derek Atkins wrote:
> Sorry, I've no clue what to tell you.  Are you sure you have
> guile-devel installed (or whatever SuSE calls it)?
> 
> -derek

That's probably the problem. SuSE 8.1 does not have guile-devel, or at
least I have never been able to find it anywhere.

I don't know if everything I did below is kosher. But, I finally got
gnucash 1.8.1 working ...

1) I downloaded guile-1.6.3

2) I took the guile.spec from SuSE's guile-1.4.1-48 package. Changed all
version references from 1.4.1 to 1.6.3 throughout the whole file.
Changed 48 to 1.SuSE8.1. And deleted all the references to patches since
I assume they all only applied to 1.6.5.

NOTE: For this installation all my spec files and sources are kept in
/usr/local/packages/GnuCash/1.8.1 which is the ./ in all commands below.
This helps me keep track of which dependencies I have installed until
everything works.

NOTE: The g-wrap and gnucash spec files I used came from Leif Jensen.
Thanks! I couldn't have done this without your help. -- Just one
suggestion: If you move %build to after the configure then you can
--short-circuit the configure after making corrections to the Makefile
files. In the directions below I change the Makefile.in files in g-wrap
before running the rpm so this doesn't matter.

3) # cp guile-1.6.3.tar.gz /usr/src/packages/SOURCES/

4) # rpm -ba guile.spec

5) # mv /usr/src/packages/SRPMS/guile-1.6.3-1.SuSE8.1.src.rpm ./
   # mv /usr/src/packages/RPMS/guile-1.6.3-1.SuSE8.1.i386.rpm ./

6) Backed up all libguile and libqthreads in /usr/lib

7) # rpm -ivh --force guile-1.6.3-1.SuSE8.1.i386.rpm

8) Moved all missing libguile.so.10* and libqthreads.so* back to
/usr/lib (gnucash won't build without the libqthreads.so* files)

NOTE: The README file says guile should be in separate version
directories. The SuSE spec files don't do this and I don't know the
proper way to rewrite the spec files to fix this. And since everything's
working now I don't want to screw it up.

9) # ln -s /usr/share/slib /usr/share/guile/slib

NOTE: To get g-wrap to build, you have to `tar xzvf' and delete the
three instances of -Werror in the g-wrap/ and test/ Makefile.in files.
Then `tar czf' the source back again before moving it to
/usr/src/packages/SOURCES

10) # cp g-wrap-1.3.4.tar.gz /usr/src/packages/SOURCES/

11) # rpm  -ba g-wrap-1.3.4-3.spec 

12) # mv /usr/src/packages/SRPMS/g-wrap-1.3.4-3.src.rpm ./
    # mv /usr/src/packages/RPMS/g-wrap-1.3.4-3.i386.rpm ./

13) # rpm -Uvh --force g-wrap-1.3.4-3.i386.rpm

NOTE: I know ... using --force is bad. I had previously installed
g-wrap-1.3.4-3 under guile-1.4.1 so I had to use rpm --force to
overwrite itself

14) # export PATH=$PATH:/opt/gnome/bin:/opt/gnome/sbin
    # export PKG_CONFIG_PATH=/opt/gnome/lib/pkgconfig

15) # cp gnucash-1.8.1.tar.gz /usr/src/packages/SOURCES/

16) # rpm  -ba gnucash-1.8.1-1.spec

17) # mv /usr/src/packages/SRPMS/gnucash-1.8.1-1.src.rpm ./
    # mv /usr/src/packages/RPMS/gnucash-1.8.1-1.i386.rpm ./

18) # rpm -Uvh gnucash-1.8.1-1.i386.rpm

19) # cp /opt/gnucash/bin/* /opt/gnome/bin

20) # gnucash

It works!


Paul
Alexandria, VA



More information about the gnucash-user mailing list