PDA

View Full Version : OS X install - postflight script can't be read


cip22
10-12-2004, 02:37 AM
Trying to install Laszlo on a Mac OS X machine (10.3), the installer refuses to work and returns an error: postflight script can't be read or executed.
I looked at the script an can't find anything suspicious. Anyone else experiencing this?

best regards,
Christoph

cip22
10-12-2004, 03:45 AM
ok, I did the manual install, and everything works fine so far. As long as I'm the only one with the ominous postflight script error, we probably shouldn't care.

bloch
10-12-2004, 07:55 AM
I think there was another report of postflight issues. Could you describe the probs in a bit more detail?

Much thanks,
Eric

cip22
10-13-2004, 03:09 AM
The problem is: double-clicking the lps-2.2-macosx.pkg, the installer program comes up, and after a few seconds a warning appears saying "Das Installationspaket lps-2.2-macosx kann nicht geöffnet werden. Das Postflight-Script konnte nicht gestartet oder gelesen werden." [Installer package lps-2.2-macosx can not be opened. The postflight-script could not be started or read.]
After clicking ok on this warning, the installation program only shows a close button (where the continue button is supposed to be).

That's it.
As I said, the script seems to be ok as far as I can tell. Changing the shell type doesn't help either. The only line that sounds odd to me says simply "OSA", but I'm not familiar with the way an OSA script is terminated inside a shell script.

yossie
10-13-2004, 10:30 AM
Would it be possible for you to email me the installer you are attempting to use? I would like to look at the contents to ensure that you don't have a corrupt installer.. THANKS.

ean
10-16-2004, 03:08 PM
I get the same error. I've downloaded the Mac OS X binary installer twice--thinking perhaps it was somehow corrupted--but got the same result each time. Attached is a screen capture of the error dialog. Should I really email you a 100 MB plus installer? Try downloading it just as we did.

Thanks, Ean

jhelms
10-16-2004, 03:15 PM
I get this error too on both the package I downloaded from the Laszlo site and Apples site.

Is there a fix for this yet?

bloch
10-16-2004, 08:13 PM
I wonder if this is a file permissions issue.

-Eric

ptw
10-17-2004, 04:29 AM
In your OS X System Preferences/Accounts are you an Admin or Standard User?

What are the ownership and permissions details of the installer package? (Either get those using Get Info on the package, or more helpful, if you know how to do it, use the Terminal and 'ls -l' as follows:

[ptw@chautauqua Desktop 08:19:30]$ ls -l
total 228880
drwxr-xr-x 3 mch staff 102 4 Oct 21:43 lps-2.2-macosx.pkg
-rw-r--r-- 1 mch staff 117182648 5 Oct 03:07 lps-2.2-macosx.pkg.sit
[ptw@chautauqua Desktop 08:19:32]$ ls -l lps-2.2-macosx.pkg
total 0
drwxr-xr-x 7 mch staff 238 4 Oct 21:45 Contents
[ptw@chautauqua Desktop 08:19:42]$ ls -l lps-2.2-macosx.pkg/Contents/
total 229760
-rwxr-xr-x 1 mch staff 661317 4 Oct 21:46 Archive.bom
-rwxr-xr-x 1 mch staff 116963825 4 Oct 21:45 Archive.pax.gz
-rwxr-xr-x 1 mch staff 1330 4 Oct 21:43 Info.plist
-rwxr-xr-x 1 mch staff 8 4 Oct 21:43 PkgInfo
drwxr-xr-x 7 mch staff 238 4 Oct 21:43 Resources
[ptw@chautauqua Desktop 08:19:53]$ ls -l lps-2.2-macosx.pkg/Contents/Resources/
total 96
-rwxr-xr-x 1 mch staff 478 4 Oct 21:43 Description.plist
-rwxr-xr-x 1 mch staff 20844 4 Oct 21:43 License.rtf
-rwxr-xr-x 1 mch staff 129 4 Oct 21:43 Welcome.html
-rwxr-xr-x 1 mch staff 10694 4 Oct 21:43 background.jpg
-rwxr-xr-x 1 mch staff 989 4 Oct 21:43 postflight

jhelms
10-17-2004, 06:00 AM
The package itself was Ok but nothing inside /Contents or /Contents/Resources had execute permissions. Once I did chmod to add execute permissions, the package installed Ok.

Thanks for your help.

ptw
10-17-2004, 06:20 AM
Mysterious. I don't think everything needs execute permissions, perhaps just the postflight script. I wonder why we are seeing different permissions? I downloaded and installed from a non-admin user (which is why you see a different user in my ls output).

What version of StuffIt are you using?

ean
10-17-2004, 06:42 AM
Thanks so much. I simply chmod 755'd the entire package contents and it installed just fine.

Now, to see if I can get Tomcat working...

Honestly, some of this is a little over my head but the LPS coding is soooo easy and soooo cool.

Thanks again,

Ean

bloch
10-17-2004, 06:55 AM
I wonder if this is umask in action.

ptw
10-17-2004, 07:19 AM
Possibly. I think we need to know whether the people having problems have Admin accounts or Standard accounts (i.e., whether they have to authenticate [sudo] to install). Also, it is bizarre that the package I unpacked had execute permissions on _everything_ not just the postflight script.

jhelms
10-17-2004, 07:29 AM
I have an Admin account and the only user on this computer.

yossie
10-17-2004, 09:16 AM
I verified that the installer archive that is stored on the live site is in fact good - I downloaded and installed it fine. However, I think I might know what is wrong.

I can't recall exactly what version, but there was a Stuffit (Expander) release that had issues with execute bits in archives - as in they were being ignored when unstuffing. Could the people who are getting this error please report their version of Stuffit Expander and then consider upgrading to the latest release available? Thanks!

- Yossie

P.s. See http://macintouch.com/stuffit8.html (which implies that the version that had issues is 8.0 - which sounds about right to me - needed to upgrade to 8.0.1 or something like that).