[Scribus] Fixing my fink scribus-aqua Leopard install
Eric Watson
wasnotrice
Mon Jan 28 17:32:22 CET 2008
Hi, all.
Thanks to Martin Costabel, I was able to fix my scribus-aqua install
after upgrading to OS X Leopard. I wanted to share in case anyone else
runs into the same problems.
Before I upgraded to Leopard, I had a working install of scribus-aqua
1.3.3.9, installed using Martin's fink package. My upgrade to Leopard
broke fink, and, since I needed scribus working right away, I was
trying everything I could. Finally, I got the macports version of
1.3.3.9 working on Leopard, but it's not an aqua version, and doesn't
work nearly as well on OS X, so I really wanted that aqua version
working again.
The main problem was that the fink package wasn't compiling properly,
because it was trying to use non-fink Qt3 packages that it found on my
system. The errors were pretty cryptic, though, and it was only with
Martin's help that I was able to track down the problems. I've
included examples of the errors at the end of this message.
As an overview, I had to
1. FIX X11
2. UPDATE FINK
3. REMOVE THE MACPORTS SCRIBUS INSTALL AND QT3 LIBRARIES
4. UNINSTALL SCRIBUS-AQUA FROM FINK
5. TEMPORARILY MOVE SOME QT3 LIBRARIES FROM /Library/Frameworks/
6. REINSTALL SCRIBUS-AQUA FROM FINK
7. REPLACE QT3 FRAMEWORKS TO /Library/Frameworks/
So, in more detail:
1. FIX X11
This requires downloading and installing a new X11 package. I
installed v2.1.1, and that worked fine. It looks like v2.1.3 is the
current version. I haven't updated to that version yet. More on X11
for Leopard and links to the current X11 package at
http://trac.macosforge.org/projects/xquartz
2. UPDATE FINK
If you have upgraded to Leopard already, but haven't updated fink,
$ sudo fink selfupdate
$ sudo fink reinstall fink
More detail about upgrading fink can be found at
http://www.finkproject.org/news/
3. REMOVE THE MACPORTS SCRIBUS INSTALL AND QT3 LIBRARIES
$ sudo port uninstall scribus
$ sudo port uninstall qt3 @3.3.8_3+darwin_9
$ sudo port uninstall qt3 @3.3.8_2+darwin_9
4. UNINSTALL SCRIBUS-AQUA FROM FINK
I'm not sure all of this was necessary, but it's what worked for me.
$ sudo fink purge scribus-aqua
$ cd /sw/fink/dists/unstable/main/binary-darwin-i386/text/
$ ls
ghostscript-fonts_8.11-3_darwin-i386.deb
ghostscript_8.61-2_darwin-i386.deb
scribus-aqua_1.3.3.9-2_darwin-i386.deb
$ sudo rm *
5. TEMPORARILY MOVE SOME QT3 LIBRARIES FROM /Library/Frameworks/
I'm not sure what application installed these Qt3 libraries, or even
whether anything is still using them, but I moved them only
temporarily just to be safe.
$ mkdir /tmp/Qt
$ sudo mv /Library/Frameworks/Qt* /tmp/Qt
6. REINSTALL SCRIBUS-AQUA FROM FINK
$ sudo fink selfupdate
$ sudo fink install scribus-aqua
7. REPLACE QT3 FRAMEWORKS TO /Library/Frameworks/
$ sudo mv /tmp/Qt/* /Library/Frameworks
Fink places a link to the Scribus application at
/Library/Application/Fink/Scribus.app
Happy Scribusing!
Eric
P.S. Below are samples of errors I was receiving during this process:
. .. . ... .
fink needs help picking an alternative to satisfy a virtual
dependency. The
candidates:
(1) ghostscript: Interpreter for PostScript and PDF
(2) ghostscript-esp: Enhanced GNU Ghostscript with better CJK and
printer support
(3) ghostscript6: Interpreter for PostScript and PDF, v6.01
Pick one: [1] 1
Can't resolve dependency "system-xfree86-dev (>= 2:7.2-1)" for package
"fontconfig2-dev-2.4.1-5" (no matching packages/versions found)
Exiting with failure.
. .. . ... .
+ export PATH=/sw/lib/freetype219/bin:/sw/var/lib/fink/path-prefix-g+
+-4.0:/sw/bin:/sw/sbin:/bin:/usr/bin:/sbin:/usr/sbin:/usr/X11R6/bin
+ PATH=/sw/lib/freetype219/bin:/sw/var/lib/fink/path-prefix-g++-4.0:/
sw/bin:/sw/sbin:/bin:/usr/bin:/sbin:/usr/sbin:/usr/X11R6/bin
+ unset QMAKESPEC
+ export QTDIR=/sw/lib/qt3mac
+ QTDIR=/sw/lib/qt3mac
+ mkdir build
+ cd build
+ cmake -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON -DCMAKE_INSTALL_PREFIX:PATH=/
sw -DFREETYPE_INCLUDE_DIR_FT2BUILD:PATH=/sw/lib/freetype219/include -
DFREETYPE_LIBRARY:FILEPATH=/sw/lib/freetype219/lib/libfreetype.dylib -
DFONTCONFIG_INCLUDE_DIR:PATH=/sw/lib/fontconfig2/include -
DFONTCONFIG_LIBRARY:FILEPATH=/sw/lib/fontconfig2/lib/
libfontconfig.dylib ..
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Check size of void*
-- Check size of void* - done
-- Check for working CXX compiler: /sw/var/lib/fink/path-prefix-g+
+-4.0/c++
-- Check for working CXX compiler: /sw/var/lib/fink/path-prefix-g+
+-4.0/c++ -- works
-- Scribus 1.3.3.9 will be built to install into /sw
-- Check if the system is big endian
-- Check if the system is big endian - little endian
CMake Error: No Qt3
-- Configuring done
### execution of /var/tmp/tmp.2.wzROkY failed, exit code 255
Removing runtime build-lock...
Removing build-lock package...
/sw/bin/dpkg-lockwait -r fink-buildlock-scribus-aqua-1.3.3.9-2
(Reading database ... 7006 files and directories currently installed.)
Removing fink-buildlock-scribus-aqua-1.3.3.9-2 ...
Failed: phase compiling: scribus-aqua-1.3.3.9-2 failed
. .. . ... .
imac:~ eric$ /sw/Applications/Scribus.app/Contents/MacOS/Scribus
dyld: Symbol not found:
__ZN12QApplication14macEventFilterEP25OpaqueEventHandlerCallRefP14OpaqueEventRef
Referenced from: /sw/Applications/Scribus.app/Contents/MacOS/Scribus
Expected in: dynamic lookup
Trace/BPT trap
More information about the scribus
mailing list