Skip to contentSkip to conversation

configure --prefix default

DISCUSSION Bernhard Voelker 2 participants 2 messages Jan 19, 2012 Util-Linux package

lore
Share & tools
lore
#0 lore raw

Usually, software built via configure && make && make install uses /usr/local as default for the prefix. Is there any reason for util-linux not to use the same? If someone relies on /usr/local as the default, then she overwrites the native version of the files of his distribution.

BTW: configure --help states that it would use /usr as default prefix:

--prefix=PREFIX install architecture-independent files in PREFIX

                          [/usr]

... but in fact e.g. chcpu is installed as "/sbin/chcpu" (i.e. without /usr). This doesn't sound correct.

Have a nice day,
Berny

#1 lore raw
Quoted 11 lines · On Thursday 19 January 2012 06:27:09 Bernhard Voelker wrote:

Usually, software built via configure && make && make install uses /usr/local as default for the prefix. Is there any reason for util-linux not to use the same?

BTW: configure --help states that it would use /usr as default prefix:

--prefix=PREFIX install architecture-independent files in PREFIX

                          [/usr]

... but in fact e.g. chcpu is installed as "/sbin/chcpu" (i.e. without /usr). This doesn't sound correct.

look at the configure output. if you don't specify a value yourself, the default paths are tweaked to be a more natural install with some in / and some in /usr.

Quoted 2 lines

If someone relies on /usr/local as the default, then
she overwrites the native version of the files of his distribution.

that's a PEBKAC issue. anyone blindly doing make install is doomed to killing their machine.
-mike