笔记笔记
  • Home
  • AI&ML
  • Example
  • Zoo
  • 关于
⌘ K
Ubuntu
NVIDIA
Python 环境
systemctl
最后更新时间:
Copyright © 2023-2024 | Powered by dumi | GuoDapeng | 冀ICP备20004032号-1 | 冀公网安备 冀公网安备 13024002000293号

TABLE OF CONTENTS

‌
‌
‌
‌

Ubuntu - 返回

宝塔

安装完宝塔后需要安装openssh-server才能打开ssh

sudo apt install openssh-server

C++20

Ubuntu 22.04.4 LTS x86_64

sudo apt install build-essential
# 添加源
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
# 查询是不是有 gcc-13
apt search gcc-13
# 安装 gcc-13 和 g++-13
sudo apt install gcc-13
sudo apt install g++-13
# 配置
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-11 11
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-13 13
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-11 11
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-13 13
# 查看版本
gcc -v
g++ -v