Bug #74373 OS X MySQL dmg will NOT install
Submitted: 14 Oct 2014 11:48 Modified: 22 Jan 2015 8:54
Reporter: Victoria Mielke Email Updates:
Status: Can't repeat Impact on me:
None 
Category:MySQL Server: Installing Severity:S2 (Serious)
Version:5.6.21 OS:MacOS (10.9)
Assigned to: CPU Architecture:Any
Tags: failure to install

[14 Oct 2014 11:48] Victoria Mielke
Description:
I downloaded MySQL community server: Mac OS X 10.9 (x86, 64-bit), DMG Archive, MD5: 6f6b954c52cac4267a172c425f24fd8c. I tried to install, and it goes through the entire process until it hits the "package receipts" stage, and then refuses to completely install and says to "contact the vendor." 

How to repeat:
Try to install DMG file above.
[14 Oct 2014 12:14] MySQL Verification Team
I couldn't repeat, please describe the steps you did to install:

[09:12:49][pochita:]~ miguel$ mysql -uroot
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 1
Server version: 5.6.21 MySQL Community Server (GPL)

Copyright (c) 2000, 2014, Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql> SHOW VARIABLES LIKE "%VERSION%";
+-------------------------+------------------------------+
| Variable_name           | Value                        |
+-------------------------+------------------------------+
| innodb_version          | 5.6.21                       |
| protocol_version        | 10                           |
| slave_type_conversions  |                              |
| version                 | 5.6.21                       |
| version_comment         | MySQL Community Server (GPL) |
| version_compile_machine | x86_64                       |
| version_compile_os      | osx10.8                      |
+-------------------------+------------------------------+
7 rows in set (0.01 sec)
[14 Oct 2014 12:35] Victoria Mielke
I downloaded the the DMG for 64-bit Mac OS 10.9. I double clicked the DMG, and it opens to show the PKG installer. I double clicked the PKG, which required me to agree to the software license. After agreement, the software installs, but as it reaches the step on "package receipts," which is quite near the end of the install, it simply stops and says something like "There was an error in installation. Please contact the software vendor for assistance." No error log link or any way to find out what happened was provided in the package installer.
[14 Oct 2014 12:49] MySQL Verification Team
Thank you the feedback. I am assign a coworker to try on his machine too.
[15 Oct 2014 17:58] MySQL Verification Team
Hello Victoria,

I’m not seeing the reported issue, downloaded “mysql-5.6.21-osx10.9-x86_64.dmg” and just followed the steps outlines in manual page - http://dev.mysql.com/doc/refman/5.6/en/macosx-installation-pkg.html and had no issue in any steps.. After the installation, had to start the MySQL server from the preference pane explained here http://dev.mysql.com/doc/refman/5.6/en/macosx-installation-prefpane.html

— Downloaded package

-rw-r--r--@  1 ushastry  staff  172522839 Oct 15 21:49 mysql-5.6.21-osx10.9-x86_64.dmg
-rw-r--r--@  1 ushastry  staff         66 Oct 15 21:12 mysql-5.6.21-osx10.9-x86_64.dmg.md5

md5 mysql-5.6.21-osx10.9-x86_64.dmg
MD5 (mysql-5.6.21-osx10.9-x86_64.dmg) = 6f6b954c52cac4267a172c425f24fd8c
                               

mysql ushastry$ bin/mysql -uroot -p
Enter password: 
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 17
Server version: 5.6.21 MySQL Community Server (GPL)

Copyright (c) 2000, 2014, Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql> show variables like '%version%';
+-------------------------+------------------------------+
| Variable_name           | Value                        |
+-------------------------+------------------------------+
| innodb_version          | 5.6.21                       |
| protocol_version        | 10                           |
| slave_type_conversions  |                              |
| version                 | 5.6.21                       |
| version_comment         | MySQL Community Server (GPL) |
| version_compile_machine | x86_64                       |
| version_compile_os      | osx10.8                      |
+-------------------------+------------------------------+
7 rows in set (0.04 sec)

mysql> 

// OS

ushastry$ system_profiler SPSoftwareDataType
Software:

    System Software Overview:

      System Version: OS X 10.9.5 (13F34)
      Kernel Version: Darwin 13.4.0

