Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cargo installation - Permission denied #3375

Open
jiapei100 opened this issue Apr 10, 2024 · 1 comment
Open

cargo installation - Permission denied #3375

jiapei100 opened this issue Apr 10, 2024 · 1 comment
Labels

Comments

@jiapei100
Copy link

Describe the bug

➜  rav1e git:(master) ✗ cargo cinstall --release 
    Finished release [optimized + debuginfo] target(s) in 0.25s
  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 }

To Reproduce
Just trying to compile rav1e.

Expected behavior
compiled

Required Information
Toolchain (if is a build problem):

➜  ~ cargo --version
cargo 1.77.2 (e52e36006 2024-03-26)
➜  ~ rustc --version
rustc 1.77.2 (25ef9e3d8 2024-04-09)
➜  ~ nasm --version
NASM version 2.15.05
➜  ~ 

Version:

[$ rav1e --version](https://github.com/xiph/rav1e/commit/581775d6db70aa3710781c181a6ac7a292366d1b)

Operating system:

➜  ~ uname -a
Linux lvision-P9X79 6.5.0-27-generic #28~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Fri Mar 15 10:51:06 UTC 2 x86_64 x86_64 x86_64 GNU/Linux

Console Output

@jiapei100 jiapei100 added the bug label Apr 10, 2024
@lu-zero
Copy link
Collaborator

lu-zero commented Apr 10, 2024

You possibly are trying to copy files in a location you cannot access with your current user, try to

cargo cinstall --destdir /tmp/staging
sudo cp -a /tmp/staging/* /

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants