Gr-smart meters Setup on other distros: Difference between revisions

Arch: show equivalent bash commands
Arch: added detail about the proper use of sudo if required.
Line 49: Line 49:
popd
popd
</syntaxhighlight>
</syntaxhighlight>
Note too, that you may need to use <code>sudo</code> to install.  If that's the case, you can replace this:
<syntaxhighlight lang="bash">
cmake -B build && cmake --build build -t install
</syntaxhighlight>
with this:
<syntaxhighlight lang="bash">
cmake -B build
cmake --build build
sudo cmake --build build -t install
</syntaxhighlight>
It's recommended to build an ordinary user and only use <code>sudo</code> for installing, as shown above. To speed up compiling on multicore machines, you can append <code>-j</code> to build commands as in <code>cmake --build build -j</code>.