V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
通过以下 Referral 链接购买 DigitalOcean 主机,你将可以帮助 V2EX 持续发展
DigitalOcean - SSD Cloud Servers
lincanbin
V2EX  ›  VPS

centos 下编译 php 需要多大内存?

  •  
  •   lincanbin · 2014-04-27 18:36:32 +08:00 via Android · 843 次点击
    这是一个创建于 3702 天前的主题,其中的信息可能已经有所发展或是发生改变。
    512MiB内存的VPS必须关掉MySQL或者其它服务才能编译成功。
    8 条回复    2014-04-28 14:30:38 +08:00
    sanddudu
        1
    sanddudu  
       2014-04-27 18:45:40 +08:00
    我还没有遇到过因为内存编译失败
    实在内存太小可以下二进制包
    csx163
        2
    csx163  
       2014-04-27 20:56:09 +08:00
    remi源的php版本挺高的
    mahone3297
        3
    mahone3297  
       2014-04-27 21:03:19 +08:00
    php暂时不知。。。上次装gem,装了半天装不上,后来才发现是内存不够。。。
    Giinez
        4
    Giinez  
       2014-04-27 23:25:23 +08:00
    反正我142MB内存加36MB swap是死活编译不了
    sarices
        5
    sarices  
       2014-04-28 09:05:21 +08:00
    64M内存编译通过,没试过更低的内存
    sarices
        6
    sarices  
       2014-04-28 09:08:13 +08:00
    https://bugs.php.net/bug.php?id=48809 试试加这个参数--disable-fileinfo
    Giinez
        7
    Giinez  
       2014-04-28 10:04:37 +08:00
    @sarices 这。。这不科学吧
    lincanbin
        8
    lincanbin  
    OP
       2014-04-28 14:30:38 +08:00
    @sarices 有加,不关MySQL死活不行
    ./configure --prefix=/www/wdlinux/apache_php-5.5.11 -with-config-file-path=/www/wdlinux/apache_php-5.5.11/etc -with-mysql=/www/wdlinux/mysql -with-mysqli=/www/wdlinux/mysql/bin/mysql_config -with-iconv=/usr -with-freetype-dir -with-jpeg-dir -with-png-dir -with-zlib -with-libxml-dir=/usr -enable-xml -disable-fileinfo -enable-inline-optimization -with-curl -enable-mbregex -enable-mbstring -with-mcrypt=/usr -with-gd -enable-gd-native-ttf -with-openssl -with-mhash -enable-ftp -enable-sockets -enable-zip -with-apxs2=/www/wdlinux/apache/bin/apxs

    我现在还在用着老旧的PHP 5.5.9,虽然新加的特性对我没用,可是就是看着心急如焚。
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   924 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 20:41 · PVG 04:41 · LAX 13:41 · JFK 16:41
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.