mysy2下载gcc 过程比较艰苦,2024年秋冬讲课,被linux毒打了3天
pacman -S mingw-w64-ucrt-x86_64-gcc 这个一次成功,不行继续接大招
实在不行安装vs
visualstudio.com 补了gcc的工具链 大小1.5g
liunx改名字 改主机名字
sudo hostnamectl set-hostname <newhostname>
换源网站 help.mirrors.cernet.edu.cn
直接换源sudo apt install build-essential
ubuntu 20.04 LTS (focal) 配置如下
deb https://mirrors.aliyun.com/ubuntu/ focal main restricted universe multiverse
deb-src https://mirrors.aliyun.com/ubuntu/ focal main restricted universe multiverse
deb https://mirrors.aliyun.com/ubuntu/ focal-security main restricted universe multiverse
deb-src https://mirrors.aliyun.com/ubuntu/ focal-security main restricted universe multiverse
deb https://mirrors.aliyun.com/ubuntu/ focal-updates main restricted universe multiverse
deb-src https://mirrors.aliyun.com/ubuntu/ focal-updates main restricted universe multiverse
deb https://mirrors.aliyun.com/ubuntu/ focal-proposed main restricted universe multiverse
deb-src https://mirrors.aliyun.com/ubuntu/ focal-proposed main restricted universe multiverse
deb https://mirrors.aliyun.com/ubuntu/ focal-backports main restricted universe multiverse
deb-src https://mirrors.aliyun.com/ubuntu/ focal-backports main restricted universe multiverse
更换方法
1.备份
sudo cp /etc/apt/sources.list /etc/apt/sources.list.back
2.编辑
打开vim编辑器,把sources.list文件中所有的deb文件全部注释掉或者删除掉,然后把上面给的国内镜像复制去就可以。
vim /etc/apt/sources.list
3.更新
sudo apt update
sudo apt upgrade
cargo new proj && cd proj && cargo run
今天刚回来,2年也没有动电脑了,好多东西都忘记了
字数不够,我在水字数
哎,今天白嫖龙门派的大礼包,刚赶上道教养生的开店仪式,吃喝拿,吃东西,喝茶,拿书
毫无违和感,今天占的便宜要等几天去还回去
天道轮回