Error installing gnucash2.2.8 on Mac OS X 10.5.6 (Intel)
David Reiser
dbreiser at earthlink.net
Sun Dec 21 18:46:35 EST 2008
On Dec 21, 2008, at 4:18 PM, Benjamin So wrote:
> Hi,
>
> I just moved to one of the new MacBooks and spent the afternoon trying
> to get Gnucash working on this machine. After lots of downloading and
> compiling, I eventually get to the following error:
>
> Reading Package Lists...
> Building Dependency Tree...
> Failed: phase installing: fontconfig2-dev-2.4.1-104 failed
>
> Before reporting any errors, please run "fink selfupdate" and
> try again. If you continue to have issues, please check to see if the
> FAQ on fink's website solves the problem.
>
> I tried the tip on running selfupdate, but after running the install
> again, I ran into the same error. I'm not really sure what this
> indicates, so any tips would be a great help. If it's any use, I've
> posted a bigger chunk of the output from the install below.
>
> Thanks in advance.
>
> Ben
>
>
>
> #!/bin/sh -ev
>
> FC_ROOT="/sw/src/fink.build/root-fontconfig2-dev-2.4.1-104/sw/lib/
> fontconfig2"
> FC_LIB="/sw/lib/fontconfig2/lib"
> FT_LIB="/sw/lib/freetype219/lib"
> X11_ROOT="/usr/X11"
>
> declare -a bad_files
>
> bad_file() {
> bad_files[${#bad_files[*]}]="$1"
> }
>
> install -d -m 755 $FC_ROOT/{bin,include,lib,lib/pkgconfig}
>
> for file in \
> fcfreetype.h \
> fcprivate.h \
> fontconfig.h \
> ; do
> [ -e "$X11_ROOT/include/fontconfig/$file" ] || bad_file "$X11_ROOT/
> include/fontconfig/$file"
> done
>
> for file in \
> include/fontconfig \
> lib/libfontconfig.1.dylib \
> lib/libfontconfig.dylib \
> bin/fc-cache \
> bin/fc-cat \
> bin/fc-list \
> bin/fc-match \
> ; do
> [ -e "$X11_ROOT/$file" ] || bad_file "$X11_ROOT/$file"
> /bin/ln -sfh "$X11_ROOT/$file" "$FC_ROOT/$file"
> done
>
> # Use fink's freetype219 and expat1
> sed -e "s|-L$X11_ROOT/lib||g" \
> -e "s|$X11_ROOT/lib/libfreetype.la|-L$FT_LIB $FT_LIB/
> libfreetype.la|" \
> -e "s|/usr/lib/libexpat.la|-L/sw/lib /sw/lib/libexpat.la|" \
> -e "s|libdir=$X11_ROOT/lib|libdir=$FC_LIB|" \
> "$X11_ROOT/lib/libfontconfig.la" > "$FC_ROOT/lib/
> libfontconfig.fink.la"
> sed: /usr/X11/lib/libfontconfig.la: No such file or directory
Above is the interesting bit. You have one of the Apple induced X11
problems. These days, I think the best way to deal with it is to
install the macosforge xquartz package. Eventually Apple will
distribute a newer version of X11, but they've been screwing up their
own packaging of it lately. The biggest downside is that any time you
upgrade either OS X or XCode, you will have to reinstall xquartz
(Apple's updaters will dutifully downgrade your x11, and you will have
some kind of problem, though probably not the same one you see here.)
OS X 10.6 is likely to cause more pain in the X11/fink community, too.
http://xquartz.macosforge.org/trac/wiki
Since this problem came from fontconfig and not gnucash, you would
get more knowledgeable help from fink-beginners or fink-users lists. I
can solve some of the problems, but the folks there are quite helpful
and know many more of fink's intricacies than I do.
Dave
More information about the gnucash-user
mailing list