V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
Jafee
V2EX  ›  问与答

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

  •  
  •   Jafee · 2017-04-11 13:32:54 +08:00 · 5565 次点击
    这是一个创建于 2589 天前的主题,其中的信息可能已经有所发展或是发生改变。

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

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

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

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

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

    要新版本,要么依赖 ppa ,要么换滚动更新版的系统去。
    imxieke
        10
    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
        11
    Jafee  
    OP
       2017-04-11 17:06:49 +08:00
    @imxieke 以为这么多人回复我,结果发现歪楼了:(
    chust
        12
    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
        13
    wfxiong1990  
       2017-04-12 09:13:57 +08:00
    Jafee
        14
    Jafee  
    OP
       2017-04-12 14:23:58 +08:00
    @wfxiong1990 我最后就是选择了这个。
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   5773 人在线   最高记录 6547   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 06:47 · PVG 14:47 · LAX 23:47 · JFK 02:47
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.