I am using the Zend Framework. Lately I installed the last version of the ZF. I try to use zend tool from a terminal in ubuntu.
When I do ZF show version I still see version 1.9.6. How can I make sure that the ZF
command will use the latest version?
I think I have once added the ZF to my terminal profile but I don't know how to change it.
Can anyone help me?
This is not a bash issue. This sounds like a path issue to me. You didn't mention how you installed version 1.9.6 or how you installed the newest version. So I can only take a guess as to what's going on. But I'm guessing that both versions are still installed to different paths and 1.9.6 is being found first due to how your path is setup.
You can see your current path by running
echo $PATH
. And you can tell which ZF command is being run by runningwhich ZF
. So from there if you know the path to the binary you wish to run it's just a matter of fixing your PATH. I would also suggest un-installing the older version if it's not needed so that it doesn't cause you any more issues.