V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
Light3
V2EX  ›  问与答

求助安装 php mongo 扩展

  •  
  •   Light3 · Jan 4, 2016 · 2429 views
    This topic created in 3773 days ago, the information mentioned may be changed or developed.

    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?

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

    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2478 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 07:16 · PVG 15:16 · LAX 00:16 · JFK 03:16
    ♥ Do have faith in what you're doing.