"The following install step failed: run postflight script for MacPorts-1.6.0."
Hi there, I wanted to install MacPorts on my Mac - MacPro with Leopard, latest version. But, while using the disk image, the installation finished with this message: "The following install step failed: run postflight script for MacPorts-1.6.0." Can anyone let me know what I should do? Thanks for any hints! Stef ____________________________________________________________________ Stefan Schwarzer Lean Back and Relax - Enjoy some Nature Photography http://photoblog.la-famille-schwarzer.de Appetite for Global Data? UNEP GEO Data Portal: http://geodata.grid.unep.ch ____________________________________________________________________
On Jan 8, 2008, at 09:51, Stefan Schwarzer wrote:
I wanted to install MacPorts on my Mac - MacPro with Leopard, latest version. But, while using the disk image, the installation finished with this message: "The following install step failed: run postflight script for MacPorts-1.6.0."
Can anyone let me know what I should do?
I'm not sure... Were you using the correct disk image? the one whose name is MacPorts-1.6.0-10.5-Leopard.dmg? If so, can you just try installing it again, see if it works now?
I wanted to install MacPorts on my Mac - MacPro with Leopard, latest version. But, while using the disk image, the installation finished with this message: "The following install step failed: run postflight script for MacPorts-1.6.0."
Can anyone let me know what I should do?
I'm not sure...
Were you using the correct disk image? the one whose name is MacPorts-1.6.0-10.5-Leopard.dmg?
If so, can you just try installing it again, see if it works now?
Yep, was the right disk image. Downloaded it again and installed it. But same message....
On Jan 9, 2008, at 1:13 AM, Stefan Schwarzer wrote:
I wanted to install MacPorts on my Mac - MacPro with Leopard, latest version. But, while using the disk image, the installation finished with this message: "The following install step failed: run postflight script for MacPorts-1.6.0."
Can anyone let me know what I should do?
I'm not sure...
Were you using the correct disk image? the one whose name is MacPorts-1.6.0-10.5-Leopard.dmg?
If so, can you just try installing it again, see if it works now?
Yep, was the right disk image. Downloaded it again and installed it. But same message....
I wrote the postflight script so I should chime in. Can you please try grepping through /var/log/install* files to see if there are any relevant messages there about the failure? On a similar note, are you experiencing any problems with your MacPorts usage? Was your terminal environment set up correctly by the installer? Regards,.... -jmpp
I wanted to install MacPorts on my Mac - MacPro with Leopard, latest version. But, while using the disk image, the installation finished with this message: "The following install step failed: run postflight script for MacPorts-1.6.0."
Can anyone let me know what I should do?
I'm not sure...
Were you using the correct disk image? the one whose name is MacPorts-1.6.0-10.5-Leopard.dmg?
If so, can you just try installing it again, see if it works now?
Yep, was the right disk image. Downloaded it again and installed it. But same message....
I wrote the postflight script so I should chime in. Can you please try grepping through /var/log/install* files to see if there are any relevant messages there about the failure?
On a similar note, are you experiencing any problems with your MacPorts usage? Was your terminal environment set up correctly by the installer?
Here are the info. Can it be that it can't connect to MacPorts (for an update or so) which causes the problem? I am behind a firewill - will have to ask the admin to open port 873 - if that's correct Jan 9 07:25:23 gridmac7 Installer[18967]: Localized installer script postflight found in the MacPorts-1.6.0 package. Using compatibility mode. Jan 9 07:25:23 gridmac7 runner[18974]: postflight[18990]: Unknown shell! Please set your MacPorts compatible environment manually. Jan 9 07:25:23 gridmac7 runner[18974]: postflight[18990]: Jan 9 07:25:23: --- last message repeated 1 time --- Jan 9 07:25:23 gridmac7 runner[18974]: postflight[18990]: Checking the shell environment for user "schwarzer"... Jan 9 07:25:23 gridmac7 runner[18974]: postflight[18990]: Jan 9 07:25:23: --- last message repeated 1 time --- Jan 9 07:25:23 gridmac7 runner[18974]: postflight[18990]: /Users/ schwarzer/Downloads/8.1.08/MacPorts-1.6.0.pkg/Contents/Resources/ English.lproj/postflight: line 71: /Users/schwarzer/.: Is a directory Jan 9 07:25:23 gridmac7 runner[18974]: postflight[18990]: Jan 9 07:25:23 gridmac7 runner[18974]: postflight[18990]: /Users/ schwarzer/Downloads/8.1.08/MacPorts-1.6.0.pkg/Contents/Resources/ English.lproj/postflight: line 96: /Users/schwarzer/.: Is a directory Jan 9 07:25:23 gridmac7 runner[18974]: postflight[18990]: Jan 9 07:25:23 gridmac7 runner[18974]: postflight[18990]: Your shell already has the right MANPATH environment variable for use with MacPorts! Jan 9 07:25:23 gridmac7 runner[18974]: postflight[18990]: Jan 9 07:25:23 gridmac7 runner[18974]: postflight[18990]: Your shell already has the right DISPLAY environment variable for use with MacPorts! Jan 9 07:25:24 gridmac7 runner[18974]: postflight[18990]: Jan 9 07:25:24: --- last message repeated 1 time --- Jan 9 07:25:24 gridmac7 runner[18974]: postflight[18990]: Synchronizing the MacPorts installation with the project's rsync server... Jan 9 07:25:24 gridmac7 runner[18974]: postflight[18990]: Jan 9 07:25:24: --- last message repeated 1 time --- Jan 9 07:25:24 gridmac7 runner[18974]: postflight[18990]: Synchronizing local ports tree from rsync://rsync.macports.org/release/ ports/ Jan 9 07:25:24 gridmac7 runner[18974]: postflight[18990]: Jan 9 07:25:24 gridmac7 runner[18974]: postflight[18990]: rsync: failed to connect to rsync.macports.org: Connection refused (61) Jan 9 07:25:24 gridmac7 runner[18974]: postflight[18990]: Jan 9 07:25:24 gridmac7 runner[18974]: postflight[18990]: rsync error: error in socket IO (code 10) at /SourceCache/rsync/rsync-30/ rsync/clientserver.c(94) Jan 9 07:25:24 gridmac7 runner[18974]: postflight[18990]: Error: /opt/ local/bin/port: port selfupdate failed: Couldn't sync the ports tree: Synchronization the local ports tree failed doing rsync Jan 9 07:25:24 gridmac7 runner[18974]: postflight[18990]: Jan 9 07:25:24 gridmac7 runner[18974]: postflight[18990]: An attempt to synchronize your recent MacPorts installation with the project's rsync server failed! Jan 9 07:25:24 gridmac7 runner[18974]: postflight[18990]: Jan 9 07:25:24 gridmac7 runner[18974]: postflight[18990]: Please run 'port -d selfupdate' manually to find out the cause of the error. Jan 9 07:25:24 gridmac7 runner[18974]: postflight[18990]: Jan 9 07:25:24 gridmac7 Installer[18967]: Install failed: The following install step failed: run postflight script for MacPorts-1.6.0. Contact the software manufacturer for assistance.
The rsync server looks okay, so is it possible that you are behind a firewall or proxy that is blocking 873/tcp? Can you connect using just telnet? bash# telnet rsync.macports.org 873 Trying 17.254.17.246... Connected to alpha.macosforge.org. Escape character is '^]'. @RSYNCD: 28 -Bill On Jan 8, 2008, at 10:30 PM, Stefan Schwarzer wrote:
I wanted to install MacPorts on my Mac - MacPro with Leopard, latest version. But, while using the disk image, the installation finished with this message: "The following install step failed: run postflight script for MacPorts-1.6.0."
Can anyone let me know what I should do?
I'm not sure...
Were you using the correct disk image? the one whose name is MacPorts-1.6.0-10.5-Leopard.dmg?
If so, can you just try installing it again, see if it works now?
Yep, was the right disk image. Downloaded it again and installed it. But same message....
I wrote the postflight script so I should chime in. Can you please try grepping through /var/log/install* files to see if there are any relevant messages there about the failure?
On a similar note, are you experiencing any problems with your MacPorts usage? Was your terminal environment set up correctly by the installer?
Here are the info. Can it be that it can't connect to MacPorts (for an update or so) which causes the problem? I am behind a firewill - will have to ask the admin to open port 873 - if that's correct
Jan 9 07:25:23 gridmac7 Installer[18967]: Localized installer script postflight found in the MacPorts-1.6.0 package. Using compatibility mode. Jan 9 07:25:23 gridmac7 runner[18974]: postflight[18990]: Unknown shell! Please set your MacPorts compatible environment manually. Jan 9 07:25:23 gridmac7 runner[18974]: postflight[18990]: Jan 9 07:25:23: --- last message repeated 1 time --- Jan 9 07:25:23 gridmac7 runner[18974]: postflight[18990]: Checking the shell environment for user "schwarzer"... Jan 9 07:25:23 gridmac7 runner[18974]: postflight[18990]: Jan 9 07:25:23: --- last message repeated 1 time --- Jan 9 07:25:23 gridmac7 runner[18974]: postflight[18990]: /Users/ schwarzer/Downloads/8.1.08/MacPorts-1.6.0.pkg/Contents/Resources/ English.lproj/postflight: line 71: /Users/schwarzer/.: Is a directory Jan 9 07:25:23 gridmac7 runner[18974]: postflight[18990]: Jan 9 07:25:23 gridmac7 runner[18974]: postflight[18990]: /Users/ schwarzer/Downloads/8.1.08/MacPorts-1.6.0.pkg/Contents/Resources/ English.lproj/postflight: line 96: /Users/schwarzer/.: Is a directory Jan 9 07:25:23 gridmac7 runner[18974]: postflight[18990]: Jan 9 07:25:23 gridmac7 runner[18974]: postflight[18990]: Your shell already has the right MANPATH environment variable for use with MacPorts! Jan 9 07:25:23 gridmac7 runner[18974]: postflight[18990]: Jan 9 07:25:23 gridmac7 runner[18974]: postflight[18990]: Your shell already has the right DISPLAY environment variable for use with MacPorts! Jan 9 07:25:24 gridmac7 runner[18974]: postflight[18990]: Jan 9 07:25:24: --- last message repeated 1 time --- Jan 9 07:25:24 gridmac7 runner[18974]: postflight[18990]: Synchronizing the MacPorts installation with the project's rsync server... Jan 9 07:25:24 gridmac7 runner[18974]: postflight[18990]: Jan 9 07:25:24: --- last message repeated 1 time --- Jan 9 07:25:24 gridmac7 runner[18974]: postflight[18990]: Synchronizing local ports tree from rsync://rsync.macports.org/ release/ports/ Jan 9 07:25:24 gridmac7 runner[18974]: postflight[18990]: Jan 9 07:25:24 gridmac7 runner[18974]: postflight[18990]: rsync: failed to connect to rsync.macports.org: Connection refused (61) Jan 9 07:25:24 gridmac7 runner[18974]: postflight[18990]: Jan 9 07:25:24 gridmac7 runner[18974]: postflight[18990]: rsync error: error in socket IO (code 10) at /SourceCache/rsync/rsync-30/ rsync/clientserver.c(94) Jan 9 07:25:24 gridmac7 runner[18974]: postflight[18990]: Error: / opt/local/bin/port: port selfupdate failed: Couldn't sync the ports tree: Synchronization the local ports tree failed doing rsync Jan 9 07:25:24 gridmac7 runner[18974]: postflight[18990]: Jan 9 07:25:24 gridmac7 runner[18974]: postflight[18990]: An attempt to synchronize your recent MacPorts installation with the project's rsync server failed! Jan 9 07:25:24 gridmac7 runner[18974]: postflight[18990]: Jan 9 07:25:24 gridmac7 runner[18974]: postflight[18990]: Please run 'port -d selfupdate' manually to find out the cause of the error. Jan 9 07:25:24 gridmac7 runner[18974]: postflight[18990]: Jan 9 07:25:24 gridmac7 Installer[18967]: Install failed: The following install step failed: run postflight script for MacPorts-1.6.0. Contact the software manufacturer for assistance.
_______________________________________________ macports-users mailing list macports-users@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo/macports-users
---- William Siegrist Software Support Engineer Mac OS Forge http://macosforge.org/ wsiegrist@apple.com 408 862 7337
On Jan 8, 2008, at 10:30 PM, Stefan Schwarzer wrote:
I wanted to install MacPorts on my Mac - MacPro with Leopard, latest version. But, while using the disk image, the installation finished with this message: "The following install step failed: run postflight script for MacPorts-1.6.0."
[snip]
I wrote the postflight script so I should chime in. Can you please try grepping through /var/log/install* files to see if there are any relevant messages there about the failure?
[snip]
Here are the info. Can it be that it can't connect to MacPorts (for an update or so) which causes the problem? I am behind a firewill - will have to ask the admin to open port 873 - if that's correct
[snip]
Jan 9 07:25:24 gridmac7 runner[18974]: postflight[18990]: Synchronizing local ports tree from rsync://rsync.macports.org/ release/ports/ Jan 9 07:25:24 gridmac7 runner[18974]: postflight[18990]: Jan 9 07:25:24 gridmac7 runner[18974]: postflight[18990]: rsync: failed to connect to rsync.macports.org: Connection refused (61) Jan 9 07:25:24 gridmac7 runner[18974]: postflight[18990]: Jan 9 07:25:24 gridmac7 runner[18974]: postflight[18990]: rsync error: error in socket IO (code 10) at /SourceCache/rsync/rsync-30/ rsync/clientserver.c(94) Jan 9 07:25:24 gridmac7 runner[18974]: postflight[18990]: Error: / opt/local/bin/port: port selfupdate failed: Couldn't sync the ports tree: Synchronization the local ports tree failed doing rsync Jan 9 07:25:24 gridmac7 runner[18974]: postflight[18990]: Jan 9 07:25:24 gridmac7 runner[18974]: postflight[18990]: An attempt to synchronize your recent MacPorts installation with the project's rsync server failed! Jan 9 07:25:24 gridmac7 runner[18974]: postflight[18990]: Jan 9 07:25:24 gridmac7 runner[18974]: postflight[18990]: Please run 'port -d selfupdate' manually to find out the cause of the error. Jan 9 07:25:24 gridmac7 runner[18974]: postflight[18990]: Jan 9 07:25:24 gridmac7 Installer[18967]: Install failed: The following install step failed: run postflight script for MacPorts-1.6.0. Contact the software manufacturer for assistance.
So the postflight script failed because it couldn't connect to the rsync server. Doesn't matter why it happened (whether our rsync server was down (which it wasn't) or whether the user's firewall prevented the connection); we should ensure that any inability to connect to the rsync server does not cause the postflight script to fail like that. Best thing would be if we could pop up a friendly message to the user that they need to update their installation themselves, but it might also be ok to just silently fail. In any event, the installation in the Installer should complete.
On Jan 9, 2008, at 2:00 AM, Stefan Schwarzer wrote:
Here are the info. Can it be that it can't connect to MacPorts (for an update or so) which causes the problem? I am behind a firewill - will have to ask the admin to open port 873 - if that's correct
Jan 9 07:25:23 gridmac7 Installer[18967]: Localized installer script postflight found in the MacPorts-1.6.0 package. Using compatibility mode. Jan 9 07:25:23 gridmac7 runner[18974]: postflight[18990]: Unknown shell! Please set your MacPorts compatible environment manually.
The script is built to only tweak the environment for the bash and tcsh shells, which I attempt to detect in the script. If I don't detect either I instruct the user to setup his/her environment manually, since the script is built for a default scenario and shells other than bash and tcsh (legacy support) are not standard. What shell are you running? Can you please tell me the output of "basename $SHELL"?
Jan 9 07:25:23 gridmac7 runner[18974]: postflight[18990]: Jan 9 07:25:23: --- last message repeated 1 time --- Jan 9 07:25:23 gridmac7 runner[18974]: postflight[18990]: Checking the shell environment for user "schwarzer"...
Even though the shell was not recognized, the script still went ahead and tried to tweak the environment. My mistake, I should have instructed it to exit successfully and not do anything else if the shell can't be determined. This is already fixed and will be in the next MacPorts pkg installer, whenever that comes around (I'll think about re-releasing the 1.6.0 installers with an improved script, but at the moment I have no final word on that).
Jan 9 07:25:23 gridmac7 runner[18974]: postflight[18990]: Jan 9 07:25:23: --- last message repeated 1 time --- Jan 9 07:25:23 gridmac7 runner[18974]: postflight[18990]: /Users/ schwarzer/Downloads/8.1.08/MacPorts-1.6.0.pkg/Contents/Resources/ English.lproj/postflight: line 71: /Users/schwarzer/.: Is a directory Jan 9 07:25:23 gridmac7 runner[18974]: postflight[18990]: Jan 9 07:25:23 gridmac7 runner[18974]: postflight[18990]: /Users/ schwarzer/Downloads/8.1.08/MacPorts-1.6.0.pkg/Contents/Resources/ English.lproj/postflight: line 96: /Users/schwarzer/.: Is a directory
These errors creep up because the script doesn't have a file to add the settings to, since it couldn't determine the shell and didn't exit. Already fixed per my comments above.
Jan 9 07:25:23 gridmac7 runner[18974]: postflight[18990]: Jan 9 07:25:23 gridmac7 runner[18974]: postflight[18990]: Your shell already has the right MANPATH environment variable for use with MacPorts!
Expected: no shell could be determined and therefore, most likely, no MANPATH variable was found; in such case the script refrains from adding anything to MANPATH (see "destails of the postflight script" at http://guide.macports.org/#installing.macports for more details)
Jan 9 07:25:23 gridmac7 runner[18974]: postflight[18990]: Jan 9 07:25:23 gridmac7 runner[18974]: postflight[18990]: Your shell already has the right DISPLAY environment variable for use with MacPorts!
Expected if you're on Leopard, are you? In any other case, adding a DISPLAY variable would have been attempted and an error such as Users/schwarzer/Downloads/8.1.08/MacPorts-1.6.0.pkg/Contents/Resources/ English.lproj/postflight: line 71: /Users/schwarzer/.: Is a directory should have occurred.
Jan 9 07:25:24 gridmac7 runner[18974]: postflight[18990]: Jan 9 07:25:24: --- last message repeated 1 time --- Jan 9 07:25:24 gridmac7 runner[18974]: postflight[18990]: Synchronizing the MacPorts installation with the project's rsync server... Jan 9 07:25:24 gridmac7 runner[18974]: postflight[18990]: Jan 9 07:25:24: --- last message repeated 1 time --- Jan 9 07:25:24 gridmac7 runner[18974]: postflight[18990]: Synchronizing local ports tree from rsync://rsync.macports.org/ release/ports/ Jan 9 07:25:24 gridmac7 runner[18974]: postflight[18990]: Jan 9 07:25:24 gridmac7 runner[18974]: postflight[18990]: rsync: failed to connect to rsync.macports.org: Connection refused (61) Jan 9 07:25:24 gridmac7 runner[18974]: postflight[18990]: Jan 9 07:25:24 gridmac7 runner[18974]: postflight[18990]: rsync error: error in socket IO (code 10) at /SourceCache/rsync/rsync-30/ rsync/clientserver.c(94) Jan 9 07:25:24 gridmac7 runner[18974]: postflight[18990]: Error: / opt/local/bin/port: port selfupdate failed: Couldn't sync the ports tree: Synchronization the local ports tree failed doing rsync Jan 9 07:25:24 gridmac7 runner[18974]: postflight[18990]: Jan 9 07:25:24 gridmac7 runner[18974]: postflight[18990]: An attempt to synchronize your recent MacPorts installation with the project's rsync server failed! Jan 9 07:25:24 gridmac7 runner[18974]: postflight[18990]: Jan 9 07:25:24 gridmac7 runner[18974]: postflight[18990]: Please run 'port -d selfupdate' manually to find out the cause of the error. Jan 9 07:25:24 gridmac7 runner[18974]: postflight[18990]: Jan 9 07:25:24 gridmac7 Installer[18967]: Install failed: The following install step failed: run postflight script for MacPorts-1.6.0. Contact the software manufacturer for assistance.
"selfupdate" failed for some reason, probably rsync blocking, and the script bailed out with an error code. I've corrected this behavior too. Thanks for your feedback, much appreciated! Regards,... -jmpp
On Jan 9, 2008, at 4:20 PM, Ryan Schmidt wrote:
Jan 9 07:25:24 gridmac7 runner[18974]: postflight[18990]: Synchronizing local ports tree from rsync://rsync.macports.org/ release/ports/ Jan 9 07:25:24 gridmac7 runner[18974]: postflight[18990]: Jan 9 07:25:24 gridmac7 runner[18974]: postflight[18990]: rsync: failed to connect to rsync.macports.org: Connection refused (61) Jan 9 07:25:24 gridmac7 runner[18974]: postflight[18990]: Jan 9 07:25:24 gridmac7 runner[18974]: postflight[18990]: rsync error: error in socket IO (code 10) at /SourceCache/rsync/rsync-30/ rsync/clientserver.c(94) Jan 9 07:25:24 gridmac7 runner[18974]: postflight[18990]: Error: / opt/local/bin/port: port selfupdate failed: Couldn't sync the ports tree: Synchronization the local ports tree failed doing rsync Jan 9 07:25:24 gridmac7 runner[18974]: postflight[18990]: Jan 9 07:25:24 gridmac7 runner[18974]: postflight[18990]: An attempt to synchronize your recent MacPorts installation with the project's rsync server failed! Jan 9 07:25:24 gridmac7 runner[18974]: postflight[18990]: Jan 9 07:25:24 gridmac7 runner[18974]: postflight[18990]: Please run 'port -d selfupdate' manually to find out the cause of the error. Jan 9 07:25:24 gridmac7 runner[18974]: postflight[18990]: Jan 9 07:25:24 gridmac7 Installer[18967]: Install failed: The following install step failed: run postflight script for MacPorts-1.6.0. Contact the software manufacturer for assistance.
So the postflight script failed because it couldn't connect to the rsync server. Doesn't matter why it happened (whether our rsync server was down (which it wasn't) or whether the user's firewall prevented the connection); we should ensure that any inability to connect to the rsync server does not cause the postflight script to fail like that. Best thing would be if we could pop up a friendly message to the user that they need to update their installation themselves, but it might also be ok to just silently fail. In any event, the installation in the Installer should complete.
Done! -jmpp
On Jan 10, 2008, at 00:12, Juan Manuel Palacios wrote:
This is already fixed and will be in the next MacPorts pkg installer, whenever that comes around (I'll think about re- releasing the 1.6.0 installers with an improved script, but at the moment I have no final word on that).
You're not contemplating a stealth upgrade, are you? That thing we hate other software developers for doing? :-) If there is a problem in the disk images and we need to rebuild them, then the version number of such new images should be no less than 1.6.1.
On Jan 10, 2008, at 2:02 AM, Ryan Schmidt wrote:
On Jan 10, 2008, at 00:12, Juan Manuel Palacios wrote:
This is already fixed and will be in the next MacPorts pkg installer, whenever that comes around (I'll think about re- releasing the 1.6.0 installers with an improved script, but at the moment I have no final word on that).
You're not contemplating a stealth upgrade, are you? That thing we hate other software developers for doing? :-) If there is a problem in the disk images and we need to rebuild them, then the version number of such new images should be no less than 1.6.1.
Thankfully, most of the problems that have crept up only affect Panther, which is a small audience. All of them have been fixed already so I'm preparing a 1.6.1 release, off which I'm planning to rebuild the dmg's. So, in short: no, it wouldn't be a stealth update, not-while-I'm-around-days ;-) In any case, I have to think a bit more about it and consider other possible failures (mostly of the postflight script) in order to fix them before the bite us in round 2... but one thing I definitely need to do is think about this entire business once I get my sanity back after some much needed sleep! Regards,... -jmpp
participants (4)
-
Juan Manuel Palacios
-
Ryan Schmidt
-
Stefan Schwarzer
-
William Siegrist