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

求助安装 php mongo 扩展

  •  
  •   Light3 · 2016 年 1 月 4 日 · 2394 次点击
    这是一个创建于 3752 天前的主题,其中的信息可能已经有所发展或是发生改变。

    pecl install mongo 报错

    root@ceshi:/etc/php5/apache2# pecl install mongo
    WARNING: "pecl/mongo" is deprecated in favor of "channel:///mongodb"
    downloading mongo-1.6.12.tgz ...
    Starting to download mongo-1.6.12.tgz (209,252 bytes)
    .............................................done: 209,252 bytes
    118 source files, building
    running: phpize
    sh: 1: phpize: not found
    If the command failed with 'phpize: not found' then you need to install php5-dev packageYou can do it by running 'apt-get install php5-dev' as a root userERROR: `phpize' failed
    按照他的提示安装 php5-dev

    root@ceshi:/etc/php5/apache2# apt-get install php5-dev
    Do you want to continue? [Y/n] y
    Get:1 http://us.archive.ubuntu.com/ubuntu/ trusty/main shtool all 2.0.8-6 [149 kB]
    Fetched 159 kB in 0s (402 kB/s)
    E: Failed to fetch http://us.archive.ubuntu.com/ubuntu/pool/main/s/shtool/shtool_2.0.8-6_all.deb Size mismatch

    E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

    安装不上求助怎么能安装好

    目前尚无回复
    关于   ·   帮助文档   ·   自助推广系统   ·   博客   ·   API   ·   FAQ   ·   Solana   ·   2521 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 15:54 · PVG 23:54 · LAX 08:54 · JFK 11:54
    ♥ Do have faith in what you're doing.