pspp-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Compiling on OS X


From: rfarley
Subject: Re: Compiling on OS X
Date: Thu, 16 Oct 2008 21:27:23 -0700 (PDT)

Umm yeah, I spoke too soon. If PSPPIRE blows up on you everytime you try to
actually do something with it, try this. It feels hackish and not pretty but
appears to work (I don't use PSPP and so don't really know how to test it,
I'm just compiling it for a friend). My system is Intel 10.5 with MacPorts,
so PREFIX=/opt/local, source version pspp-0.6.1-rc2.tar.gz.
This solution related to
http://osdir.com/ml/os.apple.macports.user/2007-08/msg00275.html

Error 1: 
(psppire:94174): libglade-WARNING **: Could not load support for `psppire':
dlopen(libpsppire.so, 9): image not found

Error 2:
dyld: Symbol not found: __cg_jpeg_resync_to_restart
  Referenced from:
/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/ImageIO
  Expected in: /opt/local/lib/libjpeg.62.dylib

Solution: 
# Don't blindly run this as a script. Manually replace ${PREFIX} with what
you gave ./configure (e.g. I used ./configure --prefix=/opt/local
--exec-prefix=/opt/local --with-libplot so I would replace ${PREFIX} with
/opt/local)
ln -s ${PREFIX}/lib/pspp/libpsppire.dylib ${PREFIX}/lib/pspp/libpsppire.so 
mv ${PREFIX}/bin/psppire ${PREFIX}/bin/psppire.real
cat <<EOF > ${PREFIX}/bin/psppire
#! /bin/sh

# wrapper script to set ENV and then call psppire
# path order matters! this may be repetitive, since some of these are prob
in DYLD_FALLBACK_LIBRARY_PATH
# the key ones are /System... and ${PREFIX}/lib
export
DYLD_LIBRARY_PATH="/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources:/opt/local/lib:/opt/local/lib/pspp:/usr/lib:/usr/local/lib:$DYLD_FALLBACK_LIBRARY_PATH"

/opt/local/bin/psppire.real
EOF
chmod 755 ${PREFIX}/bin/psppire
 
Now you can run ${PREFIX}/bin/psppire and it should work.

Hopefully this helps people.

Cheers,
Ryan


rfarley wrote:
> 
>  I haven't tested much of the functionality, but I'd imagine it all works
> the same.
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Compiling-on-OS-X-tp19929866p20026914.html
Sent from the Gnu - PSPP - Users mailing list archive at Nabble.com.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]