Skip to content

Instantly share code, notes, and snippets.

@zhangyuan
Last active May 9, 2023 13:45
Show Gist options
  • Save zhangyuan/a079a68f4bb039fc1c73a39516b8a8b3 to your computer and use it in GitHub Desktop.
Save zhangyuan/a079a68f4bb039fc1c73a39516b8a8b3 to your computer and use it in GitHub Desktop.

Setup dev env on Ubuntu 22.04

Update sources

deb https://mirrors.163.com/ubuntu/ jammy main restricted universe multiverse
deb https://mirrors.163.com/ubuntu/ jammy-security main restricted universe multiverse
deb https://mirrors.163.com/ubuntu/ jammy-updates main restricted universe multiverse
deb https://mirrors.163.com/ubuntu/ jammy-proposed main restricted universe multiverse
deb https://mirrors.163.com/ubuntu/ jammy-backports main restricted universe multiverse
deb-src https://mirrors.163.com/ubuntu/ jammy main restricted universe multiverse
deb-src https://mirrors.163.com/ubuntu/ jammy-security main restricted universe multiverse
deb-src https://mirrors.163.com/ubuntu/ jammy-updates main restricted universe multiverse
deb-src https://mirrors.163.com/ubuntu/ jammy-proposed main restricted universe multiverse
deb-src https://mirrors.163.com/ubuntu/ jammy-backports main restricted universe multiverse

Install packages

sudo apt-get install -y software-properties-common make build-essential libssl-dev zlib1g-dev libbz2-dev libreadline-dev libsqlite3-dev wget curl llvm libncurses5-dev libncursesw5-dev xz-utils tk-dev libffi-dev openssl libssl-dev openssh-client openssh-server liblzma-dev cmake protobuf-compiler libprotoc-dev gfortran libsndfile1-dev libopenblas-dev  pkg-config libopenblas64-dev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment