Bug #45833 | Windows proxy does not find chassis.dll | ||
---|---|---|---|
Submitted: | 29 Jun 2009 16:53 | Modified: | 17 Aug 2009 15:17 |
Reporter: | Diego Medina | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Proxy: Core | Severity: | S1 (Critical) |
Version: | 0.7.2 | OS: | Windows (XP) |
Assigned to: | Jan Kneschke | CPU Architecture: | Any |
[29 Jun 2009 16:53]
Diego Medina
[29 Jun 2009 18:34]
Enterprise Tools JIRA Robot
Diego Medina writes: I tried setting $ set LUA_CPATH="!/?.dll" and then start the proxy from this same terminal. The problem is that it looks for chassis.dll in ./bin/proxy/chassis.dll but it is on ./bin/chassis.dll So I changed the lua script to have require("chassis") and I did $ set LUA_CPATH=!/?.dll and then it all worked. Note that we have some example files that have require("proxy.commands") among others, so, it would be better if we create the proxy folder to hold the dll files See ./share/doc/mysql-proxy/active-queries.lua it has commands = require("proxy.commands")
[30 Jun 2009 14:11]
Jan Kneschke
The plugins are now prefixed with "plugin-" in the bin/ folder, the lua c-based modules are prefixed with lua- and are also in the bin/ folder to make windows find them. The internals know about this and hide it automaticly from the user. The pluginname in the config file is still "proxy" and the require() in lua still looks for "chassis" or "lfs".
[30 Jun 2009 15:22]
Enterprise Tools JIRA Robot
Diego Medina writes: Verified fixed on 0.7.2
[17 Aug 2009 15:17]
MC Brown
A note has been added to the 0.7.2 changelog: When using MySQL Proxy on Windows, the required modules may not be found properly during initialization. The core code has now been updated to find the components correctly, and the Lua-based C modules are prefixed with lua- and Lua plugins with plugin-.