UPDATED SUCCESS: Building 1.8.1 with libofx on SuSE 8.1 with Evolution 1.2.2

Paul Harouff pharouff at comcast.net
Sun Mar 2 13:56:53 CST 2003


I just spent from 8:00 pm until 5:00 am trying to compile GnuCash with
libofx and still keep Ximian Evolution 1.2.2 working. It was a
nightmare. GnuCash and Ximian Evolution use incompatible versions of
gtkhtml which is a real pain. But I found a workaround. Evolution-beta
source includes gtkhtml-1.1.4 which will work with both Evolution and
GnuCash.

I'm writing the following from memory, so bear with me. I didn't keep
notes of my successes and failures this time and might have missed a
step.

On Sun, 2003-02-16 at 11:41, Paul Harouff wrote:
> 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. 
> 
> 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) Back up all libguile and libqthreads in /usr/lib just in case
> 
> 7) # rpm -ivh --force guile-1.6.3-1.SuSE8.1.i386.rpm
> 

8A) # cd /usr/lib
8B) # ln -s libqthreads.so.12.3.0 libqthreads.so.0
8C) # ln -s libguile.so.12.3.0 libguile.so.10
8D) # ldconfig


> 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 g-wrap-1.3.4-3.i386.rpm
> 
> 14) # export PATH=$PATH:/opt/gnome/bin:/opt/gnome/sbin
>     # export PKG_CONFIG_PATH=/opt/gnome/lib/pkgconfig
> 

15A) Go to OpenJade web site and download OpenSP-1.5. Install using spec
file that comes with it. DO NOT install openjade tar.gz, use YaST to
install the package that comes with SuSE 8.1. It's the previous release,
but it works.

15B) Use Red Carpet Daemon to download and install Ximian Evolution
1.2.2. and Evolution-devel 1.2.2. This will also install
gtkhtml1.1-ximian packages. You can safely download and install all the
other updated dependencies in the Red Carpet Evolution list. But DO NOT
install the pspell packages; they cause conflicts with other SuSE
packages. Evolution seems to run fine without them.

NOTE: I tried compiling Evolution from source, but that's an even
greater nightmare. It's easier to install from Red Carpet and break the
dependencies and fix them again.

15C) Use YaST to remove gtkhtml1.1-ximian and gtkhtml-devel-1.1.ximian.
DO NOT remove gtkhtml-1.0.2. It will scream about breaking dependencies
and prompt you to delete Evolution. Just select IGNORE.

15D) Go to http://rpmfind.net/linux/ximian/source/evolution-beta/ and
download gtkhtml-1.1.4.tar.gz and copy it to /usr/src/packages/SOURCES

15E) Go to ftp://ftp.suse.com/pub/suse/i386/8.1/suse/src/ and download
gtkhtml-1.0.2.src.rpm

15F) Use the spec file from gtkhtml-1.0.2. You need to make sure the
following lines read as shown. The lines that are commented out are
files that don't exist in 1.1.4 and will cause the rpm to fail during
make install. The share directory needs to say -1.1 or it won't be
found.

Name:         gtkhtml
Version:      1.1.4
Release:      1
# %{sysconfdir}/CORBA/servers/*
%{prefix}/share/gtkhtml-1.1
# %docdir %{prefix}/share/doc/packages/gtkhtml
# %{prefix}/%_lib/gtkhtmlConf.sh

15F) # rpm -ba gtkhtml.spec

15G) # mv /usr/src/packages/SRPMS/gtkhtml* ./
     # mv /usr/src/packages/RPMS/gtkhtml* ./

15H) # rpm -Uvh gtkhtml-1.1.4-1.i386.rpm

15I) # cp /usr/src/packages/BUILD/gtkhtml-1.1.4/gtkhtml-1.1.pc
/opt/gnome/lib/pkg-config

15J) # evolution. 

Evolution should run and you should be able to compose a message now.

16A) Go to Sourceforge and download libofx-0.6.2.tar.gz and copy to
/usr/src/packages/SOURCES

16B) # tar xzvf libofx-0.6.2.tar.gz

16C) # rpm -ba libofx-0.6.2/libofx.spec

> 17) # cp gnucash-1.8.1.tar.gz /usr/src/packages/SOURCES/
> 
> 18) # rpm  -ba gnucash-1.8.1-1.spec
> 
> 19) # mv /usr/src/packages/SRPMS/gnucash-1.8.1-1.src.rpm ./
>     # mv /usr/src/packages/RPMS/gnucash-1.8.1-1.i386.rpm ./
> 
> 20) # rpm -Uvh gnucash-1.8.1-1.i386.rpm
> 
> 21) # cp /opt/gnucash/bin/* /opt/gnome/bin
> 
> 22) # gnucash
> 

GnuCash should run and you should see OFX/QFX option in the File->Import
menu.


By the way ... Is there an easier way to extract a spec file from an
rpm? I run rpm --rebuild and type Ctrl-C when configure starts. Then
copy the spec file from /usr/src/packages/SPECS/. There's got to be a
better way.


Paul
Alexandria, VA



More information about the gnucash-user mailing list