Nicolas Williams wrote: > On Thu, Feb 12, 2009 at 12:09:56PM -0800, George Vasick wrote: >> I just noticed LSARC-ext at Sun.COM was not copied on this thread >> originated by Marc's reply on the 7th. >> >> Marc originally raised the following question: >> >>> usr/i386-pc-solaris2.11 >> Is this strange path necessary? Can't the subdirectories (bin and lib) >> go directly to /usr? >> >> The answer to the first part is no. The commands in >> usr/i386-pc-solaris2.11/bin cannot be moved to /usr/bin since they >> conflict with existing Solaris commands. It is potentially possible to >> eliminate them, however, since they are duplicates of commands already >> installed in /usr/bin and /usr/gnu/bin. > > If those commands shouldn't be in $PATH then just put them in a > sub-directory of /usr/lib.
It is not a PATH conflict, it is a name conflict with the individual commands. They cannot be located in the same directory as the Solaris commands. The set of commands in question is addr2line ar as c++filt gprof ld nm objcopy objdump ranlib readelf size strings strip Note, g-prefixed versions are installed in /usr/bin. Plain versions of the commands are installed in a machine/architecture dependent path and, in the case of Solaris, /usr/gnu/bin. George
