mac 安装php7.2,mac 安装php7.2后提示

==> Caveats

==> apr

apr is keg-only, which means it was not symlinked into /usr/local,

because Apple’s CLT provides apr.

If you need to have apr first in your PATH run:

echo ‘export PATH="/usr/local/opt/apr/bin:$PATH"’ >> ~/.bash_profile

==> openssl@1.1

A CA file has been bootstrapped using certificates from the system

keychain. To add additional certificates, place .pem files in

/usr/local/etc/openssl@1.1/certs

and run

/usr/local/opt/openssl@1.1/bin/c_rehash

openssl@1.1 is keg-only, which means it was not symlinked into /usr/local,

because macOS provides LibreSSL.

If you need to have openssl@1.1 first in your PATH run:

echo ‘export PATH="/usr/local/opt/openssl@1.1/bin:$PATH"’ >> ~/.bash_profile

For compilers to find openssl@1.1 you may need to set:

export LDFLAGS="-L/usr/local/opt/openssl@1.1/lib"

export CPPFLAGS="-I/usr/local/opt/openssl@1.1/include"

For pkg-config to find openssl@1.1 you may need to set:

export PKG_CONFIG_PATH="/usr/local/opt/openssl@1.1/lib/pkgconfig"

==> apr-util

apr-util is keg-only, which means it was not symlinked into /usr/local,

because Apple’s CLT provides apr (but not apr-util).

If you need to have apr-util first in your PATH run:

echo ‘export PATH="/usr/local/opt/apr-util/bin:$PATH"’ >> ~/.bash_profile

==> openldap

openldap is keg-only, which means it was not symlinked into /usr/local,

because macOS already provides this software and installing another version in

parallel can cause all kinds of trouble.

If you need to have openldap first in your PATH run:

echo ‘export PATH="/usr/local/opt/openldap/bin:P A T H " ′ > >   / . b a s h p r o f i l e e c h o ′ e x p o r t P A T H = " / u s r / l o c a l / o p t / o p e n l d a p / s b i n : PATH"' >> ~/.bash_profile echo 'export PATH="/usr/local/opt/openldap/sbin:PATH"′>>/.bashp​rofileecho′exportPATH="/usr/local/opt/openldap/sbin:PATH"’ >> ~/.bash_profile

For compilers to find openldap you may need to set:

export LDFLAGS="-L/usr/local/opt/openldap/lib"

export CPPFLAGS="-I/usr/local/opt/openldap/include"

==> curl-openssl

curl-openssl is keg-only, which means it was not symlinked into /usr/local,

because macOS provides curl.

If you need to have curl-openssl first in your PATH run:

echo ‘export PATH="/usr/local/opt/curl-openssl/bin:$PATH"’ >> ~/.bash_profile

For compilers to find curl-openssl you may need to set:

export LDFLAGS="-L/usr/local/opt/curl-openssl/lib"

export CPPFLAGS="-I/usr/local/opt/curl-openssl/include"

For pkg-config to find curl-openssl you may need to set:

export PKG_CONFIG_PATH="/usr/local/opt/curl-openssl/lib/pkgconfig"

==> libffi

libffi is keg-only, which means it was not symlinked into /usr/local,

because macOS already provides this software and installing another version in

parallel can cause all kinds of trouble.

For compilers to find libffi you may need to set:

export LDFLAGS="-L/usr/local/opt/libffi/lib"

export CPPFLAGS="-I/usr/local/opt/libffi/include"

For pkg-config to find libffi you may need to set:

export PKG_CONFIG_PATH="/usr/local/opt/libffi/lib/pkgconfig"

==> readline

readline is keg-only, which means it was not symlinked into /usr/local,

because macOS provides BSD libedit.

For compilers to find readline you may need to set:

export LDFLAGS="-L/usr/local/opt/readline/lib"

export CPPFLAGS="-I/usr/local/opt/readline/include"

For pkg-config to find readline you may need to set:

export PKG_CONFIG_PATH="/usr/local/opt/readline/lib/pkgconfig"

==> sqlite

sqlite is keg-only, which means it was not symlinked into /usr/local,

because macOS already provides this software and installing another version in

parallel can cause all kinds of trouble.

If you need to have sqlite first in your PATH run:

echo ‘export PATH="/usr/local/opt/sqlite/bin:$PATH"’ >> ~/.bash_profile

For compilers to find sqlite you may need to set:

export LDFLAGS="-L/usr/local/opt/sqlite/lib"

export CPPFLAGS="-I/usr/local/opt/sqlite/include"

For pkg-config to find sqlite you may need to set:

export PKG_CONFIG_PATH="/usr/local/opt/sqlite/lib/pkgconfig"

==> python@3.8

Python has been installed as

/usr/local/opt/python@3.8/bin/python3

You can install Python packages with

/usr/local/opt/python@3.8/bin/pip3 install

