rav1e icon indicating copy to clipboard operation
rav1e copied to clipboard

Permission denied (os error 13)), exit_code: 101 }

Open jiapei100 opened this issue 3 years ago • 3 comments

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,

➜ rav1e git:(master) cargo cinstall --release Finished release [optimized + debuginfo] target(s) in 0.28s Installing pkg-config file Error: CliError { error: Some(failed to copy `....../rav1e/target/x86_64-unknown-linux-gnu/release/rav1e.pc` to `/usr/local/lib/pkgconfig/rav1e.pc`

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?

jiapei100 avatar May 01 '22 05:05 jiapei100

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}/* /

lu-zero avatar May 01 '22 06:05 lu-zero

Running into this currently

FCLC avatar Jun 18 '22 19:06 FCLC

install in a user-writable path and copy it over the system using sudo and either cp -a or install depending on your preferences.

lu-zero avatar Jun 18 '22 19:06 lu-zero