win10安装linux的gcc
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年也没有动电脑了,好多东西都忘记了
字数不够,我在水字数
哎,今天白嫖龙门派的大礼包,刚赶上道教养生的开店仪式,吃喝拿,吃东西,喝茶,拿书
毫无违和感,今天占的便宜要等几天去还回去
天道轮回
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 物流快递公司核心技术能力-地址解析分单基础技术分享
· .NET 10首个预览版发布:重大改进与新特性概览!
· AI与.NET技术实操系列(二):开始使用ML.NET
· 单线程的Redis速度为什么快?
· Pantheons:用 TypeScript 打造主流大模型对话的一站式集成库