28
9
I've got the default OpenSSL 9.8 (Mac OS X 10.6.8) and decided to install the newest version (1.0.1) via MacPorts (sudo port install openssl
).
These are console output of which and whereis commands:
$ whereis openssl
/usr/bin/openssl
(this is default system's one)
$which openssl
/opt/local/bin/openssl
(this is installed via MacPorts)
$ openssl version
OpenSSL 1.0.1c 10 May 2012
(there is mac port's version in PATH)
Why are different paths returned for whereis
and which
, and is this okay? Is there any way to get equal results?
Thanks, you've highlited that "The whereis utility checks the standard binary directories" - that is the answer! couldn't vote up for you answer cause of small reputation(( – jctim – 2012-05-29T09:56:27.700
Don't worry, you'll surely get more reputation soon. Welcome to Super User! :) – slhck – 2012-05-29T10:37:19.007
Have the same problem with psql on OS X - unfortunately user.cs_path is not writable. Getting closer to my solution though, thanks for such a useful answer! – user208769 – 2012-06-25T15:26:04.153