$ which doxygen
/home/gauthier/bin/doxygen
$ $(which doxygen) -v
1.8.13
$ doxygen -v
1.8.11 # <- ???
$ doxygen
error: Doxyfile not found and no input file specified!
Doxygen version 1.8.11
Copyright Dimitri van Heesch 1997-2015
# ... doxygen's help
$ type -a doxygen
doxygen is /home/gauthier/bin/doxygen
doxygen is /home/gauthier/bin/doxygen
doxygen is /usr/bin/doxygen
I'm trying to setup a new version of doxygen, to use in parallel to the one already on my machine.
I downloaded binaries, placed them somewhere in /opt, and created a symlink to them in my ~/bin, which is in my PATH.
As seen in the terminal paste above, running doxygen does not seem to call to the same binary found by which doxygen.
What might be going on?
type doxygen? – ctrl-alt-delor Aug 16 '17 at 11:04type -ato see all resolutions of a command...just in case there are any like-named aliases, functions, etc. – B Layer Aug 16 '17 at 11:07type -a doxygen. There's a double entry, I wonder why (but probably not a problem, I guess?) – Gauthier Aug 16 '17 at 11:11hash -t doxygen? – Eric Renouf Aug 16 '17 at 11:13/usr/bin/doxygen. – Gauthier Aug 16 '17 at 11:14~/bintwice, yes. I use the same.bashrcon different systems, it seems that one (Ubuntu) adds~/binby itself, others don't. I'm not sure where else it's added, I have it done only once in my.bashrc. – Gauthier Aug 16 '17 at 11:16~/.profile, which was created by default. Apparently, Debian and brethren do this. Since I mean to use my~/.bashrcin other systems, I commented it out in.profile. – Gauthier Aug 16 '17 at 11:41