ushastry$ sw_vers
ProductName:	Mac OS X
ProductVersion:	10.9.5
BuildVersion:	13F34

Could you please retry the steps and let us know if you are still seeing the issue.

Thanks,
Umesh
[15 Oct 2014 19:28] Victoria Mielke
Screenshot of install failed.

Attachment: Screen Shot 2014-10-15 at 3.19.01 PM.png (image/png, text), 113.98 KiB.

[15 Oct 2014 19:30] Victoria Mielke
Mac OS X 10.9 (x86, 64-bit), DMG Archive 		5.6.21 	164.5M 	
Download
(mysql-5.6.21-osx10.9-x86_64.dmg) 	MD5: 6f6b954c52cac4267a172c425f24fd8c

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (SunOS)

iD8DBQBUEr2XjHGNO1By4fURAn6AAJ9JMe1nGqDL4vWStWJnwbJMiIw7eACfVQYw
WhR0e0Bev7DDQ/GZEx95CPE=
=Wq2h
-----END PGP SIGNATURE-----

I downloadeded this file, double clicked the install package, and it installed until it hit "validating packages." This is when it displays failure to install.
[15 Oct 2014 19:37] Victoria Mielke
This is the install log for the last time I tried to install. Maybe this would provide clues to the installation failure.

Oct 15 15:32:27 victoriamielkes-macbook-pro.local Installer[20490]: @(#)PROGRAM:Install  PROJECT:Install-846
Oct 15 15:32:27 victoriamielkes-macbook-pro.local Installer[20490]: @(#)PROGRAM:Installer  PROJECT:Installer-721
Oct 15 15:32:27 victoriamielkes-macbook-pro.local Installer[20490]: Hardware: MacBookPro5,4 @ 2.53 GHz (x 2), 4096 MB RAM
Oct 15 15:32:27 victoriamielkes-macbook-pro.local Installer[20490]: Running OS Build: Mac OS X 10.9.5 (13F34)
Oct 15 15:32:27 victoriamielkes-macbook-pro.local Installer[20490]: MySQL 5.6.21-community  Installation Log
Oct 15 15:32:27 victoriamielkes-macbook-pro.local Installer[20490]: Opened from: /Volumes/mysql-5.6.21-osx10.8-x86_64/mysql-5.6.21-osx10.8-x86_64.pkg
Oct 15 15:32:52 victoriamielkes-macbook-pro.local Installer[20490]: InstallerStatusNotifications plugin loaded
Oct 15 15:32:58 victoriamielkes-macbook-pro.local Installer[20490]: ================================================================================
Oct 15 15:32:58 victoriamielkes-macbook-pro.local Installer[20490]: User picked Standard Install
Oct 15 15:32:58 victoriamielkes-macbook-pro.local Installer[20490]: Choices selected for installation:
Oct 15 15:32:58 victoriamielkes-macbook-pro.local Installer[20490]: 	Install: "MySQL 5.6.21-community"
Oct 15 15:32:58 victoriamielkes-macbook-pro.local Installer[20490]: 	Install: "MySQL Server"
Oct 15 15:32:58 victoriamielkes-macbook-pro.local Installer[20490]: 	Install: "Preference Pane"
Oct 15 15:32:58 victoriamielkes-macbook-pro.local Installer[20490]: 	Install: "Startup Item"
Oct 15 15:32:58 victoriamielkes-macbook-pro.local Installer[20490]: ================================================================================
Oct 15 15:33:04 victoriamielkes-macbook-pro.local Installer[20490]: Configuring volume "VIctoriaMIelke"
Oct 15 15:33:04 victoriamielkes-macbook-pro.local Installer[20490]: Free space on "VIctoriaMIelke": 413.39 GB (413387313152 bytes).
Oct 15 15:33:04 victoriamielkes-macbook-pro.local Installer[20490]: Create temporary directory "/var/folders/3b/mp8gg30j77g4z3bp_2ncwhgc0000gn/T//Install.20490L8ZXb8"
Oct 15 15:33:04 victoriamielkes-macbook-pro.local Installer[20490]: IFPKInstallElement (3 packages)
Oct 15 15:33:04 victoriamielkes-macbook-pro.local Installer[20490]: PackageKit: Enqueuing install with boosting
Oct 15 15:33:04 victoriamielkes-macbook-pro.local installd[1846]: PackageKit: ----- Begin install -----
Oct 15 15:33:41 victoriamielkes-macbook-pro.local installd[1846]: PackageKit: Install Failed: Error Domain=PKInstallErrorDomain Code=112 "An error occurred while running scripts from the package “mysql-5.6.21-osx10.8-x86_64.pkg”." UserInfo=0x7f8a73783fb0 {NSFilePath=./postinstall, NSURL=file://localhost/Volumes/mysql-5.6.21-osx10.8-x86_64/mysql-5.6.21-osx10.8-x86_64.pkg#mysql-startup-item.pkg, PKInstallPackageIdentifier=com.mysql.startupitem, NSLocalizedDescription=An error occurred while running scripts from the package “mysql-5.6.21-osx10.8-x86_64.pkg”.} {
	    NSFilePath = "./postinstall";
	    NSLocalizedDescription = "An error occurred while running scripts from the package \U201cmysql-5.6.21-osx10.8-x86_64.pkg\U201d.";
	    NSURL = "file://localhost/Volumes/mysql-5.6.21-osx10.8-x86_64/mysql-5.6.21-osx10.8-x86_64.pkg#mysql-startup-item.pkg";
	    PKInstallPackageIdentifier = "com.mysql.startupitem";
	}
Oct 15 15:33:42 victoriamielkes-macbook-pro.local Installer[20490]: Install failed: The Installer encountered an error that caused the installation to fail. Contact the software manufacturer for assistance.
Oct 15 15:33:42 victoriamielkes-macbook-pro.local Installer[20490]: IFDInstallController B2D53690 state = 8
Oct 15 15:33:42 victoriamielkes-macbook-pro.local Installer[20490]: Displaying 'Install Failed' UI.
Oct 15 15:33:42 victoriamielkes-macbook-pro.local Installer[20490]: 'Install Failed' UI displayed message:'The Installer encountered an error that caused the installation to fail. Contact the software manufacturer for assistance.'.
[17 Oct 2014 11:25] MySQL Verification Team
Hello Victoria,

I re-installed and confirmed no issues at my end.
Looking at the error, I suspect this is something to do with the privileges - are you trying to install as non-root user? Please could you try from root(administrator) or sudo users and see if that helps?

PackageKit: Install Failed: Error Domain=PKInstallErrorDomain Code=112 "An error occurred while running scripts from the package “mysql-5.6.21-osx10.8-x86_64.pkg”." UserInfo=0x7f8a73783fb0 {NSFilePath=./postinstall, NSURL=file://localhost/Volumes/mysql-5.6.21-osx10.8-x86_64/mysql-5.6.21-osx10.8-x86_64.pkg#mysql-startup-item.pkg, PKInstallPackageIdentifier=com.mysql.startupitem, NSLocalizedDescription=An error occurred while running scripts from the package “mysql-5.6.21-osx10.8-x86_64.pkg”.} {
	    NSFilePath = "./postinstall";

Thanks,
Umesh
[18 Oct 2014 0:08] Victoria Mielke
I am the admin user on this computer and thought I also was root. I'm not sure how to become root if I am not. I looked here on the Apple website: http://support.apple.com/kb/PH14281, which directs me to the Directory Utility. I appear to be root now but don't know what to do next to be able to install the MySQL package.
[21 Oct 2014 20:05] Michael Norman
I too have this issue. Tried running from terminal with sudo. Same error:

mbp:Downloads chris$ sudo installer -pkg ~/Downloads/mysql-5.6.21-osx10.8-x86_64.pkg -target /
installer: Package name is MySQL 5.6.21-community
installer: Installing at base path /
installer: The install failed (The Installer encountered an error that caused the installation to fail. Contact the software manufacturer for assistance.)
[22 Oct 2014 6:42] Adrian San Juan
Tried installing through UI and command line, and I get the same error:

Mackbook-Pro:Downloads$ sudo installer -pkg ./mysql-5.6.21-osx10.8-x86_64.pkg -target /
installer: Package name is MySQL 5.6.21-community
installer: Installing at base path /
installer: The install failed (The Installer encountered an error that caused the installation to fail. Contact the software manufacturer for assistance.)

I'm on OS X Yosemite 10.10
[23 Oct 2014 20:07] John Conery
Same bug, installing from DMG on Yosemite.  Here is the line in installer.log just before the fail and the line reporting the fail:

Oct 23 12:11:29 sasquatch.uoregon.edu installd[3416]: PackageKit: allow user idle system sleep
Oct 23 12:11:29 sasquatch.uoregon.edu installd[3416]: PackageKit: Install Failed: Error Domain=PKInstallErrorDomain Code=112 "An error occurred while running scripts from the package “mysql-5.6.21-osx10.8-x86_64.pkg”." UserInfo=0x7fa6768b0210 {NSFilePath=./postinstall, NSURL=file://localhost/Volumes/mysql-5.6.21-osx10.8-x86_64/mysql-5.6.21-osx10.8-x86_64.pkg#mysql-startup-item.pkg, PKInstallPackageIdentifier=com.mysql.startupitem, NSLocalizedDescription=An error occurred while running scripts from the package “mysql-5.6.21-osx10.8-x86_64.pkg”.}
[30 Oct 2014 5:00] MySQL Verification Team
Thank you for the feedback.
We tried it on another box with no issues, might be some old stale files from a previous installation causing this issue? Could you please confirm if this is the case?

Thanks,
Umesh
[1 Nov 2014 0:49] Nick Pettit
I think I've figured this out.

When I download either the DMG or the tar.gz archive for Mac OS X 10.9, the contents are actually for Mac OS X 10.8 (NOT 10.9 like it says)

I'm downloading it from this page:
http://dev.mysql.com/downloads/mysql/
[1 Nov 2014 16:08] Victoria Mielke
I don't have any other machines to try this package on. I am going to look into another DB management system.
[18 Nov 2014 9:29] Nick Jenkins
I am also experiencing this issue while running OS X Yosemite on a 64-bit Mac.  The installation fails when it reaches 'Validating packages.'

I've noticed that the checksums for version 10.9 and 10.8 are the same.  I believe that maybe the 10.8 installer is what's being included on the 10.9 disk image.  When mounting the 10.9 .dmg file, the mounted image is labeled 10.8 in the Sidebar as shown in this image: http://i.imgur.com/8YQDHME.png

The .pkg file is also labeled as 10.8.

Please see my annotated image located here showing that on the download page, the checksums for the different versions match (The blue arrows match as well as the red ones): http://i.imgur.com/7IcNn1k.png
[18 Nov 2014 9:50] Nick Jenkins
*Update: For those also experiencing this issue, I have noticed that even though the installer says the the installation failed, on my system it DID INDEED install.

Go to System Preferences and you should still see the MySQL preference pane at the bottom.

Thanks to this link here (http://coolestguidesontheplanet.com/get-apache-mysql-php-phpmyadmin-working-osx-10-10-yose...) which explains that the installation says it failed because there is a bug where MySQL cannot be set to Start on Restart.  (Even after the installer says it failed and it still installs, by going to System Preferences and into the MySQL Preference Pane, you CANNOT check the box to 'Automatically Start MySQL Server on Startup.'  You will receive an error that says 'Could not change automatic startup configuration. Reason: Operation failed.'

So it looks like *THAT* is the root of the issue.  The Start MySQL Server on Restart script fails during the installation causing the installer to tell us users that the installation has failed (even though it really was successful, it just couldn't set itself to automatically start MySQL Server on Restart.)

You will have to manually start MySQL Server every time you restart your system.
[22 Jan 2015 8:54] MySQL Verification Team
Thank you for the feedback.
I tried it again today but with no luck.
[12 May 2015 15:20] Brian Sheely
I just downloaded the 5.6.24 DMG to install on OS X 10.10.3. Unselected both the Preference Pane and the Startup Item. Get Installation Failed message on install.