Home  >  Article  >  Backend Development  >  使用homebrew安装php如何使用自定义的参数

使用homebrew安装php如何使用自定义的参数

WBOY
WBOYOriginal
2016-07-06 13:52:521081browse

使用homebrew安装php,后面加上安装参数。

brew install php56 --enable-fpm --with-mysql=mysqlnd --with-mysqli=mysqlnd --with-pdo-mysql=mysqlnd --with-zlib --enable-zip --enable-soap --enable-opcache --with-mcrypt --with-openssl --with-curl --enable-mbstring --enable-sockets --with-freetype-dir --with-jpeg-dir --with-png-dir --with-gd --without-homebrew-php

可是装完后查看安装参数都是homebrew的默认参数。

使用homebrew安装php如何使用自定义的参数

如何安装自定义的参数,我百度了下好像别人也都是我这么做的。

回复内容:

使用homebrew安装php,后面加上安装参数。

brew install php56 --enable-fpm --with-mysql=mysqlnd --with-mysqli=mysqlnd --with-pdo-mysql=mysqlnd --with-zlib --enable-zip --enable-soap --enable-opcache --with-mcrypt --with-openssl --with-curl --enable-mbstring --enable-sockets --with-freetype-dir --with-jpeg-dir --with-png-dir --with-gd --without-homebrew-php

可是装完后查看安装参数都是homebrew的默认参数。

使用homebrew安装php如何使用自定义的参数

如何安装自定义的参数,我百度了下好像别人也都是我这么做的。

谢邀吧,(其实我不会php的)

不确定你的那些参数是否合法,我建议你直接看官网(百度在这方面真心不行,搜娱乐信息倒是蛮好的)。

homebrew-php

看下面章节:

使用homebrew安装php如何使用自定义的参数

你是不是应该先brew options php56看一下到底有哪些option,然后再用

可以单独安装扩展
比如:
brew search php-redis
列出相应的扩展
brew install /xxx/xxx/php-redis

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn