Cannot install .mpkg files

I have just installed Leopard and the 10.5.2 update and now I want to install the XCode update etc. and all that happens when I double click on any .mpkg files is that Finder launches PackageMaker.app. Anyone know what might be going wrong here? And even better how to fix it?

More fundamentally, what happens when a .mpkg file is double clicked? How is it installed? And what would be the terminal command to do the same?
TIA.

Ronan.

MacBook, Mac OS X (10.5.2), 2GHz Intel Core Duo

Posted on Mar 8, 2008 3:46 PM

Reply
11 replies
Sort By: 

Mar 8, 2008 3:50 PM in response to ronanoc

apple doc

Some installer package files work with Mac OS X 10.5 only

* Last Modified on: November 02, 2007

* Article: 306603

Issue or symptom

The Installer application in Mac OS X 10.4 may close without any alert or installation attempt when using certain package files (files whose name ends with ".pkg").
Products affected

* Mac OS X 10.4
* Installation package files designed for Mac OS X 10.5

Solution

If you can't install a certain package file in Mac OS X 10.4.x, make sure that the software you are attempting to install is compatible with the version of Mac OS X that you are using.

Some installer package files (files whose name ends with ".pkg") are intended for use with Mac OS X 10.5 only. Such package files may cause Installer to "silently quit" without installing, in Mac OS X 10.4.x or earlier.

Note: This issue does not affect installations of Mac OS X 10.5 itself "over" Mac OS X 10.4 or earlier because your Mac will start from the Mac OS X 10.5 disc before installing Leopard.
Reply

Mar 8, 2008 4:13 PM in response to DonH49

I am trying to install the XCode tools from the 10.5 DVD, so it must be up to date, and also the same goes for the iPhone SDK.

An ctrl-click brings up the menu with "Open With > " and the only listed option is 'PackageMaker'. By selecting 'Other', it is possible to look for the installer app. But where is it normally found?

I just checked on another mac and "Open With" should show 'Installer'. So that is definitely part of the problem.

Another clue perhaps is that it shows the file with the extension '.mpkg' and I suppose it shouldn't. I know this is probably a Finder display option but I find it curious that it does that by default.

Another thing is that the context menu normally has the option of 'Show package contents', but in my installation of Leopard it doesn't. It did previously, prior to the upgrade.

So what might have happened to Installer.app, or what ever it is called? I did a search on the other mac, and nothing came up, so it must go under a different name.
Reply

Mar 8, 2008 11:20 PM in response to ronanoc

Another clue perhaps is that it shows the file with the extension '.mpkg' and I suppose it shouldn't.


No, the extension should be .mpkg.

Another thing is that the context menu normally has the option of 'Show package contents', but in my installation of Leopard it doesn't.


Leopard uses flat packages not package bundles like previous OS versions.

Start the Installer from the DVD then click the Customize button and install XCode and its supporting packages.
Reply

Mar 9, 2008 6:03 AM in response to Mark Jalbert

What I meant there is the show versus hide file extension...

"Customize button" - at what point is that visible? The start sequence of the DVD goes into first the language selection, then a selection of the location to install - ie HD, below that 'Options'. This is not selectable as the current OS version is newer than that on the DVD. I didn't see the customize button at any stage.

Is there no way to just install package files from the command line?
Reply

Mar 9, 2008 2:59 PM in response to Mark Jalbert

For some unknown (to me) reason, the OS now recognizes the .mpkg properly and when selecting open it launches the installer (this is after 4/5 reboots).

This means that the correct icon is now shown, and when ctrl-clicking on the icon in the contextual menu "Open with" now points to the default 'Installer'. The reason why it did not do before this I don't know. In any case, as suggested a package file can also be installed by selecting "System/Library/CoreServices/Installer", or the installer command via the terminal.

Remember not to confuse the system command 'install' with 'installer' - they are totally different.

So I tried both approaches and the terminal gave the following:
ronBook:Optional Installs ronanoc$ sudo installer -pkg "Optional Installs.mpkg" -target /Developer
Password:
installer: Package name is Optional Installs
installer: Installing at base path /
installer: The install was successful.

However the installer did not actually install the package and terminated very quickly. Perhaps it is because the developer tools for xcode were already installed in the same path and the command did not differentiate, but gave a 'success' command response all the same. I would think this message is incorrect, as in any case the command returned much too quickly.

Now back to the GUI, and it did not install correctly.
"The following install step failed: run postinstall script for CHUD.Contact the software manufacturer for assistance."

There is a discussion on this error here:
http://discussions.apple.com/thread.jspa?messageID=5645479

Upon deleting the /Developer folder and reinstalling, it solves the problem.
Reply

Mar 9, 2008 3:23 PM in response to Mark Jalbert

True, I didn't choose either. I backed up the /Users folder and went ahead (blindly). For emergencies, I still have another machine.

I was surprised at how many reboots it took (6 perhaps) - kind of reminded me of installing Windows XP and all the patches, well, ... not as bad but close.
Reply

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Cannot install .mpkg files

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.