大家是怎么在 ubuntu 上面安装新版本的 aria2 的?

2017-04-11 13:32:54 +08:00
 Jafee

按照文档,安装了依赖,编译安装后用的时候 https 的下载链接老是报错, openssl 也装了。

之前添加源 ppa:t-tujikawa/ppa 安装挺好,不过貌似这个源的版本现在也不更新了。

有没有简易一点的方法或者教程推荐一下。

5573 次点击
所在节点    问与答
14 条回复
chust
2017-04-11 13:40:01 +08:00
从 Arch Linux 的源里下载个最新的包,解压,运行(逃
imxieke
2017-04-11 14:14:23 +08:00
@chust 为啥不直接说 Archlinux 欢迎你 ( ̄へ ̄)
EricCartman
2017-04-11 14:43:31 +08:00
自己编译 或者 GitHub 找其他人编译的
chust
2017-04-11 15:00:18 +08:00
@imxieke 用 Arch 得喜欢折腾,我现在不确定对方是否喜欢的情况下很少安利了
imxieke
2017-04-11 15:12:01 +08:00
@chust #4 我这两天遇到个坑不知道什么情况, 就是 通过 pacman 升级 PHP 到最新版
但是 PHP7.1 我这边找不到连接 MYSQL 的驱动(mysql 被抛弃了貌似), PHP7.1 只有 ODBC 驱动 死活连不上 请问你知道咋回事不?
chust
2017-04-11 15:25:39 +08:00
@imxieke php 7 里边删除了 MySQL 驱动,应该是要用 mysqli 或者 pdo_mysql
imxieke
2017-04-11 15:30:24 +08:00
@chust 没有这两个软件 找不到 仓库里旧版本软件也找不到了 aur 里找的 php 56 装上凑活用的
chust
2017-04-11 15:40:33 +08:00
@imxieke #7 不需要安装啊, arch 的 php 包里就有这两个了,直接在 php.ini 里启用就行啦
msg7086
2017-04-11 15:43:33 +08:00
简易一点的方法不就是不要用 Ubuntu 吗?

再说一遍, Ubuntu 这样的发行版本(而非滚动更新版本)是不会在发行之后再升级大版本号或者加入新功能的。

要新版本,要么依赖 ppa ,要么换滚动更新版的系统去。
imxieke
2017-04-11 15:52:20 +08:00
@chust 真的啊 我去看看 当时我看了下 PKGBUILD 里面有编译的时候有 可能是默认没有启用
```
--with-mysql-sock=/run/mysqld/mysqld.sock \
--with-mysql=shared,mysqlnd \
--with-mysqli=shared,mysqlnd \
--with-pdo-mysql=shared,mysqlnd \
```
Jafee
2017-04-11 17:06:49 +08:00
@imxieke 以为这么多人回复我,结果发现歪楼了:(
chust
2017-04-11 21:30:49 +08:00
@Jafee 我之前在一个 vps 上用 ubuntu 时就是用我 1 楼那样说的做的。

安装上 libssh2-1 和 libc-ares2 这俩包(我测试虚拟机里就缺这俩),之后就能运行 arch 包里解压出的 aria2c 了

```
$ ./aria2c -v
aria2 version 1.31.0
Copyright (C) 2006, 2016 Tatsuhiro Tsujikawa

This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.

** Configuration **
Enabled Features: Async DNS, BitTorrent, Firefox3 Cookie, GZip, HTTPS, Message Digest, Metalink, XML-RPC, SFTP
Hash Algorithms: sha-1, sha-224, sha-256, sha-384, sha-512, md5, adler32
Libraries: zlib/1.2.11 libxml2/2.9.4 sqlite3/3.16.2 GnuTLS/3.5.8 nettle GMP/6.1.2 c-ares/1.12.0 libssh2/1.8.0
Compiler: gcc 6.3.1 20170109
built by x86_64-pc-linux-gnu
on Jan 17 2017 10:25:57
System: Linux 4.4.0-62-generic #83-Ubuntu SMP Wed Jan 18 14:10:15 UTC 2017 x86_64

Report bugs to https://github.com/aria2/aria2/issues
Visit https://aria2.github.io/
```
wfxiong1990
2017-04-12 09:13:57 +08:00
Jafee
2017-04-12 14:23:58 +08:00
@wfxiong1990 我最后就是选择了这个。

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/354052

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX