This forum is no longer active. Please post your questions to our new community site
Compiling Zabbix against MAMPStack
|
|
Greetings. I successfully compiled Zabbix (www.zabbix.com) against MAPPStack. However, when I try to run it, it fails to find a dynamic library for PostgreSQL. Mostly following the directions at http://lukecyca.com/2008/09/21/howto-install-zabbix-16-on-mac-os-x-105/ (although I am building it on Tiger Server), I configured it thusly:
It builds and installs fine. When I try to run it, I get this:
The output of /Applications/mappstack-1.1-2/postgresql/bin/pg_config
I looked through config.log in the zabbix directories, but could find no references to bitnami (although certainly there are references to pg_config). How do I recompile to avoid this, or otherwise resolve the issue? Thanks, Note: I edited the post to use blockquotes, but don’t know how to pre-format the text inside. |
|
|
Hi, it is not necessary to recompile. The problem is that the “zabbix_server” binary file can not found the postgresql libraries. Try the following:
I hope it helps. |
|
|
Thank you, beltran. I’m afraid that even after setting up the environment in that way, the error is unchanged. |
|
|
Interesting. I’m looking through config.log again, and it has references to /bitnami/mappstack/output/common/include (and /lib) all over the place. I don’t know if it wasn’t there when I searched before, or if I just missed it somehow. I’m trying to see if I can track down where it came from. Also, if I put a symlink from the dylib file zabbix is looking for to the real file, it works, but I don’t particularly want to have a deep /bitnami path with only a single symlink in it on my server if I can avoid it. [Edit: It turns out that the bitnami path is only there if you start compiling after running use_mappstack.sh. It is not there otherwise.] |
|
|
Hi, The /bitnami folder is the path where we compiled the components. It should be enough defining the environment variables: DYLD_LIBRARY_PATH and others. |
|
|
I learned that to see the libraries that are linked against, one can use:
Sure enough, it shows an entry starting with /bitnami. I did play with DYLD_LIBRARY_PATH (and others). Trying it again, though, it appears to have worked:
Interesting. I like that better than a symlink; here is hoping it is the end of my problem. |
|
|
Yes, that is exactly that I want to explain you but I forget that “use_mampstack.sh” only change the PATH environment. Try the following. Instead of running “use_mampstack.sh” you can load all environment variables from the “scripts/setenv.sh” file. As you can check this file contains all the environment variables for your Stack.
Of course this is a better solution than a symlink, this is the method that we use to create independent and relocatable Stacks. Cheers. |
|
|
That worked nicely! Thank you, beltran. |

