linux升级gcc_linux 多线程 下载 aria2
发布日期:2021-06-24 13:39:45
浏览次数:2
分类:技术文章
本文共 2404 字,大约阅读时间需要 8 分钟。
aria2c -x 16 [url]
1 编译安装
升级 gcc
Aria2 1.17.1以上版本要求gcc >= 4.8.3 or clang >= 3.4
以下选择编译升级gcc(需要3个小时左右)可以选择其他方式升级gcc https://www.vpser.net/manage/centos-6-upgrade-gcc.htmlwget http://ftp.tsukuba.wide.ad.jp/software/gcc/releases/gcc-5.2.0/gcc-5.2.0.tar.bz2tar -xf gcc-5.2.0.tar.bz2cd gcc-5.2.0./contrib/download_prerequisitesmkdir gcc-tempcd gcc-temp../configure --enable-checking=release --enable-languages=c,c++ --disable-multilibmake -j4make installls /usr/local/bin | grep gcc/usr/sbin/update-alternatives --install /usr/bin/gcc gcc /usr/local/bin/x86_64-unknown-linux-gnu-gcc-5.2.0 52gcc -vfind / -name "libstdc++.so*"cp /root/gcc-5.2.0/gcc-temp/stage1-x86_64-unknown-linux-gnu/libstdc++-v3/src/.libs/libstdc++.so.6.0.21 /usr/lib64cd /usr/lib64rm -rf libstdc++.so.6ln -s libstdc++.so.6.0.21 libstdc++.so.6strings /usr/lib64/libstdc++.so.6 | grep GLIBC
安装clang
wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-6.repoyum -y install clang
安装Aria2
最新地址下载 https://github.com/aria2/aria2/releases
wget https://github.com/aria2/aria2/releases/download/release-1.35.0/aria2-1.35.0.tar.bz2tar xf aria2-1.35.0.tar.bz2cd aria2-1.35.0./configuremake -j4make install
yum 安装(版本过低)
yum 安装 rpmforge-release 源
yum -y install http://ftp.tu-chemnitz.de/pub/linux/dag/redhat/el6/en/x86_64/rpmforge/RPMS/rpmforge-release-0.5.3-1.el6.rf.x86_64.rpmyum -y install aria2如下报错
06/05 13:49:16 [ERROR] CUID#6 - Download aborted. URI=https://cdn.mysql.com//Downloads/MySQL-8.0/mysql-community-server-8.0.16-2.el6.x86_64.rpmException: [AbstractCommand.cc:304] errorCode=1 URI=https://cdn.mysql.com//Downloads/MySQL-8.0/mysql-community-server-8.0.16-2.el6.x86_64.rpm -> [SocketCore.cc:1128] errorCode=1 Certificate verification failed. Cause: `not signed by known authorities or invalid' `issuer is not known' See --ca-certificate and --check-certificate option.06/05 13:49:16 [NOTICE] Download GID#b9691ccc08bcb68f not complete: Download Results:gid |stat|avg speed |path/URI======+====+===========+=======================================================b9691c|ERR | 0B/s|https://cdn.mysql.com//Downloads/MySQL-8.0/mysql-community-server-8.0.16-2.el6.x86_64.rpmStatus Legend:(ERR):error occurred.aria2 will resume download if the transfer is restarted.If there are any errors, then see the log file. See '-l' option in help/man page for details.
解决方案
aria2c -x 10 --check-certificate=false [url]
转载地址:https://blog.csdn.net/weixin_33220713/article/details/112072434 如侵犯您的版权,请留言回复原文章的地址,我们会给您删除此文章,给您带来不便请您谅解!
发表评论
最新留言
初次前来,多多关照!
[***.217.46.12]2024年04月03日 16时54分32秒
关于作者
喝酒易醉,品茶养心,人生如梦,品茶悟道,何以解忧?唯有杜康!
-- 愿君每日到此一游!
推荐文章
图的基础(C++)
2019-04-28
SAP 上线切换
2019-04-28
OA软件实施中三个不能做的
2019-04-28
SAP中的记忆功能没有了,怎么办?
2019-04-28
不将就
2019-04-28
财务审批流程都有哪些步骤呢?
2019-04-28
SAP用户增强总结-采购订单建立增加客户数据增强示例
2019-04-28
rufus制作u盘启动
2019-04-28
dell r340安装window和linux
2019-04-28
OGG-05673 CSN-based duplicate suppression is disabled because there is no checkpoint table for this
2019-04-28
19c多租户ogg微服务命令行查看参考
2019-04-28
【Python】【Python语言】Python3.7.2的关键字与保留字
2019-04-28
拆解老古董:一台60年代的双矿石收音机
2019-04-28
美敦力公开呼吸机,开发环境为Keil + ST10F276(STM32前身)
2019-04-28
TIOBE 4 月榜单 C 和 JAVA 几乎持平
2019-04-28
讲真,WiFi 6到底6在哪儿
2019-04-28
简单上手GDB调试
2019-04-28
ARMv8-M相比ARMv7-M架构优势在哪里?
2019-04-28
PCB差分信号设计中的3个常见误区
2019-04-28