Wednesday, October 8, 2008

Stats for Students - PSPP

An anonymous comment on my previous post about "Stats For Students" suggested I take a look at the free open-source project PSPP. This program provides all of the core functions of SPSS and has a GUI that makes it much like its commercial counter part. It seems pretty functional and useful, though to use it on a Mac, one has to build it from source (and the many prereqs and pre-prereqs and pre-pre-reqs...). Windows users have it a bit easier as there are binaries for that platform: http://pspp.awardspace.com/ For those who use Mac OS X 10.5, I created a binary distribution package: http://www.csulb.edu/~clipo/papers/pspp/ for the 0.6.1 release. This is a *new* version from what was previously posted here and now includes libraries required for the software to run. The binaries and libraries are now included in the PSPP-0.6.1.zip package. Once you download it (about 86 megs due to the mass of libraries required), run the install program. PSPP and PSPPIRE will be installed the /Applications directory (in the PSPP folder). [[UPDATE]] In a previous packaging of PSPP, I somehow failed to include the actual applications. The package has been updated http://www.csulb.edu/~clipo/papers/pspp/ so that you will now get the PSPPIRE and PSPP applications installed in /Applications/PSPP (or a place of your choice). Sorry about this messup. [[UPDATE 2]] I'm uploading a new binary right now. It's uploading sloooowly as I am at the airport on wireless. But eventually there should be a functional binary available. [[UPDATE 3]] I've created an entirely new package that fixes the many problems that others had. At least it doesn't give the errors it used to. The new version is now loaded on the website. It also does not require logout (which was my mistake for not unchecking that box in the package building). <<<>>

49 comments:

Ben Pfaff said...

Thanks so much for making some PSPP binaries for Mac OS X available. It was a frequent request until now on the PSPP users list.

Note that PSPP 0.6.1 was released a few days ago. It is a bug fix release for 0.6.0.

arokem said...

Hello - thank you for making this software available! I am itching to try it out.

I have tried installing it on a MacBook Pro, running OS 10.5.5, following the instructions you provided precisely.

I receive the following message:

dyld: Library not loaded: /usr/local/lib/pspp/libpsppwidgets.0.dylib
Referenced from: /usr/local/bin/PSPPIRE
Reason: image not found

I am hoping that you know what it means :)

When I have seen similar messages in the past, it has often mean something needed to be copied/deleted. Is that the case here as well?

Thanks in advance for taking the time to respond.

Ariel

Carl Lipo said...

Did you use the 0.6.1 version. With that one the installer should do the work for you. If not, let me know.

http://www.csulb.edu/~clipo/papers/pspp/

Carl Lipo said...

I created an uploaded a new version for 0.6.1. You can download it at: http://www.csulb.edu/~clipo/papers/pspp/

I had forgotten to add the libraries (doh!).

Let me know if this works for anyone.

arokem said...

Thanks! I did reinstall it from the new installer. However - two things now go wrong: one is that the call to PPSPIRE from the X11 command line causes the following message to be displayed:

bash: PSPPIRE: command not found

I know that's easy to fix, by setting an alias to the location of the binary in the /usr/local/bin directory.

The second problem is more essential. When I call /usr/local/bin/PPSPIRE, I get the following message:

dyld: Library not loaded: /usr/local/lib/libglade-2.0.0.dylib
Referenced from: /usr/local/bin/PSPPIRE
Reason: image not found
Trace/BPT trap


This also seems to be a library issue. Do you know what it's about?

Thanks again!



I still get a library

chrx said...

It seems PSPP wants to use a more recent libxml2. When I run PSPP I get this error

/Applications/PSPP/PSPP ; exit;
dyld: Library not loaded: /usr/local/lib/libxml2.2.dylib
Referenced from: /Applications/PSPP/PSPP
Reason: Incompatible library version: PSPP requires version 10.0.0 or later, but libxml2.2.dylib provides version 9.0.0
Trace/BPT trap
logout

[Process completed]

Cubytus said...

I have the same problem as other people with Leopard: an error message about a library, the exact same one.

When lauching PSPP from the Terminal, I get:
./PSPP
dyld: Library not loaded: /usr/local/lib/libxml2.2.dylib
Referenced from: /Applications/PSPP/./PSPP
Reason: Incompatible library version: PSPP requires version 10.0.0 or later, but libxml2.2.dylib provides version 9.0.0
Trace/BPT trap
.

The Proteasome Inhibitor said...

I receive the identical message as cited in the previous two comments:

...PSPPIRE ; exit;
dyld: Library not loaded: /usr/local/lib/libglade-2.0.0.dylib
Referenced from: /Users/Hannes/Desktop/PSPPIRE
Reason: image not found
Trace/BPT trap
logout

Is there any way to get PSPP running on 10.5???

galla said...

A big "THANK YOU!" for your work, but i recieve the same error message:

dyld: Library not loaded: /usr/local/lib/libglade-2.0.0.dylib
Referenced from: /Applications/PSPP/PSPPIRE
Reason: image not found
Trace/BPT trap
logout

Cameron Mulder said...

Same problem as everyone else.

Am i not doing something correctly?

Carl Lipo said...

Try the latest version that is posted -- It will have a date of 11/16. This one has all of the required libraries.

galla said...

hi, i dont what's wrong, but it won't work, i've got an error:

bash-3.2# psppire
dyld: Library not loaded: /usr/local/lib/libgdk-x11-2.0.0.dylib
Referenced from: /usr/local/bin/psppire
Reason: image not found
Trace/BPT trap

and if i copy this file into the requested folder, nothing changes (i've found the file in the folder of fink '/sw/...')

thanks for your work!

Carl Lipo said...

did you try the most recent version? I just put a new package on the website.

galla said...

yes, i tried the "16th nov." version, and the error is different from the to old old versions error.

liz said...

I'm having trouble locating PSPP in the first place. It's supposed to be downloaded to my /Applications? I don't see a PSPP folder, although I think that Perl has been installed. What am I doing wrong? This software would really save my life so I'm hoping for an easy solution. Thanks!!

arokem said...

Hi - I have the same problem as liz: I run the new (11/16/2008) installer, but no PSPP folder appears under my /Applications folder after installation and restart.

galla said...

type the "psppire" command into the terminal (and press return), it should try to execute the pspp GUI. And please write what happens, because for me it won't work.

arokem said...

Hi - I tried doing that. When I try calling "psppire", I get the following error:

dyld: Library not loaded: /usr/local/lib/libgdk-x11-2.0.0.dylib
Referenced from: /usr/local/bin/psppire
Reason: image not found
Trace/BPT trap


When I try calling "pspp", I get a different message:

dyld: Library not loaded: /usr/local/lib/libintl.8.dylib
Referenced from: /usr/local/bin/pspp
Reason: image not found
Trace/BPT trap

liz said...

I tried doing the same, but I keep getting the 'command not found' message. I have run the install program twice now and (I think) I can see some libraries that were installed (and Perl was installed also) but I just can't get anything to launch.

Cameron Mulder said...

I get the same error as one of the posts above

dyld: Library not loaded: /usr/local/lib/libgdk-x11-2.0.0.dylib
Referenced from: /Applications/PSPP/PSPPIRE
Reason: image not found
Trace/BPT trap
logout

Hope that helps

Chris said...

I'm also seeing an error:

dyld: Library not loaded: /usr/local/lib/libgdk-x11-2.0.0.dylib
Referenced from: /Applications/PSPP/PSPPIRE
Reason: image not found
Trace/BPT trap


So I did a little digging with find, and found that it's being installed in /usr/local/lib/lib/... so one lib's too many. :) Can I just move everything up one directory?

liz said...

Can someone help explain to my why the file is apparently not installing correctly on my hard drive? I'm not getting any 'library not loaded' messages - just command not found. What does this mean? Thanks!

arokem said...

Following the remarks left above by Chris, I repeatedly issued "psppire" to my terminal. Each time I got a library error, I simply copied over that library up one directory.

Finally, after repeating this process about 8 or 9 times, psppire did indeed launch.

This is happening just in time for a new batch of data coming in this afternoon!

Liz - try cd'ing into /usr/local/bin
and calling "./psppire". Does that work for you? Do you at least get all these library errors?

galla said...

i have done the same process as arokem and it works for me too!

arokem said...

Woops - no GLM!? Back to SPSS...

Chris said...

Let me point out that you will probably need ALL of the libraries in /usr/local/lib/lib/, if the PSPP installer did indeed create that directory. Copying a few at first might get it to launch, but you will most likely have issues using it later. Then good luck trying to clean up the mess in /usr/local/lib

I would suggest waiting for the updated installer that would put everything in the right place, or binary that would look for everything in the right place.

Chris Craft said...

The installer would not work for me. I downloaded the Nov21 version. It gave me a fail error.

See error here (flickr)

Chris Craft said...

I downloaded the Nov 20 version and it installed but then won't run from Terminal. I found it in Applications and ran both but both fail with a library won't load error.

Just FYI.

Chris

liz said...

The installer failed on me. It says "The Installer could not find the data it needed to install the software." Help!

liz said...

(My fail message with the Nov22 version is the same one that Chris Craft had with the Nov21 version.) Thanks again!

The Disorganization said...

I've just today downloaded 0.6.1 and clicked on what I got. I was surprised by the announcement: "Installing this software requires all applications be closed and the system logged out when the installation is done" -- I don't think I'd ever before seen such a demand. Anyway, I closed all obvious applications (other than Finder) but installation immediately crapped out with a complaint about the unavailability of (unspecified) libraries. This particular computer has an Intel CPU and is running 10.5.5. A lot of programs for OS X these days are either Intel or IBM-specific, there's no CPU-specificity here, is there?

liz said...

Carl, thanks so much for your work on this. I downloaded the Nov 24 version and I found the folder in my /Applications. When I clicked on PSPP OR PSPPIRE, this is the message that comes up in the Terminal window:

Last login: Mon Nov 24 20:06:23 on ttys000
/Applications/PSPP/PSPP ; exit;
liz:~ liz$ /Applications/PSPP/PSPP ; exit;
-bash: /Applications/PSPP/PSPP: Bad CPU type in executable
logout

[Process completed]


Now what?

Carl Lipo said...

Not sure what to do about the "Bad CPU type" -- I created the binaries on my macbook pro (intel core duo 2). Looking through google pages, it seems likely that the flags I used during the compiling of one or more of the libraries is an issue (making the binaries specific to this class of CPU).

What kind of machine do you have?

liz said...

I have an ibook G4 power pc...

Carl Lipo said...

I'm not sure I can do much about that problem as I do not have a PowerPC mac to build the libraries with. I can try using flags to make them universal but that may not always work - depends on the individual package. Ill see what I can do.

liz said...

Oh I see... well you have no idea how much I appreciate you trying to help me out, I am pretty excited about this software, and I understand if it won't work. Thank you so much Carl!!

Gerome said...

Hi there - I am having the same problems as everyone else with running psppire. I fixed the first error with libpsppwidgets.0.dylib but then get asked to update another library. Do you have a list of the library file calls?

/Applications/PSPP/PSPPIRE ; exit;
dyld: Library not loaded: /usr/X11/lib/libpng12.0.dylib
Referenced from: /usr/local/lib/libgtk-x11-2.0.0.dylib
Reason: Incompatible library version: libgtk-x11-2.0.0.dylib requires version 27.0.0 or later, but libpng12.0.dylib provides version 25.0.0
Trace/BPT trap
logout

[Process completed]

Best

Gerome

Cameron Mulder said...

Cool i have a different error message! :)

Thank you so much for you work on this. It would be AMAZING if i could get PSPP to work.

Last login: Fri Dec 19 02:24:48 on ttys000
cameron-mulders-macbook:~ cameronmulder$ /Applications/PSPP/PSPPIRE ; exit;
dyld: Library not loaded: /usr/local/lib/libfreetype.6.dylib
Referenced from: /Applications/PSPP/PSPPIRE
Reason: image not found
Trace/BPT trap
logout

[Process completed]

Carl Lipo said...

this should be simple - check to see if the psppicon.png and pspplogo.png files are in /usr/local/share/pspp or not... if so they should be (perhaps they are in /usr/local/share?)

Cameron Mulder said...

Looks like they are there in
/usr/local/share/pspp

should it should work right?

Brian said...

Regarding the error that includes

dyld: Library not loaded: /usr/local/lib/libfreetype.6.dylib

PSPPIRE is trying to reference
/usr/local/lib/libfreetype.6.dylib

The libfreetype.6.dylib file (at least on my system) is found in

/opt/local/lib/libfreetype.6.dylib

I do not know the best fix (cp everything over?) but perhaps someone else can weigh in on that.

Hixnei said...

I'm using OSX 10.5 and installed PSPP with the installer provided here. However, I don't know how to uninstall it. How do I uninstall PSPP on OSX 10.5?

Anonymous said...

"ln -s /usr/X11/lib/libfreetype.6.dylib /usr/local/lib/"
made pspp work for me (intel core 2 duo, mac os x 10.5)

Anonymous said...

.. i have to correct myself. app does start but i.e. t-test doesn't work, app crashes. maybe not only the libfreetype but all the X11-stuff has to be on the right place (= place where pspp expects it). maybe another package (i know, i know) with a link to /usr/X11 would do it?

Anonymous said...

hallo,

first of all thank you very much for the work done.
i have also a problem with pspp:
dyld: Library not loaded: /usr/X11/lib/libXrender.1.dylib
Referenced from: /Applications/PSPP/PSPPIRE
Reason: image not found
Trace/BPT trap
logout
[Prozess beendet]

can you help me with this?
thank you!

izahn said...

I appreciate your efforts on this. However, I haven't had much luck with this build. The macports version works fine for me.

Jeffrey said...

I need help...I don't know what to do with the error...
Last login: Sun Feb 22 22:08:15 on ttys000
Macintosh-132:~ kerry$ /Applications/PSPP/PSPPIRE ; exit;
dyld: Library not loaded: /usr/local/lib/libfreetype.6.dylib
Referenced from: /Applications/PSPP/PSPPIRE
Reason: image not found
Trace/BPT trap
logout

[Process completed]

I know others have posted the same issues, but I can't even locate /usr/local....I'm dense, I guess. Can anyone help? Pls email me at jeffrey_weir at hotmail dot com to discuss. Thank you so much!
Jeff

Daniel Reis Pereira said...

Can anyone help me? I am getting the same error:

Library not loaded: /usr/local/lib/libfreetype.6.dylib
Referenced from: /Applications/PSPP/PSPPIRE
Reason: image not found

Plz email to : drpereira (at) ufl (dot) edu

tao lao said...

yeah where's the builder? also can't work for me..