snarkOS icon indicating copy to clipboard operation
snarkOS copied to clipboard

[Bug] cargo install --path . not working properly

Open rchojn opened this issue 2 years ago • 2 comments

🐛 Bug Report

Steps to Reproduce

cargo install --path .

Installing snarkos v2.0.2 (/home/users/chojnar1/Desktop/personal/crypto/snarkOS) Updating crates.io index error: failed to compile snarkos v2.0.2 (/home/users/chojnar1/Desktop/personal/crypto/snarkOS), intermediate artifacts can be found at /home/users/chojnar1/Desktop/personal/crypto/snarkOS/target

Caused by: failed to open: /home/users/chojnar1/Desktop/personal/crypto/snarkOS/target/release/.cargo-lock

Caused by: Permission denied (os error 13)```

Your Environment

rustc --version
rustc 1.65.0 (897e37553 2022-11-02)

Distributor ID:	Ubuntu
Description:	Ubuntu 20.04.5 LTS
Release:	20.04
Codename:	focal

rchojn avatar Dec 05 '22 14:12 rchojn

run: ./build_ubuntu.sh

error: failed to compile snarkos v2.0.2 (/root/snarkOS), intermediate artifacts can be found at /root/snarkOS/target

hostnamectl: Icon name: computer

    Operating System: Ubuntu 20.04.2 LTS
    Kernel: Linux 5.4.0-65-generic
    Architecture: x86-64

lc12345670 avatar Dec 06 '22 08:12 lc12345670

Do you have the write permission of your /snarkOS folder? When you run following command under the same path with the /snarkOS

$ls -l ../

What's your output? Try to run

sudo chown -R $(whoami) /home/users/chojnar1/Desktop/personal/crypto/snarkOS/

?

NoPointExc avatar Dec 09 '22 06:12 NoPointExc

Closing due to inactivity. Please feel free to reopen if the issue persists, and provide the extra requested information (it does seem like it's an issue with your local user rights).

ljedrz avatar Dec 23 '22 09:12 ljedrz