snarkOS
snarkOS copied to clipboard
[Bug] cargo install --path . not working properly
🐛 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
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
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/
?
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).