php7 libxml2,macbookpro 下安装php7 limxml2 checking whether libxml build&

sudo brew install libxml2

==> Downloading

https://homebrew.bintray.com/bottles/libxml2-2.9.3.el_capitan.bo

########################################################################

100.0%

==> Pouring

libxml2-2.9.3.el_capitan.bottle.tar.gz

==> Caveats

This formula is keg-only, which means it was not symlinked

into /usr/local.

OS X already provides this software and installing another

version in

parallel can cause all kinds of trouble.

Generally there are no consequences of this for you. If

you build your

own software and it requires this formula, you'll need to

add to your

build variables:

LDFLAGS: -L/usr/local/opt/libxml2/lib

CPPFLAGS:

-I/usr/local/opt/libxml2/include

==> Summary

🍺 /usr/local/Cellar/libxml2/2.9.3: 276

files, 9.8M

# cd php-7.0.6

# ./configure

--with-libxml-dir=/usr/local/Cellar/libxml2/2.9.3/

通过--with-libxml-dir指定libxml2的安装位置

.......

Thank you for using PHP.

config.status: creating php7.spec

config.status: creating main/build-defs.h

config.status: creating scripts/phpize

config.status: creating scripts/man1/phpize.1

config.status: creating scripts/php-config

config.status: creating

scripts/man1/php-config.1

config.status: creating sapi/cli/php.1

config.status: creating sapi/cgi/php-cgi.1

config.status: creating ext/phar/phar.1

config.status: creating ext/phar/phar.phar.1

config.status: creating main/php_config.h

config.status: executing default commands

成功

===============

brew安装PHP提示Cannot find OpenSSL's ?

是因为php 调用的openssl是系统的,需要指定:

--with-openssl-dir=/usr/local/Cellar/openssl/1.0.2h/ --with-openssl=/usr/local/Cellar/openssl/1.0.2h/

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值