They will install into the site-package directory

/usr/local/opt/python@3.8/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages

See: https://docs.brew.sh/Homebrew-and-Python

python@3.8 is keg-only, which means it was not symlinked into /usr/local,

because this is an alternate version of another formula.

If you need to have python@3.8 first in your PATH run:

echo ‘export PATH="/usr/local/opt/python@3.8/bin:$PATH"’ >> ~/.bash_profile

For compilers to find python@3.8 you may need to set:

export LDFLAGS="-L/usr/local/opt/python@3.8/lib"

For pkg-config to find python@3.8 you may need to set:

export PKG_CONFIG_PATH="/usr/local/opt/python@3.8/lib/pkgconfig"

==> glib

Bash completion has been installed to:

/usr/local/etc/bash_completion.d

==> icu4c

icu4c is keg-only, which means it was not symlinked into /usr/local,

because macOS provides libicucore.dylib (but nothing else).

If you need to have icu4c first in your PATH run:

echo ‘export PATH="/usr/local/opt/icu4c/bin:P A T H " ′ > >   / . b a s h p r o f i l e e c h o ′ e x p o r t P A T H = " / u s r / l o c a l / o p t / i c u 4 c / s b i n : PATH"' >> ~/.bash_profile echo 'export PATH="/usr/local/opt/icu4c/sbin:PATH"′>>/.bashp​rofileecho′exportPATH="/usr/local/opt/icu4c/sbin:PATH"’ >> ~/.bash_profile

For compilers to find icu4c you may need to set:

export LDFLAGS="-L/usr/local/opt/icu4c/lib"

export CPPFLAGS="-I/usr/local/opt/icu4c/include"

For pkg-config to find icu4c you may need to set:

export PKG_CONFIG_PATH="/usr/local/opt/icu4c/lib/pkgconfig"

==> krb5

krb5 is keg-only, which means it was not symlinked into /usr/local,

because macOS already provides this software and installing another version in

parallel can cause all kinds of trouble.

If you need to have krb5 first in your PATH run:

echo ‘export PATH="/usr/local/opt/krb5/bin:P A T H " ′ > >   / . b a s h p r o f i l e e c h o ′ e x p o r t P A T H = " / u s r / l o c a l / o p t / k r b 5 / s b i n : PATH"' >> ~/.bash_profile echo 'export PATH="/usr/local/opt/krb5/sbin:PATH"′>>/.bashp​rofileecho′exportPATH="/usr/local/opt/krb5/sbin:PATH"’ >> ~/.bash_profile

For compilers to find krb5 you may need to set:

export LDFLAGS="-L/usr/local/opt/krb5/lib"

export CPPFLAGS="-I/usr/local/opt/krb5/include"

For pkg-config to find krb5 you may need to set:

export PKG_CONFIG_PATH="/usr/local/opt/krb5/lib/pkgconfig"

==> libpq

libpq is keg-only, which means it was not symlinked into /usr/local,

because conflicts with postgres formula.

If you need to have libpq first in your PATH run:

echo ‘export PATH="/usr/local/opt/libpq/bin:$PATH"’ >> ~/.bash_profile

For compilers to find libpq you may need to set:

export LDFLAGS="-L/usr/local/opt/libpq/lib"

export CPPFLAGS="-I/usr/local/opt/libpq/include"

For pkg-config to find libpq you may need to set:

export PKG_CONFIG_PATH="/usr/local/opt/libpq/lib/pkgconfig"

==> php@7.2

To enable PHP in Apache add the following to httpd.conf and restart Apache:

LoadModule php7_module /usr/local/opt/php@7.2/lib/httpd/modules/libphp7.so

SetHandler application/x-httpd-php

Finally, check DirectoryIndex includes index.php

DirectoryIndex index.php index.html

The php.ini and php-fpm.ini file can be found in:

/usr/local/etc/php/7.2/

php@7.2 is keg-only, which means it was not symlinked into /usr/local,

because this is an alternate version of another formula.

If you need to have php@7.2 first in your PATH run:

echo ‘export PATH="/usr/local/opt/php@7.2/bin:P A T H " ′ > >   / . b a s h p r o f i l e e c h o ′ e x p o r t P A T H = " / u s r / l o c a l / o p t / p h p @ 7.2 / s b i n : PATH"' >> ~/.bash_profile echo 'export PATH="/usr/local/opt/php@7.2/sbin:PATH"′>>/.bashp​rofileecho′exportPATH="/usr/local/opt/php@7.2/sbin:PATH"’ >> ~/.bash_profile

For compilers to find php@7.2 you may need to set:

export LDFLAGS="-L/usr/local/opt/php@7.2/lib"

export CPPFLAGS="-I/usr/local/opt/php@7.2/include"

To have launchd start php@7.2 now and restart at login:

brew services start php@7.2

Or, if you don’t want/need a background service you can just run:

php-fpm

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值