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

关于 brew 安装 php-fpm

  •  
  •   Alpha · 2014-07-24 14:53:49 +08:00 · 7927 次点击
    这是一个创建于 3567 天前的主题,其中的信息可能已经有所发展或是发生改变。
    http://www.douban.com/note/303992189/

    按个这个帖子安装,最后提示如下:

    localhost$ brew install php55 --with-imap --with-tidy --with-debug --with-pgsql --with-mysql --with-fpm
    ==> Downloading http://www.php.net/get/php-5.5.14.tar.bz2/from/this/mirror
    Already downloaded: /Library/Caches/Homebrew/php55-5.5.14

    Error: No such file or directory - pg_config


    是不是大概意思是下载成功了,但识别不了php55-5.5.14 这个文件
    7 条回复    2014-08-19 21:03:21 +08:00
    Alpha
        1
    Alpha  
    OP
       2014-07-24 14:54:13 +08:00
    谁有相关的安装经验
    ooxxcc
        2
    ooxxcc  
       2014-07-24 14:57:28 +08:00
    Building brew install php55 --with-pgsql relies on postgresql the formula.
    It requires that you have installed the postgresql formula with brew install postgresql, which is not the case for you (Server.app)

    which pg_config should outpout /usr/local/bin/pg_config
    pg_config --includedir should outpout /usr/local/Cellar/postgresql/9.3.1/include

    Install postgresql formula first, then you will be able to compile PHP 5.5 --with-pgsql


    https://github.com/Homebrew/homebrew-php/issues/799
    Havee
        3
    Havee  
       2014-07-24 15:06:50 +08:00
    --with-pgsql
    你用得到吗?用不到去掉
    Alpha
        4
    Alpha  
    OP
       2014-07-24 15:55:03 +08:00
    这个是用到的
    jsq2627
        5
    jsq2627  
       2014-07-24 16:02:01 +08:00
    先 brew 安装 postgresql
    vvtommy
        6
    vvtommy  
       2014-07-30 18:07:55 +08:00
    跑个题啊,为什么在mac下装这个呢?如果对环境要求不高,用MAMP之类工具就行。如果对环境要求高,你的生产环境是OSX吗?不是的话,vagrant完全满足需求。
    zhuzhenyu
        7
    zhuzhenyu  
       2014-08-19 21:03:21 +08:00
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   1500 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 24ms · UTC 16:56 · PVG 00:56 · LAX 09:56 · JFK 12:56
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.