Today when I’m applying some scripts on Solaris 11Express nodes, a interesting error comeup,
1 |
-bash: whereis: command not found |
As on Solaris 10, we use cmd whereis(/usr/ucb/whereis) as a standard component.
(On Linux, it’s also a part of the util-linux-ng package )
Solaris 11X doesn’t include this command in default set, so turn to documents for help:
<Oracle Solaris 11 ISV Adoption Guide>
1 2 3 4 5 6 7 8 9 |
Changes the Directory to /usr/ucb For a live CD installation, the path /usr/ucb does not exist by default. It can be added, along with many of the standard /usr/ucb tools by installing the 'compatibility/ucb' package from the repository. Note though that support for legacy plotters has been removed and this sees the removal of the following files (PSARC/2009/540): ... ... Other than these changes all of the commands available in /usr/ucb in Oracle Solaris 10 continue to be available in Oracle Solaris 11 through the compatibility/ucb package. |
Very lucky the command whereis is the rest for kept in compatibility/ucb package as optional.
But it’s no longer suggested to use such cmds in further SOLs, I finally gave up refresh the toolkits.
[Refrence:]
Oracle Solaris 11 ISV Adoption Guide
Solaris 11 Express Changes: Where is /usr/ucb ?
PSARC/2009/540*
*this arc shows the discussion on some port specific /usr/ucb commands,
the abandon of those codes speed up the far and away of those BSD like code.
From this point, SOL’s running faster than Linux….