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

Incorrect command order in build-llvm-11.sh #3

Open
jf-li00 opened this issue Jan 29, 2024 · 0 comments
Open

Incorrect command order in build-llvm-11.sh #3

jf-li00 opened this issue Jan 29, 2024 · 0 comments

Comments

@jf-li00
Copy link

jf-li00 commented Jan 29, 2024

I've noticed the GPG key for the LLVM repository is added after running sudo apt update. This should be done before sudo apt update to avoid warnings about unauthenticated sources.

Here's a corrected version of this script:

#!/bin/bash

echo deb http://apt.llvm.org/bionic/ llvm-toolchain-bionic-11 main | sudo tee -a /etc/apt/sources.list
echo deb-src http://apt.llvm.org/bionic/ llvm-toolchain-bionic-11 main | sudo tee -a /etc/apt/sources.list
wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add -
sudo apt update
sudo apt upgrade
sudo apt install clang-11 llvm-11 llvm-11-dev lldb-11 lld-11 -y
sudo apt install libc++-11-dev libc++abi-11-dev -y
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

Successfully merging a pull request may close this issue.

1 participant