Bug #39317 agent installer fails with mysqlclient-libs in nonstandard location
Submitted: 8 Sep 2008 17:34 Modified: 12 Nov 2008 14:11
Reporter: Johan Idrén
Status: Closed
Category:Monitoring: Agent Severity:S3 (Non-critical)
Version:2.0.0.7042 OS:Mac OS X (10.5.4)
Assigned to: Jan Kneschke Target Version:2.0 Next Build
Triage: D3 (Medium) / R1 (None/Negligible) / E2 (Low)

[8 Sep 2008 17:34] Johan Idrén
Description:
Having mysqlclient-libs in non-standard location breaks agent 2.0.0.7042 installer with
library not found errors

How to repeat:
Don't have libs in /usr/local/mysql/libs, install 2.0.0.7042 agent on os x

I used
https://update.mysql.com/beta/monitor/2.0.0.7042/agents/mysqlmonitoragent-2.0.0.7042-osx10...

7047 does not exhibit this particular problem.

Suggested fix:
Ship mysqlclient-libs with agent, as mysql might not be installed on server at
installtime or if the agent is to monitor a non-local server.
[8 Sep 2008 21:03] Keith Russell
I'm not sure if this an installer error or not. The requested fix doesn't suggest that. 
If it is an installer error please re-assign to 'Keith'.
"Suggested fix:
Ship mysqlclient-libs with agent, as mysql might not be installed on
server at installtime or if the agent is to monitor a non-local server."
[11 Sep 2008 8:00] Johan Idrén
It's an installer error that prompted me to suggest that we ship the mysqlclient libs with
the agent, as it renders the client somewhat useless if it can't find them, and rather
than add more search paths we should be prepared for a user not having mysqlclient libs
installed as it makes agent installation harder to break.
[11 Sep 2008 17:04] Jan Kneschke
* before .7042 we linked against a static libmysqlclient.
* between .7042 and .7047 we switched to build it fully shared and missed to bundle the
shared libmysqlclient
* from .7047 on we do bundle it
[11 Sep 2008 17:13] Marcos Palacios
Verified fixed in build 2.0.0.7049.
[12 Nov 2008 14:11] Tony Bedford
An entry was added to the 2.0 changelog:

If the MySQL client libraries were located in a non-standard location, the agent
2.0.0.7042 installer failed with a “library not found” error.