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年也没有动电脑了,好多东西都忘记了

字数不够,我在水字数

哎,今天白嫖龙门派的大礼包,刚赶上道教养生的开店仪式,吃喝拿,吃东西,喝茶,拿书

毫无违和感,今天占的便宜要等几天去还回去

天道轮回

相关推荐
KevinRay_1 个月前
【Liunx入门】Liunx软件包管理器
ubantu·liunx·软件包管理
helloKittywz3 个月前
内网学习第6天 liunx定时任务 环境变量和权限配置,以及数据库提权
学习·web安全·网络安全·内网渗透·liunx·权限提升·学习记录
ZZDICT4 个月前
变量赋值中 + 号 - 号 = 号的用法
shell·liunx
ZZDICT4 个月前
MySQL技术点合集
mysql·liunx
ZZDICT5 个月前
续篇——源码部署LAMP环境上线项目——禅道项目
apache·lamp·liunx·禅道项目
彦楠10 个月前
supervisor管理启动重启,Java,Go程序Demo
java·python·golang·jar·liunx
CrazyPixel1 年前
Flask后端开发(二) - 功能实现和项目总结
python·正则表达式·flask·ssh·多线程·开发·re库·文本处理·liunx