Bug #43573 Solaris cluster pkg install fails
Submitted: 11 Mar 2009 20:19 Modified: 1 Apr 2009 23:43
Reporter: Mario Beck Email Updates:
Status: Duplicate Impact on me:
Category:MySQL Server: Packaging Severity:S3 (Non-critical)
Version:ndb-6.3.20 OS:Solaris (OpenSolaris 2008.11)
Assigned to: Assigned Account CPU Architecture:Any
Tags: pkg install Solaris OpenSolaris MySQL Cluster

[11 Mar 2009 20:19] Mario Beck
When trying to install MySQL Cluster 6.3.20 under Solaris from the pkg file, the pkgadd command fails with the following error:

/var/sadm/pkg/mysql-cluster/install/postinstall[40]: cd: /opt/mysql/mysql: [No such file or directory]
/var/sadm/pkg/mysql-cluster/install/postinstall[41]: scripts/mysql_install_db: Not found
cp: cannot access /opt/mysql/mysql/support-files/mysql.server.in
pkgadd: ERROR: postinstall script did not complete successfully

Installation of <mysql-cluster> failed.

How to repeat:
Take any Solaris installation and try to install the MySQL Cluster pkg file, downloaded from the community website:

pkgadd -d mysql-cluster-gpl-6.3.20-solaris10-i386.pkg

Suggested fix:
The cluster package installs files in /opt/mysql/mysql-cluster
But the postinstall scripts are called from /opt/mysql/mysql
The "cd /opt/mysql/mysql" in the postinstall script must be changed to "cd /opt/mysql/mysql-cluster"

Workaround: Before the pkgadd command create a symbolic link:

ln -s /opt/mysql/mysql-cluster /opt/mysql
pkgadd ...
[11 Mar 2009 20:53] Mario Beck
The workaround reveals another bug:
When creating a symolic link "ln -s /opt/mysql/mysql-cluster /opt/mysql/mysql"
the postinstall script will run but it will produce an error:

ERROR: 1004 Can't create file '/var/tmp/installYeayUc/#sql58a_1_0.frm' (errno: 13)
090311 21:48:43 [ERROR] Aborting
Installation of system tables failed! ...

There is no directory var/tmp/installYeayUc/
Only /var/tmp
[12 Mar 2009 8:25] Sveta Smirnova
Thank you for the report.

Verified as described.
[19 Mar 2009 7:43] php ninja
I ran into this same thing.. as of right now is this packag uninstallable? to me it seems like a critical bug because it can't be installed..
[1 Apr 2009 23:44] Omer Barnir
Duplicate of bug#41998