Error Executing Zend Guard 7 CLI Binaries on OS X

Follow

Applies To:
Zend Guard 7
Apple OS X

Summary
With Zend Guard 7 on Apple OS X, there are multiple locations of CLI binaries.

There is a set of wrappers at "/Applications/Zend Guard 7.app/Contents/Resources/bin".

Those wrappers are calling target binaries at "/Applications/Zend Guard 7.app/Contents/Bundles/plugins/com.zend.guard.core.resources.macosx_7.0.0.201503261229/resources".

Problem
When you run the wrapper scripts, they will not parse the location of the target binaries properly.

Error extract:
/Applications/Zend Guard 7.app/Contents/Resources/bin/../plugins//resources/zendenc55: No such file or directory

Workaround
One way of fixing is to edit all the wrapper scripts and fixing the resolution of the target path.

However, a shorter way is simply to use target Guard CLI binaries as the GUI does,
by simply adding them to the system or user $PATH:

$ export PATH="$PATH:/Applications/Zend Guard 7.app/Contents/Bundles/plugins/com.zend.guard.core.resources.macosx_7.0.0.201503261229/resources/"

To make this PATH permanent, add it to ~/.bashrc or system wide environment.

Tags: guard, mac, osx, binaries, cli, error, path
Have more questions? Submit a request

Comments

Powered by Zendesk