linux編譯安裝aria2

2022-07-21 19:06:15 字數 3129 閱讀 4101

[root@192-168-7-77 ~]# wget 

192-168-7-77 ~]# yum -y install

bzip2

[root@

192-168-7-77 ~]# bzip2 -d aria2-1.33.1.tar

.bz2

[root@

192-168-7-77 ~]# tar xf aria2-1.33.1.tar

[root@

192-168-7-77 ~]# cd aria2-1.33.1/[root@

192-168-7-77 ~/aria2-1.33.1]# ./configure --prefix=/usr/local/aria2

[root@

192-168-7-77 ~/aria2-1.33.1]# make && make

install

[root@

192-168-7-77 ~]# tail -1 /etc/profile

export path=$path:/usr/local/aria2/bin

[root@

192-168-7-77 ~]# source /etc/profile

[root@192-168-7-77 ~/2]# tar -jxv -f aria2-1.33.1.tar

.bz2

tar (child): bzip2: cannot exec: no such file

or directory

tar(child): error is not recoverable: exiting now

tar: child returned status 2

tar: error is not recoverable: exiting now

# gcc-c++版本過底,需要gcc >= 4.8.3

[root@

192-168-7-77 ~/2/aria2-1.33.1]# ./configure --prefix=/usr/local/aria2

checking

forpkg-config... /usr/bin/pkg-config

checking

pkg-config is at least version 0.20

... yes

checking whether g++ supports c++11

features by default... no

checking whether g++ supports c++11 features with -std=c++11

... no

checking whether g++ supports c++11 features with -std=c++11 -stdlib=libc++... no

checking whether g++ supports c++11 features with -std=c++0x ... yes

checking whether the c++ compiler supports nullptr... configure: error: in `/usr/local/src/aria2-1.33.1':

configure: error: c++ compiler does not understand nullptr, perhaps c++ compiler is too old. try again with new one (gcc >= 4.8.3 or clang >= 3.4

)see `config.log

'for more details

[root@192-168-7-77 aria2-1.33.1]# rpm -qa | grep

gcc-c++

gcc-c++-4.4.7-17

.el6.x86_64

# 需要將gcc公升級到4.

# 建立乙個目錄供編譯出的檔案存放

[root@

192-168-7-77

gcc-4.8.2]# mkdir

gcc-build-4.8.2

[root@

192-168-7-77

gcc-4.8.2]# cd gcc-build-4.8.2

# 生成makefile檔案

[root@

192-168-7-77

gcc-build-4.8.2]# ../configure -enable-checking=release -enable-languages=c,c++ -disable-multilib

# 編譯(很耗時,-j4對多核處理器的優化)

[root@

192-168-7-77

gcc-build-4.8.2]# make -j4

[root@

192-168-7-77

gcc-build-4.8.2]# make

install

# 驗證是否成功,如果還是顯示原來的版本,則需要重啟系統

[root@

192-168-7-77 ~]# gcc -v

using built-in

specs.

collect_gcc=gcc

target: x86_64-unknown-linux-gnu

configured with: ../configure -enable-checking=release -enable-languages=c,c++ -disable-multilib

thread model: posix

gcc version 4.8.2 (gcc)

Aria2 懶人安裝教程

ui版 web的 ssl tls 加密 需要關閉,然後設定為localhost和6800 配置manual en html aria2c.html 最簡便的方法是直接開啟以上 然後設定主機為localhost會自動連線 命令aria2c aria2c aria2c magnet xt urn bti...

centos安裝aria2及web端

去這個頁面找yum安裝方法 安裝好後 生成配置檔案並編輯mkdir etc aria2 建立目錄vi etc aria2 aria2.conf 建立配置檔案配置檔案內容 使用者名稱 rpc user user 密碼 rpc passwd passwd 上面的認證方式不建議使用,建議使用下面的toke...

在fedora下重新編譯aria2

首先安裝乙個dnf外掛程式,sudo dnf install dnf command versionlock aria2 1.35.0 aria2 1.35.0.tar.xz aria2.spec 1 directory,2 files源 就在aria2 1.35.0的src目錄下,修改他並將其重新...