Re: [PATCH V4 0/8] libgpiod: Add Rust bindings

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Bartosz,

On Fri, Jul 15, 2022 at 9:08 PM Bartosz Golaszewski <brgl@xxxxxxxx> wrote:
>
> Rust noob here: I have my cargo installed using rustup for my local
> user but I can't run it via sudo or as root (to run tests) because I'm
> seeing this:
>
>     error: no override and no default toolchain set
>
> What is the right way to use cargo as root? I'm hesitant to just curl
> a random script and pipe it to shell as root honestly.

If by "random script" you mean the rustup installer, you can always
download rustup on its own, or even directly a Rust "standalone
installer", which are signed and do not require rustup, from:

    https://forge.rust-lang.org/infra/other-installation-methods.html#standalone

However, since it appears that you have rustup installed, maybe you
don't mean that. In any case, if rustup is installed, maybe you can
try something like:

    rustup default stable

or similar to install a toolchain.

Cheers,
Miguel



[Index of Archives]     [Linux SPI]     [Linux Kernel]     [Linux ARM (vger)]     [Linux ARM MSM]     [Linux Omap]     [Linux Arm]     [Linux Tegra]     [Fedora ARM]     [Linux for Samsung SOC]     [eCos]     [Linux Fastboot]     [Gcc Help]     [Git]     [DCCP]     [IETF Announce]     [Security]     [Linux MIPS]     [Yosemite Campsites]

  Powered by Linux