Bug #48336 'Problem running post-install step.' on Solaris 10 x64
Submitted: 27 Oct 2009 1:54 Modified: 15 Jan 2010 13:57
Reporter: Roel Van de Paar Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Enterprise Monitor: Installing Severity:S2 (Serious)
Version:2.1.0.1093 OS:Solaris (10 x64)
Assigned to: Michael Schuster CPU Architecture:Any

[27 Oct 2009 1:54] Roel Van de Paar
Description:
on Solaris 10, using mysqlmonitoragent-2.1.0.1093-solaris10-sparc-64bit-installer.bin , the setup window has:

Please wait while Setup installs MYSQL Enterprise Monitor Agent on your computer.
Installing
Creating link /opt/my[...]erprise/agent/lib/mysql-proxy/libreplicant.so

A warning dialog box pops up:
Problem running post-install step.
Installation may not complete correctly
Error running /opt/mysql/enterprise/agent/bin/mysql-monitor-agent
--defaults-file=/opt/mysql/enterprise/agent/etc/mysql-monitor-agent.ini
--plugins=agent
--agent-generate-uuid=true : ld.so.1:
mysql-proxy: fatal: libmysql-chassis.so.0: open failed: No
such file or directory
Killed

The file is there in the /opt/mysql/enterprise/agent/lib/mysql-proxy directory

How to repeat:
Unsure

Suggested fix:
o Set the LD_LIBRARY_PATH_64 environment variable correctly / Sym link the libraries in agent/lib/mysql-proxy to /usr/lib or /usr/local/lib
[27 Oct 2009 1:55] Roel Van de Paar
(Workaround:) 

Customer had to:
1. Use root
2. Use a bash shell
3. Explicitly set the LD_LIBRARY_PATH_64 environment variable before starting
[27 Oct 2009 1:56] Roel Van de Paar
Note bug #32795
[28 Oct 2009 8:41] Roel Van de Paar
Some interesting excerpts from install.with.truss.bitrock_isntaller.log:
------
Creating link /home/mcooley/mysql/enterprise/agent/lib/mysql-proxy/libreplicant.so
Executing /home/mcooley/mysql/enterprise/agent/bin/mysql-monitor-agent
Script exit code: 137
...
Problem running post-install step. Installation may not complete correctly
 Error running /home/mcooley/mysql/enterprise/agent/bin/mysql-monitor-agent --defaults-file=/home/mcooley/mysql/enterprise/agent/etc/mysql-monitor-agent.ini --plugins=agent --agent-generate-uuid=true : ld.so.1: mysql-proxy: fatal: libmysql-chassis.so.0: open failed: No such file or directory
------

and trussout.txt:
------
3033:	68.9665	stat("/usr/sfw/lib/64/libmysql-chassis.so.0", 0xFFFFFFFF7FFFE8F0) Err#2 ENOENT
3033:	68.9668	stat("/opt/mysql/mysql/lib/libmysql-chassis.so.0", 0xFFFFFFFF7FFFE8F0) Err#2 ENOENT
3033:	68.9676	stat("/project/ProjectLib/xmime/lib64/libmysql-chassis.so.0", 0xFFFFFFFF7FFFE8F0) Err#2 ENOENT
3033:	68.9679	stat("/lib/64/libmysql-chassis.so.0", 0xFFFFFFFF7FFFE8F0) Err#2 ENOENT
3033:	68.9681	stat("/usr/lib/64/libmysql-chassis.so.0", 0xFFFFFFFF7FFFE8F0) Err#2 ENOENT
3033:	68.9685	write(2, " l d . s o . 1 :   m y s".., 91)	= 91
------
[3 Nov 2009 16:35] Michael Schuster
addendum: please add the -e flag to the list of flags for truss, we could then prove whether LD_LIBRARY_PATH_* is set.
[22 Dec 2009 18:24] Enterprise Tools JIRA Robot
Keith Russell writes: 
Patch installed in version => 2.1.1.1137.
[15 Jan 2010 13:57] MC Brown
A note has been added to the 2.1.1 changelog: 

 The agent installer for Solaris on x64 would fail due to a library linker issue duing the post-installation phase of the installer.
[17 Jan 2010 22:36] Roel Van de Paar
Solution implemented:

LD_LIBRARY_PATH_64 is unset in mysql-monitor-agent (affects this script only). Hereby the LD_LIBRARY_PATH we set will take effect.