It looks like you may need to add some env vars; try
You get similar issue if you try to run some ORACLE tools without exporting various env vars first.
Basically you need really to know how that cmd works and its dependencies; shouldn't be too hard.
You could try sourcing your .bashrc and/or .bash_profile (just the relevant parts).
(NB: there may be something being set in /etc/profile & /etc/profile.d/... etc.