[smartmontools-support] Compiled 7.2 from source, but smartctl fails?
Christian Franke
Christian.Franke at t-online.de
Mon Jul 12 18:55:36 CEST 2021
Schorschi Decker wrote:
>
> The issue is not where the binary actually is, found it... the issue
> is the documentation is wrong. The instructions state that the binary
> will be placed at /usr/local/bin.
>
No.
> But that is not the case.
>
Yes, as it is /usr/local/sbin:
$ ./configure && make && sudo make install
...
/bin/mkdir -p '/usr/local/sbin'
/usr/bin/install -c smartctl smartd '/usr/local/sbin'
/bin/mkdir -p '/usr/local/sbin'
/usr/bin/install -c update-smart-drivedb '/usr/local/sbin'
...
> Please update the documentation.
>
Why?
$ cat INSTALL
...
The following files are installed if ./configure has no options:
/usr/local/sbin/smartctl ...
/usr/local/sbin/smartd ...
/usr/local/sbin/update-smart-drivedb ...
...
> Also, the unit file for systemd, defaults to the wrong directory as
> well. It should default to /usr/local/bin, if in fact that is the
> documented and actual default location of a make and make install
> sequence with no change of the directory destination....
>
The current ./configure heuristics uses the result of
$ pkg-config --variable=systemdsystemunitdir systemd
and prepends the prefix. This results in /usr/local/lib/systemd/system
on Debian/Ubuntu.
Use the '--with-systemdsystemunitdir=DIR' configure option to change this.
Regards,
Christian
More information about the Smartmontools-support
mailing list