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

README instructions for Clang on Linux are causing issue installing #340

Closed
cdnsteve opened this issue Nov 30, 2023 · 1 comment
Closed

Comments

@cdnsteve
Copy link

Describe the bug

When following the README instructions for Clang installation on Linux, it does not suggest running the command as sudo.

Running the command as described in the README results in an error noted below:
~/dev/rusty-kaspa$ apt-get install clang-format clang-tidy clang-tools clang clangd libc++-dev libc++1 libc++abi-dev libc++abi1 libclang-dev libclang1 liblldb-dev libllvm-ocaml-dev libomp-dev libomp5 lld lldb llvm-dev llvm-runtime llvm python3-clang E: Could not open lock file /var/lib/dpkg/lock-frontend - open (13: Permission denied) E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), are you root?

Running the same command under sudo resolves this issue.

To Reproduce
Steps to reproduce the behavior:

  1. Follow steps under the README for Clang Linux install here: https://github.com/kaspanet/rusty-kaspa/blob/master/README.md?plain=1#L15
  2. Run the command on WSL Linux apt-get install clang-format clang-tidy clang-tools clang clangd libc++-dev libc++1 libc++abi-dev libc++abi1 libclang-dev libclang1 liblldb-dev libllvm-ocaml-dev libomp-dev libomp5 lld lldb llvm-dev llvm-runtime llvm python3-clang
  3. Results in Permission denied, are you root?

Expected behavior
The command should install the required libraries.

Desktop (please complete the following information):

  • OS: ~/dev/rusty-kaspa$ cat /etc/lsb-release
    DISTRIB_ID=Ubuntu
    DISTRIB_RELEASE=20.04
    DISTRIB_CODENAME=focal
    DISTRIB_DESCRIPTION="Ubuntu 20.04.5 LTS"
  • Kaspad version: rusty-kaspa main branch
@coderofstuff
Copy link
Collaborator

Fixed by #321

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

No branches or pull requests

2 participants