rav1e
rav1e copied to clipboard
Permission denied (os error 13)), exit_code: 101 }
Describe the bug
Successfully build rav1e with cargo build --release, but failed to install with command cargo cinstall --release. And sudo cargo cinstall --release tells me
➜ rav1e git:(master) sudo cargo install --release
error: no override and no default toolchain set
To Reproduce Just build and install
Expected behavior
Successfully built already, but how to install a package with sudo cargo cinstall --release successfully ??
Required Information Toolchain (if is a build problem):
➜ ~ cargo --version
cargo 1.60.0 (d1fd9fe 2022-03-01)
➜ ~ rustc --version
rustc 1.60.0 (7737e0b5c 2022-04-04)
➜ ~ nasm --version
NASM version 2.15.05
Version:
➜ rav1e git:(master) ./target/release/rav1e --version
rav1e 0.5.0 (p20210601-215-gb5c76736) (release)
Operating system:
➜ ~ uname -r
5.15.0-27-generic
➜ ~ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 22.04 LTS
Release: 22.04
Codename: jammy
Console Output Please paste the console output below if it is relevant,
Caused by: Permission denied (os error 13)), exit_code: 101 }
......
➜ rav1e git:(master) sudo cargo install --release error: no override and no default toolchain set
Can anybody give me a hand?
Your rust setup seems incomplete and you seem to not have the right permissions, to install on /usr/local.
You may use something along the lines of
D=/tmp/rav1e-install
cargo cinstall --release --destdir=${D}
sudo cp -a ${D}/* /
Running into this currently
install in a user-writable path and copy it over the system using sudo and either cp -a or install depending on your preferences.