Problem with running QnA on Mac

I get the following error when I try to run QnA on the Mac:

Missing library: Dynamic library failed to load (/Users/<user>/QnA/libBEScrypto.dylib): dlopen(/Users/<user>/QnA/libBEScrypto.dylib, 6): image not found

It seems like it is trying to load libraries from the current working directory instead of it’s own directory.

If instead I use the full path, then it works: /usr/local/bin/QnA

Seems like this could be fixed.

Related: https://github.com/autopkg/hansen-m-recipes/issues/30

Did you move it out of the agent package (its been in there since one of the 9.2 releases)

copied from the agent package, not moved, but otherwise yes.

I’d suggest using a symlink to the installed location rather than this method then. The dylib tries to load from the executable location or the current directory so not sure if you moved all the components or not (though it looks like it did). We also don’t guarantee that dependencies won’t change as the QnA we now provide is made to run from its new home.

1 Like

If it looks in the executable location, then I don’t understand why it isn’t working.

The idea of this is to use QnA on machines where the BES Agent isn’t necessarily installed. It is being used to validate relevance and similar things during automatic creation of BigFix content. It works fine for that purpose because it is called using the exact path. The issue arises when trying to open QnA in the terminal in a path other than the one QnA is in.

I’ll try moving things there on a test machine and see if I encounter the same problems. The code definitely should work the way you are using it but I’m not sure if it needs to be in an app container.

This happens 100% I presume or does it work on some endpoints?

1 Like

I believe it happens on 100% of the endpoints that have it in this location, but I only ever experience it on a few machines I actually try to run QnA by hand on when placed in this location, which is relatively rare.