Post view

在macOS Mojave 10.14安裝Homebrew與PHP 5.6

請先參考這篇文章:

在沒有macOS Server之後,只好在macOS Mojave 10.14測試改裝XAMPP 7.2.10、XAMPP 5.6.38、MacPorts

由於XAMPP 5.6.38、XAMPP 7.0.32都完全不能用(或許是與macOS Mojave 10.14不相容),那接下來要怎麼辦?當然是現成的套件無法使用,只好全部DIY一個一個自己手動安裝!

在macOS上,除了現成的XAMPP套件以外,想要自己動手一一安裝每個伺服器程式的話,也可使用MacPorts或是Homebrew這兩個著名的套件安裝程式。由於MacPorts必須依賴Apple的Xcode才能使用,完全不需要Xcode就可以直接安裝Apache、PHP、ImageMagick、MySQL(這個可以從Oracle網站下載,直接安裝)等,好像比MacPorts更好。

但其實Homebrew會自動下載並安裝Command Line Tools (macOS High Sierra version 10.13) for Xcode,所以與必須自己從App Store下載Xcode並安裝的MacPorts沒有太大的差異!

所以就先在測試用的Mac mini主機的macOS Mojave 10.14上安裝Homebrew。

Homebrew:macOS 缺少套件的管理工具

安裝 Homebrew

根據Homebrew網頁上的說明,要「在終端機命令列提示貼上這個」指令。

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

腳本執行時會解釋它正在做什麼,並在你確認之前暫停下來。你可以在這裡找到更多安裝選擇 (required for OS X Lion 10.7 and below)。

因為是「終端機命令列」指令,我就不需要貼視窗畫面,直接貼上完整的Homebrew安裝指令與執行過程。在Windows的MS-DOS命令列模式,會顯示一個「C:/>」的提示號。Mac也有相同的提示號,就像這樣:

www:insoler brentsu$

這句話的意思是:

主機名稱:檔案夾名稱 使用者名稱$

在$符號後面的游標,才是在終端機提示號要輸入指令的位置。我使用紅色的粗體字來標示出要輸入的指令。

www:insoler brentsu$ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

==> This script will install:

/usr/local/bin/brew

/usr/local/share/doc/homebrew

/usr/local/share/man/man1/brew.1

/usr/local/share/zsh/site-functions/_brew

/usr/local/etc/bash_completion.d/brew

/usr/local/Homebrew

==> The following existing directories will be made group writable:

/usr/local/bin

/usr/local/etc

/usr/local/include

/usr/local/lib

/usr/local/sbin

/usr/local/share

/usr/local/opt

/usr/local/var

/usr/local/lib/pkgconfig

/usr/local/share/aclocal

/usr/local/share/doc

/usr/local/share/info

/usr/local/share/man

/usr/local/share/man/man3

/usr/local/share/man/man5

/usr/local/share/man/man8

/usr/local/var/log

==> The following existing directories will have their owner set to brentsu:

/usr/local/bin

/usr/local/etc

/usr/local/include

/usr/local/lib

/usr/local/sbin

/usr/local/share

/usr/local/opt

/usr/local/var

/usr/local/lib/pkgconfig

/usr/local/share/aclocal

/usr/local/share/doc

/usr/local/share/info

/usr/local/share/man

/usr/local/share/man/man3

/usr/local/share/man/man5

/usr/local/share/man/man8

/usr/local/var/log

==> The following existing directories will have their group set to admin:

/usr/local/bin

/usr/local/etc

/usr/local/include

/usr/local/lib

/usr/local/sbin

/usr/local/share

/usr/local/opt

/usr/local/var

/usr/local/lib/pkgconfig

/usr/local/share/aclocal

/usr/local/share/doc

/usr/local/share/info

/usr/local/share/man

/usr/local/share/man/man3

/usr/local/share/man/man5

/usr/local/share/man/man8

/usr/local/var/log

==> The following new directories will be created:

/usr/local/share/zsh

/usr/local/share/zsh/site-functions

/usr/local/var/homebrew

/usr/local/var/homebrew/linked

/usr/local/Caskroom

/usr/local/Homebrew

/usr/local/Frameworks

==> The Xcode Command Line Tools will be installed.

Press RETURN to continue or any other key to abort

==> /usr/bin/sudo /bin/chmod u+rwx /usr/local/bin /usr/local/etc /usr/local/include /usr/local/lib /usr/local/sbin /usr/local/share /usr/local/opt /usr/local/var /usr/local/lib/pkgconfig /usr/local/share/aclocal /usr/local/share/doc /usr/local/share/info /usr/local/share/man /usr/local/share/man/man3 /usr/local/share/man/man5 /usr/local/share/man/man8 /usr/local/var/log

Password:(輸入使用者帳號密碼)

==> /usr/bin/sudo /bin/chmod g+rwx /usr/local/bin /usr/local/etc /usr/local/include /usr/local/lib /usr/local/sbin /usr/local/share /usr/local/opt /usr/local/var /usr/local/lib/pkgconfig /usr/local/share/aclocal /usr/local/share/doc /usr/local/share/info /usr/local/share/man /usr/local/share/man/man3 /usr/local/share/man/man5 /usr/local/share/man/man8 /usr/local/var/log

==> /usr/bin/sudo /usr/sbin/chown brentsu /usr/local/bin /usr/local/etc /usr/local/include /usr/local/lib /usr/local/sbin /usr/local/share /usr/local/opt /usr/local/var /usr/local/lib/pkgconfig /usr/local/share/aclocal /usr/local/share/doc /usr/local/share/info /usr/local/share/man /usr/local/share/man/man3 /usr/local/share/man/man5 /usr/local/share/man/man8 /usr/local/var/log

==> /usr/bin/sudo /usr/bin/chgrp admin /usr/local/bin /usr/local/etc /usr/local/include /usr/local/lib /usr/local/sbin /usr/local/share /usr/local/opt /usr/local/var /usr/local/lib/pkgconfig /usr/local/share/aclocal /usr/local/share/doc /usr/local/share/info /usr/local/share/man /usr/local/share/man/man3 /usr/local/share/man/man5 /usr/local/share/man/man8 /usr/local/var/log

==> /usr/bin/sudo /bin/mkdir -p /usr/local/share/zsh /usr/local/share/zsh/site-functions /usr/local/var/homebrew /usr/local/var/homebrew/linked /usr/local/Caskroom /usr/local/Homebrew /usr/local/Frameworks

==> /usr/bin/sudo /bin/chmod g+rwx /usr/local/share/zsh /usr/local/share/zsh/site-functions /usr/local/var/homebrew /usr/local/var/homebrew/linked /usr/local/Caskroom /usr/local/Homebrew /usr/local/Frameworks

==> /usr/bin/sudo /bin/chmod 755 /usr/local/share/zsh /usr/local/share/zsh/site-functions

==> /usr/bin/sudo /usr/sbin/chown brentsu /usr/local/share/zsh /usr/local/share/zsh/site-functions /usr/local/var/homebrew /usr/local/var/homebrew/linked /usr/local/Caskroom /usr/local/Homebrew /usr/local/Frameworks

==> /usr/bin/sudo /usr/bin/chgrp admin /usr/local/share/zsh /usr/local/share/zsh/site-functions /usr/local/var/homebrew /usr/local/var/homebrew/linked /usr/local/Caskroom /usr/local/Homebrew /usr/local/Frameworks

==> /usr/bin/sudo /bin/mkdir -p /Users/brentsu/Library/Caches/Homebrew

==> /usr/bin/sudo /bin/chmod g+rwx /Users/brentsu/Library/Caches/Homebrew

==> /usr/bin/sudo /usr/sbin/chown brentsu /Users/brentsu/Library/Caches/Homebrew

==> /usr/bin/sudo /bin/mkdir -p /Library/Caches/Homebrew

==> /usr/bin/sudo /bin/chmod g+rwx /Library/Caches/Homebrew

==> /usr/bin/sudo /usr/sbin/chown brentsu /Library/Caches/Homebrew

==> Searching online for the Command Line Tools

==> /usr/bin/sudo /usr/bin/touch /tmp/.com.apple.dt.CommandLineTools.installondemand.in-progress

==> Installing Command Line Tools (macOS High Sierra version 10.13) for Xcode-10.0

==> /usr/bin/sudo /usr/sbin/softwareupdate -i Command\ Line\ Tools\ (macOS\ High\ Sierra\ version\ 10.13)\ for\ Xcode-10.0

Software Update Tool

Downloading Command Line Tools (macOS High Sierra version 10.13) for Xcode

Downloaded Command Line Tools (macOS High Sierra version 10.13) for Xcode

Installing Command Line Tools (macOS High Sierra version 10.13) for Xcode

Done with Command Line Tools (macOS High Sierra version 10.13) for Xcode

Done.

==> /usr/bin/sudo /bin/rm -f /tmp/.com.apple.dt.CommandLineTools.installondemand.in-progress

==> /usr/bin/sudo /usr/bin/xcode-select --switch /Library/Developer/CommandLineTools

==> Downloading and installing Homebrew...

remote: Enumerating objects: 13, done.

remote: Counting objects: 100% (13/13), done.

remote: Compressing objects: 100% (12/12), done.

remote: Total 111554 (delta 5), reused 5 (delta 1), pack-reused 111541

Receiving objects: 100% (111554/111554), 25.41 MiB | 3.21 MiB/s, done.

Resolving deltas: 100% (81704/81704), done.

From https://github.com/Homebrew/brew

 * [new branch]          master     -> origin/master

Checking out files: 100% (1265/1265), done.

HEAD is now at ff3cede96 Merge pull request #5040 from MikeMcQuaid/cleanup-vendor-bundle

Error: /usr/local/Cellar is not writable. You should change the

ownership and permissions of /usr/local/Cellar back to your

user account:

  sudo chown -R $(whoami) /usr/local/Cellar

Failed during: /usr/local/bin/brew update --force

www:insoler brentsu$ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

==> This script will install:

/usr/local/bin/brew

/usr/local/share/doc/homebrew

/usr/local/share/man/man1/brew.1

/usr/local/share/zsh/site-functions/_brew

/usr/local/etc/bash_completion.d/brew

/usr/local/Homebrew

Press RETURN to continue or any other key to abort

==> Downloading and installing Homebrew...

remote: Enumerating objects: 7, done.

remote: Counting objects: 100% (7/7), done.

remote: Total 7 (delta 6), reused 7 (delta 6), pack-reused 0

Unpacking objects: 100% (7/7), done.

From https://github.com/Homebrew/brew

   ff3cede96..d5444b625  master     -> origin/master

HEAD is now at d5444b625 Merge pull request #5044 from sjackman/portable-ruby-arm

==> Homebrew is run entirely by unpaid volunteers. Please consider donating:

  https://github.com/Homebrew/brew#donations

==> Tapping homebrew/core

Cloning into '/usr/local/Homebrew/Library/Taps/homebrew/homebrew-core'...

remote: Enumerating objects: 4861, done.

remote: Counting objects: 100% (4861/4861), done.

remote: Compressing objects: 100% (4656/4656), done.

remote: Total 4861 (delta 54), reused 338 (delta 15), pack-reused 0

Receiving objects: 100% (4861/4861), 4.07 MiB | 3.24 MiB/s, done.

Resolving deltas: 100% (54/54), done.

Checking out files: 100% (4878/4878), done.

Tapped 2 commands and 4647 formulae (4,903 files, 12.7MB).

==> Migrating /Library/Caches/Homebrew to /Users/brentsu/Library/Caches/Ho

==> Deleting /Library/Caches/Homebrew...

Already up-to-date.

==> Installation successful!

==> Homebrew has enabled anonymous aggregate formulae and cask analytics.

Read the analytics documentation (and how to opt-out) here:

  https://docs.brew.sh/Analytics.html

==> Homebrew is run entirely by unpaid volunteers. Please consider donating:

  https://github.com/Homebrew/brew#donations

==> Next steps:

- Run `brew help` to get started

- Further documentation: 

    https://docs.brew.sh

www:insoler brentsu$ brew install php56 (安裝最新的php 5.6版。因為海豚系統目前還不支援PHP 7.2的關係,只能安裝php 5.6)

==> Installing dependencies for php@5.6: apr, openssl, apr-util, aspell, autoconf, freetds, libpng, freetype, gettext, libffi, pcre, glib, gmp, icu4c, jpeg, libiconv, libpq, libzip, mhash, mcrypt, openldap, libtool, unixodbc, webp

==> Installing php@5.6 dependency: apr

==> Downloading https://homebrew.bintray.com/bottles/apr-1.6.5.high_sierra.bottl

######################################################################## 100.0%

==> Pouring apr-1.6.5.high_sierra.bottle.tar.gz

==> Caveats

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

because Apple's CLT package contains apr.

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

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

==> Summary

🍺  /usr/local/Cellar/apr/1.6.5: 60 files, 1.3MB

==> Installing php@5.6 dependency: openssl

==> Downloading https://homebrew.bintray.com/bottles/openssl-1.0.2p.high_sierra.

######################################################################## 100.0%

==> Pouring openssl-1.0.2p.high_sierra.bottle.tar.gz

==> Caveats

A CA file has been bootstrapped using certificates from the SystemRoots

keychain. To add additional certificates (e.g. the certificates added in

the System keychain), place .pem files in

  /usr/local/etc/openssl/certs

and run

  /usr/local/opt/openssl/bin/c_rehash

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

because Apple has deprecated use of OpenSSL in favor of its own TLS and crypto libraries.

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

  echo 'export PATH="/usr/local/opt/openssl/bin:$PATH"' >> ~/.bash_profile

For compilers to find openssl you may need to set:

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

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

==> Summary

🍺  /usr/local/Cellar/openssl/1.0.2p: 1,793 files, 12.3MB

==> Installing php@5.6 dependency: apr-util

==> Downloading https://homebrew.bintray.com/bottles/apr-util-1.6.1_1.high_sierr

######################################################################## 100.0%

==> Pouring apr-util-1.6.1_1.high_sierra.bottle.tar.gz

==> Caveats

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

because Apple's CLT package contains apr.

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

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

==> Summary

🍺  /usr/local/Cellar/apr-util/1.6.1_1: 54 files, 778.3KB

==> Installing php@5.6 dependency: aspell

==> Downloading https://homebrew.bintray.com/bottles/aspell-0.60.6.1_1.high_sier

######################################################################## 100.0%

==> Pouring aspell-0.60.6.1_1.high_sierra.bottle.tar.gz

==> Caveats

Installation of the 'is' (Icelandic) and 'nb' (Norwegian) dictionaries is

currently broken. They can be installed manually.

See: https://github.com/Homebrew/homebrew-core/issues/28074

==> Summary

🍺  /usr/local/Cellar/aspell/0.60.6.1_1: 267 files, 35.6MB

==> Installing php@5.6 dependency: autoconf

==> Downloading https://homebrew.bintray.com/bottles/autoconf-2.69.high_sierra.b

######################################################################## 100.0%

==> Pouring autoconf-2.69.high_sierra.bottle.4.tar.gz

==> Caveats

Emacs Lisp files have been installed to:

  /usr/local/share/emacs/site-lisp/autoconf

==> Summary

🍺  /usr/local/Cellar/autoconf/2.69: 71 files, 3.0MB

==> Installing php@5.6 dependency: freetds

==> Downloading https://homebrew.bintray.com/bottles/freetds-1.00.98.high_sierra

######################################################################## 100.0%

==> Pouring freetds-1.00.98.high_sierra.bottle.tar.gz

🍺  /usr/local/Cellar/freetds/1.00.98: 2,094 files, 11.9MB

==> Installing php@5.6 dependency: libpng

==> Downloading https://homebrew.bintray.com/bottles/libpng-1.6.35.high_sierra.b

######################################################################## 100.0%

==> Pouring libpng-1.6.35.high_sierra.bottle.tar.gz

Error: The `brew link` step did not complete successfully

The formula built, but is not symlinked into /usr/local

Could not symlink bin/libpng-config

Target /usr/local/bin/libpng-config

is a symlink belonging to libpng. You can unlink it:

  brew unlink libpng

To force the link and overwrite all conflicting files:

  brew link --overwrite libpng

To list all files that would be deleted:

  brew link --overwrite --dry-run libpng

Possible conflicting files are:

/usr/local/bin/libpng-config -> /usr/local/Cellar/libpng/1.6.20/bin/libpng-config

/usr/local/bin/libpng16-config -> /usr/local/Cellar/libpng/1.6.20/bin/libpng16-config

/usr/local/bin/png-fix-itxt -> /usr/local/Cellar/libpng/1.6.20/bin/png-fix-itxt

/usr/local/bin/pngfix -> /usr/local/Cellar/libpng/1.6.20/bin/pngfix

/usr/local/include/libpng16/png.h

/usr/local/include/libpng16/pngconf.h

/usr/local/include/libpng16/pnglibconf.h

/usr/local/include/libpng16/png.h

/usr/local/include/libpng16/pngconf.h

/usr/local/include/libpng16/pnglibconf.h

/usr/local/include/png.h -> /usr/local/Cellar/libpng/1.6.20/include/png.h

/usr/local/include/pngconf.h -> /usr/local/Cellar/libpng/1.6.20/include/pngconf.h

/usr/local/include/pnglibconf.h -> /usr/local/Cellar/libpng/1.6.20/include/pnglibconf.h

/usr/local/share/man/man3/libpng.3 -> /usr/local/Cellar/libpng/1.6.20/share/man/man3/libpng.3

/usr/local/share/man/man3/libpngpf.3 -> /usr/local/Cellar/libpng/1.6.20/share/man/man3/libpngpf.3

/usr/local/share/man/man5/png.5 -> /usr/local/Cellar/libpng/1.6.20/share/man/man5/png.5

/usr/local/lib/libpng.a -> /usr/local/Cellar/libpng/1.6.20/lib/libpng.a

/usr/local/lib/libpng.dylib -> /usr/local/Cellar/libpng/1.6.20/lib/libpng.dylib

/usr/local/lib/libpng16.16.dylib -> /usr/local/Cellar/libpng/1.6.20/lib/libpng16.16.dylib

/usr/local/lib/libpng16.a -> /usr/local/Cellar/libpng/1.6.20/lib/libpng16.a

/usr/local/lib/libpng16.dylib -> /usr/local/Cellar/libpng/1.6.20/lib/libpng16.dylib

/usr/local/lib/pkgconfig/libpng.pc -> /usr/local/Cellar/libpng/1.6.20/lib/pkgconfig/libpng.pc

/usr/local/lib/pkgconfig/libpng16.pc -> /usr/local/Cellar/libpng/1.6.20/lib/pkgconfig/libpng16.pc

==> Summary

🍺  /usr/local/Cellar/libpng/1.6.35: 26 files, 1.2MB

==> Installing php@5.6 dependency: freetype

==> Downloading https://homebrew.bintray.com/bottles/freetype-2.9.1.high_sierra.

######################################################################## 100.0%

==> Pouring freetype-2.9.1.high_sierra.bottle.tar.gz

Error: The `brew link` step did not complete successfully

The formula built, but is not symlinked into /usr/local

Could not symlink bin/freetype-config

Target /usr/local/bin/freetype-config

is a symlink belonging to freetype. You can unlink it:

  brew unlink freetype

To force the link and overwrite all conflicting files:

  brew link --overwrite freetype

To list all files that would be deleted:

  brew link --overwrite --dry-run freetype

Possible conflicting files are:

/usr/local/bin/freetype-config -> /usr/local/Cellar/freetype/2.6_1/bin/freetype-config

/usr/local/include/freetype2/config/ftconfig.h

/usr/local/include/freetype2/config/ftheader.h

/usr/local/include/freetype2/config/ftmodule.h

/usr/local/include/freetype2/config/ftoption.h

/usr/local/include/freetype2/config/ftstdlib.h

/usr/local/include/freetype2/freetype.h

/usr/local/include/freetype2/ft2build.h

/usr/local/include/freetype2/ftadvanc.h

/usr/local/include/freetype2/ftautoh.h

/usr/local/include/freetype2/ftbbox.h

/usr/local/include/freetype2/ftbdf.h

/usr/local/include/freetype2/ftbitmap.h

/usr/local/include/freetype2/ftbzip2.h

/usr/local/include/freetype2/ftcache.h

/usr/local/include/freetype2/ftcffdrv.h

/usr/local/include/freetype2/ftchapters.h

/usr/local/include/freetype2/ftcid.h

/usr/local/include/freetype2/fterrdef.h

/usr/local/include/freetype2/fterrors.h

/usr/local/include/freetype2/ftfntfmt.h

/usr/local/include/freetype2/ftgasp.h

/usr/local/include/freetype2/ftglyph.h

/usr/local/include/freetype2/ftgxval.h

/usr/local/include/freetype2/ftgzip.h

/usr/local/include/freetype2/ftimage.h

/usr/local/include/freetype2/ftincrem.h

/usr/local/include/freetype2/ftlcdfil.h

/usr/local/include/freetype2/ftlist.h

/usr/local/include/freetype2/ftlzw.h

/usr/local/include/freetype2/ftmac.h

/usr/local/include/freetype2/ftmm.h

/usr/local/include/freetype2/ftmodapi.h

/usr/local/include/freetype2/ftmoderr.h

/usr/local/include/freetype2/ftotval.h

/usr/local/include/freetype2/ftoutln.h

/usr/local/include/freetype2/ftpfr.h

/usr/local/include/freetype2/ftrender.h

/usr/local/include/freetype2/ftsizes.h

/usr/local/include/freetype2/ftsnames.h

/usr/local/include/freetype2/ftstroke.h

/usr/local/include/freetype2/ftsynth.h

/usr/local/include/freetype2/ftsystem.h

/usr/local/include/freetype2/fttrigon.h

/usr/local/include/freetype2/ftttdrv.h

/usr/local/include/freetype2/fttypes.h

/usr/local/include/freetype2/ftwinfnt.h

/usr/local/include/freetype2/t1tables.h

/usr/local/include/freetype2/ttnameid.h

/usr/local/include/freetype2/tttables.h

/usr/local/include/freetype2/tttags.h

/usr/local/include/freetype2/ttunpat.h

/usr/local/include/freetype2/ft2build.h

/usr/local/share/aclocal/freetype2.m4 -> /usr/local/Cellar/freetype/2.6_1/share/aclocal/freetype2.m4

/usr/local/lib/libfreetype.6.dylib -> /usr/local/Cellar/freetype/2.6_1/lib/libfreetype.6.dylib

/usr/local/lib/libfreetype.a -> /usr/local/Cellar/freetype/2.6_1/lib/libfreetype.a

/usr/local/lib/libfreetype.dylib -> /usr/local/Cellar/freetype/2.6_1/lib/libfreetype.dylib

/usr/local/lib/pkgconfig/freetype2.pc -> /usr/local/Cellar/freetype/2.6_1/lib/pkgconfig/freetype2.pc

==> Summary

🍺  /usr/local/Cellar/freetype/2.9.1: 60 files, 2.6MB

==> Installing php@5.6 dependency: gettext

==> Downloading https://homebrew.bintray.com/bottles/gettext-0.19.8.1.high_sierr

######################################################################## 100.0%

==> Pouring gettext-0.19.8.1.high_sierra.bottle.tar.gz

==> Caveats

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

because macOS provides the BSD gettext library & some software gets confused if both are in the library path.

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

  echo 'export PATH="/usr/local/opt/gettext/bin:$PATH"' >> ~/.bash_profile

For compilers to find gettext you may need to set:

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

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

==> Summary

🍺  /usr/local/Cellar/gettext/0.19.8.1: 1,935 files, 16.9MB

==> Installing php@5.6 dependency: libffi

==> Downloading https://homebrew.bintray.com/bottles/libffi-3.2.1.high_sierra.bo

######################################################################## 100.0%

==> Pouring libffi-3.2.1.high_sierra.bottle.tar.gz

==> Caveats

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

because some formulae require a newer version of libffi.

For compilers to find libffi you may need to set:

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

==> Summary

🍺  /usr/local/Cellar/libffi/3.2.1: 16 files, 297KB

==> Installing php@5.6 dependency: pcre

==> Downloading https://homebrew.bintray.com/bottles/pcre-8.42.high_sierra.bottl

######################################################################## 100.0%

==> Pouring pcre-8.42.high_sierra.bottle.tar.gz

🍺  /usr/local/Cellar/pcre/8.42: 204 files, 5.3MB

==> Installing php@5.6 dependency: glib

==> Downloading https://homebrew.bintray.com/bottles/glib-2.58.1.high_sierra.bot

######################################################################## 100.0%

==> Pouring glib-2.58.1.high_sierra.bottle.tar.gz

🍺  /usr/local/Cellar/glib/2.58.1: 435 files, 18.4MB

==> Installing php@5.6 dependency: gmp

==> Downloading https://homebrew.bintray.com/bottles/gmp-6.1.2_2.high_sierra.bot

######################################################################## 100.0%

==> Pouring gmp-6.1.2_2.high_sierra.bottle.tar.gz

🍺  /usr/local/Cellar/gmp/6.1.2_2: 18 files, 3.1MB

==> Installing php@5.6 dependency: icu4c

==> Downloading https://homebrew.bintray.com/bottles/icu4c-62.1.high_sierra.bott

######################################################################## 100.0%

==> Pouring icu4c-62.1.high_sierra.bottle.tar.gz

==> Caveats

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:$PATH"' >> ~/.bash_profile

  echo 'export PATH="/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"

==> Summary

🍺  /usr/local/Cellar/icu4c/62.1: 250 files, 67.3MB

==> Installing php@5.6 dependency: jpeg

==> Downloading https://homebrew.bintray.com/bottles/jpeg-9c.high_sierra.bottle.

######################################################################## 100.0%

==> Pouring jpeg-9c.high_sierra.bottle.tar.gz

Error: The `brew link` step did not complete successfully

The formula built, but is not symlinked into /usr/local

Could not symlink bin/cjpeg

Target /usr/local/bin/cjpeg

is a symlink belonging to jpeg. You can unlink it:

  brew unlink jpeg

To force the link and overwrite all conflicting files:

  brew link --overwrite jpeg

To list all files that would be deleted:

  brew link --overwrite --dry-run jpeg

Possible conflicting files are:

/usr/local/bin/cjpeg -> /usr/local/Cellar/jpeg/8d/bin/cjpeg

/usr/local/bin/djpeg -> /usr/local/Cellar/jpeg/8d/bin/djpeg

/usr/local/bin/jpegtran -> /usr/local/Cellar/jpeg/8d/bin/jpegtran

/usr/local/bin/rdjpgcom -> /usr/local/Cellar/jpeg/8d/bin/rdjpgcom

/usr/local/bin/wrjpgcom -> /usr/local/Cellar/jpeg/8d/bin/wrjpgcom

/usr/local/include/jconfig.h -> /usr/local/Cellar/jpeg/8d/include/jconfig.h

/usr/local/include/jerror.h -> /usr/local/Cellar/jpeg/8d/include/jerror.h

/usr/local/include/jmorecfg.h -> /usr/local/Cellar/jpeg/8d/include/jmorecfg.h

/usr/local/include/jpeglib.h -> /usr/local/Cellar/jpeg/8d/include/jpeglib.h

/usr/local/lib/libjpeg.a -> /usr/local/Cellar/jpeg/8d/lib/libjpeg.a

/usr/local/lib/libjpeg.dylib -> /usr/local/Cellar/jpeg/8d/lib/libjpeg.dylib

==> Summary

🍺  /usr/local/Cellar/jpeg/9c: 21 files, 724.6KB

==> Installing php@5.6 dependency: libiconv

==> Downloading https://homebrew.bintray.com/bottles/libiconv-1.15.high_sierra.b

######################################################################## 100.0%

==> Pouring libiconv-1.15.high_sierra.bottle.tar.gz

==> Caveats

libiconv 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 libiconv first in your PATH run:

  echo 'export PATH="/usr/local/opt/libiconv/bin:$PATH"' >> ~/.bash_profile

For compilers to find libiconv you may need to set:

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

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

==> Summary

🍺  /usr/local/Cellar/libiconv/1.15: 30 files, 2.4MB

==> Installing php@5.6 dependency: libpq

==> Downloading https://homebrew.bintray.com/bottles/libpq-10.5.high_sierra.bott

######################################################################## 100.0%

==> Pouring libpq-10.5.high_sierra.bottle.tar.gz

==> Caveats

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"

==> Summary

🍺  /usr/local/Cellar/libpq/10.5: 2,436 files, 27.0MB

==> Installing php@5.6 dependency: libzip

==> Downloading https://homebrew.bintray.com/bottles/libzip-1.5.1.high_sierra.bo

######################################################################## 100.0%

==> Pouring libzip-1.5.1.high_sierra.bottle.tar.gz

🍺  /usr/local/Cellar/libzip/1.5.1: 134 files, 577.4KB

==> Installing php@5.6 dependency: mhash

==> Downloading https://homebrew.bintray.com/bottles/mhash-0.9.9.9.high_sierra.b

######################################################################## 100.0%

==> Pouring mhash-0.9.9.9.high_sierra.bottle.tar.gz

🍺  /usr/local/Cellar/mhash/0.9.9.9: 20 files, 452.7KB

==> Installing php@5.6 dependency: mcrypt

==> Downloading https://homebrew.bintray.com/bottles/mcrypt-2.6.8.high_sierra.bo

######################################################################## 100.0%

==> Pouring mcrypt-2.6.8.high_sierra.bottle.1.tar.gz

🍺  /usr/local/Cellar/mcrypt/2.6.8: 19 files, 378.7KB

==> Installing php@5.6 dependency: openldap

==> Downloading https://homebrew.bintray.com/bottles/openldap-2.4.46.high_sierra

######################################################################## 100.0%

==> Pouring openldap-2.4.46.high_sierra.bottle.tar.gz

==> Caveats

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:$PATH"' >> ~/.bash_profile

  echo 'export PATH="/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"

==> Summary

🍺  /usr/local/Cellar/openldap/2.4.46: 327 files, 6.6MB

==> Installing php@5.6 dependency: libtool

==> Downloading https://homebrew.bintray.com/bottles/libtool-2.4.6_1.high_sierra

######################################################################## 100.0%

==> Pouring libtool-2.4.6_1.high_sierra.bottle.tar.gz

Error: The `brew link` step did not complete successfully

The formula built, but is not symlinked into /usr/local

Could not symlink bin/glibtool

Target /usr/local/bin/glibtool

is a symlink belonging to libtool. You can unlink it:

  brew unlink libtool

To force the link and overwrite all conflicting files:

  brew link --overwrite libtool

To list all files that would be deleted:

  brew link --overwrite --dry-run libtool

Possible conflicting files are:

/usr/local/bin/glibtool -> /usr/local/Cellar/libtool/2.4.6/bin/glibtool

/usr/local/bin/glibtoolize -> /usr/local/Cellar/libtool/2.4.6/bin/glibtoolize

/usr/local/include/libltdl/lt_dlloader.h

/usr/local/include/libltdl/lt_error.h

/usr/local/include/libltdl/lt_system.h

/usr/local/include/libltdl/lt_dlloader.h

/usr/local/include/libltdl/lt_error.h

/usr/local/include/libltdl/lt_system.h

/usr/local/include/ltdl.h -> /usr/local/Cellar/libtool/2.4.6/include/ltdl.h

/usr/local/share/aclocal/libtool.m4 -> /usr/local/Cellar/libtool/2.4.6/share/aclocal/libtool.m4

/usr/local/share/aclocal/ltargz.m4 -> /usr/local/Cellar/libtool/2.4.6/share/aclocal/ltargz.m4

/usr/local/share/aclocal/ltdl.m4 -> /usr/local/Cellar/libtool/2.4.6/share/aclocal/ltdl.m4

/usr/local/share/aclocal/ltoptions.m4 -> /usr/local/Cellar/libtool/2.4.6/share/aclocal/ltoptions.m4

/usr/local/share/aclocal/ltsugar.m4 -> /usr/local/Cellar/libtool/2.4.6/share/aclocal/ltsugar.m4

/usr/local/share/aclocal/ltversion.m4 -> /usr/local/Cellar/libtool/2.4.6/share/aclocal/ltversion.m4

/usr/local/share/aclocal/lt~obsolete.m4 -> /usr/local/Cellar/libtool/2.4.6/share/aclocal/lt~obsolete.m4

/usr/local/share/info/libtool.info -> /usr/local/Cellar/libtool/2.4.6/share/info/libtool.info

/usr/local/share/info/libtool.info-1 -> /usr/local/Cellar/libtool/2.4.6/share/info/libtool.info-1

/usr/local/share/info/libtool.info-2 -> /usr/local/Cellar/libtool/2.4.6/share/info/libtool.info-2

/usr/local/share/libtool/COPYING.LIB

/usr/local/share/libtool/Makefile.am

/usr/local/share/libtool/Makefile.in

/usr/local/share/libtool/README

/usr/local/share/libtool/aclocal.m4

/usr/local/share/libtool/build-aux/compile

/usr/local/share/libtool/build-aux/config.guess

/usr/local/share/libtool/build-aux/config.sub

/usr/local/share/libtool/build-aux/depcomp

/usr/local/share/libtool/build-aux/install-sh

/usr/local/share/libtool/build-aux/ltmain.sh

/usr/local/share/libtool/build-aux/missing

/usr/local/share/libtool/config-h.in

/usr/local/share/libtool/configure

/usr/local/share/libtool/configure.ac

/usr/local/share/libtool/libltdl/lt__alloc.h

/usr/local/share/libtool/libltdl/lt__argz_.h

/usr/local/share/libtool/libltdl/lt__dirent.h

/usr/local/share/libtool/libltdl/lt__glibc.h

/usr/local/share/libtool/libltdl/lt__private.h

/usr/local/share/libtool/libltdl/lt__strl.h

/usr/local/share/libtool/libltdl/lt_dlloader.h

/usr/local/share/libtool/libltdl/lt_error.h

/usr/local/share/libtool/libltdl/lt_system.h

/usr/local/share/libtool/libltdl/slist.h

/usr/local/share/libtool/loaders/dld_link.c

/usr/local/share/libtool/loaders/dlopen.c

/usr/local/share/libtool/loaders/dyld.c

/usr/local/share/libtool/loaders/load_add_on.c

/usr/local/share/libtool/loaders/loadlibrary.c

/usr/local/share/libtool/loaders/preopen.c

/usr/local/share/libtool/loaders/shl_load.c

/usr/local/share/libtool/lt__alloc.c

/usr/local/share/libtool/lt__argz.c

/usr/local/share/libtool/lt__dirent.c

/usr/local/share/libtool/lt__strl.c

/usr/local/share/libtool/lt_dlloader.c

/usr/local/share/libtool/lt_error.c

/usr/local/share/libtool/ltdl.c

/usr/local/share/libtool/ltdl.h

/usr/local/share/libtool/ltdl.mk

/usr/local/share/libtool/slist.c

/usr/local/share/libtool/COPYING.LIB

/usr/local/share/libtool/Makefile.am

/usr/local/share/libtool/Makefile.in

/usr/local/share/libtool/README

/usr/local/share/libtool/aclocal.m4

/usr/local/share/libtool/build-aux/compile

/usr/local/share/libtool/build-aux/config.guess

/usr/local/share/libtool/build-aux/config.sub

/usr/local/share/libtool/build-aux/depcomp

/usr/local/share/libtool/build-aux/install-sh

/usr/local/share/libtool/build-aux/ltmain.sh

/usr/local/share/libtool/build-aux/missing

/usr/local/share/libtool/config-h.in

/usr/local/share/libtool/configure

/usr/local/share/libtool/configure.ac

/usr/local/share/libtool/libltdl/lt__alloc.h

/usr/local/share/libtool/libltdl/lt__argz_.h

/usr/local/share/libtool/libltdl/lt__dirent.h

/usr/local/share/libtool/libltdl/lt__glibc.h

/usr/local/share/libtool/libltdl/lt__private.h

/usr/local/share/libtool/libltdl/lt__strl.h

/usr/local/share/libtool/libltdl/lt_dlloader.h

/usr/local/share/libtool/libltdl/lt_error.h

/usr/local/share/libtool/libltdl/lt_system.h

/usr/local/share/libtool/libltdl/slist.h

/usr/local/share/libtool/loaders/dld_link.c

/usr/local/share/libtool/loaders/dlopen.c

/usr/local/share/libtool/loaders/dyld.c

/usr/local/share/libtool/loaders/load_add_on.c

/usr/local/share/libtool/loaders/loadlibrary.c

/usr/local/share/libtool/loaders/preopen.c

/usr/local/share/libtool/loaders/shl_load.c

/usr/local/share/libtool/lt__alloc.c

/usr/local/share/libtool/lt__argz.c

/usr/local/share/libtool/lt__dirent.c

/usr/local/share/libtool/lt__strl.c

/usr/local/share/libtool/lt_dlloader.c

/usr/local/share/libtool/lt_error.c

/usr/local/share/libtool/ltdl.c

/usr/local/share/libtool/ltdl.h

/usr/local/share/libtool/ltdl.mk

/usr/local/share/libtool/slist.c

/usr/local/lib/libltdl.7.dylib -> /usr/local/Cellar/libtool/2.4.6/lib/libltdl.7.dylib

/usr/local/lib/libltdl.a -> /usr/local/Cellar/libtool/2.4.6/lib/libltdl.a

/usr/local/lib/libltdl.dylib -> /usr/local/Cellar/libtool/2.4.6/lib/libltdl.dylib

==> Caveats

In order to prevent conflicts with Apple's own libtool we have prepended a "g"

so, you have instead: glibtool and glibtoolize.

==> Summary

🍺  /usr/local/Cellar/libtool/2.4.6_1: 71 files, 3.7MB

==> Installing php@5.6 dependency: unixodbc

==> Downloading https://homebrew.bintray.com/bottles/unixodbc-2.3.7.high_sierra.

######################################################################## 100.0%

==> Pouring unixodbc-2.3.7.high_sierra.bottle.tar.gz

Error: The `brew link` step did not complete successfully

The formula built, but is not symlinked into /usr/local

Could not symlink bin/dltest

Target /usr/local/bin/dltest

is a symlink belonging to unixodbc. You can unlink it:

  brew unlink unixodbc

To force the link and overwrite all conflicting files:

  brew link --overwrite unixodbc

To list all files that would be deleted:

  brew link --overwrite --dry-run unixodbc

Possible conflicting files are:

/usr/local/bin/dltest -> /usr/local/Cellar/unixodbc/2.3.2_1/bin/dltest

/usr/local/bin/isql -> /usr/local/Cellar/unixodbc/2.3.2_1/bin/isql

/usr/local/bin/iusql -> /usr/local/Cellar/unixodbc/2.3.2_1/bin/iusql

/usr/local/bin/odbc_config -> /usr/local/Cellar/unixodbc/2.3.2_1/bin/odbc_config

/usr/local/bin/odbcinst -> /usr/local/Cellar/unixodbc/2.3.2_1/bin/odbcinst

/usr/local/bin/slencheck -> /usr/local/Cellar/unixodbc/2.3.2_1/bin/slencheck

/usr/local/include/autotest.h -> /usr/local/Cellar/unixodbc/2.3.2_1/include/autotest.h

/usr/local/include/odbcinst.h -> /usr/local/Cellar/unixodbc/2.3.2_1/include/odbcinst.h

/usr/local/include/odbcinstext.h -> /usr/local/Cellar/unixodbc/2.3.2_1/include/odbcinstext.h

/usr/local/include/sql.h -> /usr/local/Cellar/unixodbc/2.3.2_1/include/sql.h

/usr/local/include/sqlext.h -> /usr/local/Cellar/unixodbc/2.3.2_1/include/sqlext.h

/usr/local/include/sqltypes.h -> /usr/local/Cellar/unixodbc/2.3.2_1/include/sqltypes.h

/usr/local/include/sqlucode.h -> /usr/local/Cellar/unixodbc/2.3.2_1/include/sqlucode.h

/usr/local/include/unixodbc_conf.h -> /usr/local/Cellar/unixodbc/2.3.2_1/include/unixodbc_conf.h

/usr/local/include/uodbc_extras.h -> /usr/local/Cellar/unixodbc/2.3.2_1/include/uodbc_extras.h

/usr/local/include/uodbc_stats.h -> /usr/local/Cellar/unixodbc/2.3.2_1/include/uodbc_stats.h

/usr/local/share/man/man5/odbc.ini.5 -> /usr/local/Cellar/unixodbc/2.3.2_1/share/man/man5/odbc.ini.5

/usr/local/share/man/man5/odbcinst.ini.5 -> /usr/local/Cellar/unixodbc/2.3.2_1/share/man/man5/odbcinst.ini.5

/usr/local/lib/libodbc.2.dylib -> /usr/local/Cellar/unixodbc/2.3.2_1/lib/libodbc.2.dylib

/usr/local/lib/libodbc.dylib -> /usr/local/Cellar/unixodbc/2.3.2_1/lib/libodbc.dylib

/usr/local/lib/libodbccr.2.dylib -> /usr/local/Cellar/unixodbc/2.3.2_1/lib/libodbccr.2.dylib

/usr/local/lib/libodbccr.dylib -> /usr/local/Cellar/unixodbc/2.3.2_1/lib/libodbccr.dylib

/usr/local/lib/libodbcinst.2.dylib -> /usr/local/Cellar/unixodbc/2.3.2_1/lib/libodbcinst.2.dylib

/usr/local/lib/libodbcinst.dylib -> /usr/local/Cellar/unixodbc/2.3.2_1/lib/libodbcinst.dylib

==> Summary

🍺  /usr/local/Cellar/unixodbc/2.3.7: 46 files, 1.8MB

==> Installing php@5.6 dependency: webp

==> Downloading https://homebrew.bintray.com/bottles/webp-1.0.0.high_sierra.bott

######################################################################## 100.0%

==> Pouring webp-1.0.0.high_sierra.bottle.tar.gz

🍺  /usr/local/Cellar/webp/1.0.0: 38 files, 2MB

==> Installing php@5.6

==> Downloading https://homebrew.bintray.com/bottles/php@5.6-5.6.38.high_sierra.

######################################################################## 100.0%

==> Pouring php@5.6-5.6.38.high_sierra.bottle.tar.gz

==> /usr/local/Cellar/php@5.6/5.6.38/bin/pear config-set php_ini /usr/local/etc/

==> /usr/local/Cellar/php@5.6/5.6.38/bin/pear config-set php_dir /usr/local/shar

==> /usr/local/Cellar/php@5.6/5.6.38/bin/pear config-set doc_dir /usr/local/shar

==> /usr/local/Cellar/php@5.6/5.6.38/bin/pear config-set ext_dir /usr/local/lib/

==> /usr/local/Cellar/php@5.6/5.6.38/bin/pear config-set bin_dir /usr/local/opt/

==> /usr/local/Cellar/php@5.6/5.6.38/bin/pear config-set data_dir /usr/local/sha

==> /usr/local/Cellar/php@5.6/5.6.38/bin/pear config-set cfg_dir /usr/local/shar

==> /usr/local/Cellar/php@5.6/5.6.38/bin/pear config-set www_dir /usr/local/shar

==> /usr/local/Cellar/php@5.6/5.6.38/bin/pear config-set man_dir /usr/local/shar

==> /usr/local/Cellar/php@5.6/5.6.38/bin/pear config-set test_dir /usr/local/sha

==> /usr/local/Cellar/php@5.6/5.6.38/bin/pear config-set php_bin /usr/local/opt/

==> /usr/local/Cellar/php@5.6/5.6.38/bin/pear update-channels

==> Caveats

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

    LoadModule php5_module /usr/local/opt/php@5.6/lib/httpd/modules/libphp5.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/5.6/

php@5.6 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@5.6 first in your PATH run:

  echo 'export PATH="/usr/local/opt/php@5.6/bin:$PATH"' >> ~/.bash_profile

  echo 'export PATH="/usr/local/opt/php@5.6/sbin:$PATH"' >> ~/.bash_profile

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

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

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

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

  brew services start php@5.6

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

  php-fpm

==> Summary

🍺  /usr/local/Cellar/php@5.6/5.6.38: 498 files, 63.9MB

==> Caveats

==> apr

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

because Apple's CLT package contains apr.

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

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

==> openssl

A CA file has been bootstrapped using certificates from the SystemRoots

keychain. To add additional certificates (e.g. the certificates added in

the System keychain), place .pem files in

  /usr/local/etc/openssl/certs

and run

  /usr/local/opt/openssl/bin/c_rehash

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

because Apple has deprecated use of OpenSSL in favor of its own TLS and crypto libraries.

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

  echo 'export PATH="/usr/local/opt/openssl/bin:$PATH"' >> ~/.bash_profile

For compilers to find openssl you may need to set:

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

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

==> apr-util

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

because Apple's CLT package contains apr.

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

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

==> aspell

Installation of the 'is' (Icelandic) and 'nb' (Norwegian) dictionaries is

currently broken. They can be installed manually.

See: https://github.com/Homebrew/homebrew-core/issues/28074

==> autoconf

Emacs Lisp files have been installed to:

  /usr/local/share/emacs/site-lisp/autoconf

==> gettext

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

because macOS provides the BSD gettext library & some software gets confused if both are in the library path.

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

  echo 'export PATH="/usr/local/opt/gettext/bin:$PATH"' >> ~/.bash_profile

For compilers to find gettext you may need to set:

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

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

==> libffi

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

because some formulae require a newer version of libffi.

For compilers to find libffi you may need to set:

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

==> 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:$PATH"' >> ~/.bash_profile

  echo 'export PATH="/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"

==> libiconv

libiconv 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 libiconv first in your PATH run:

  echo 'export PATH="/usr/local/opt/libiconv/bin:$PATH"' >> ~/.bash_profile

For compilers to find libiconv you may need to set:

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

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

==> 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"

==> 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:$PATH"' >> ~/.bash_profile

  echo 'export PATH="/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"

==> libtool

In order to prevent conflicts with Apple's own libtool we have prepended a "g"

so, you have instead: glibtool and glibtoolize.

==> php@5.6

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

    LoadModule php5_module /usr/local/opt/php@5.6/lib/httpd/modules/libphp5.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/5.6/

php@5.6 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@5.6 first in your PATH run:

  echo 'export PATH="/usr/local/opt/php@5.6/bin:$PATH"' >> ~/.bash_profile

  echo 'export PATH="/usr/local/opt/php@5.6/sbin:$PATH"' >> ~/.bash_profile

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

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

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

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

  brew services start php@5.6

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

  php-fp

www:insoler brentsu$ php -v (顯示PHP的版本號碼)

PHP 5.5.31 (cli) (built: Jan  8 2016 08:33:30) 

Copyright (c) 1997-2015 The PHP Group

Zend Engine v2.5.0, Copyright (c) 1998-2015 Zend Technologies

www:insoler brentsu$

看不懂以上的英文訊息?沒關係!你根本不需要看!事實上我看不懂也不想浪費時間看!簡單的說,只要打開終端機的視窗畫面,然後「複製、貼上」這2個指令即可:

  • /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
  • brew install php56

Linux陣營的拿手好戲之一,就是把簡單的事情複雜化!把「不需要記憶」「不需要背、不需要死記」的事情極度複雜化!請放心,不要說你記不住這2個指令,我也不想背!

光是「複製、貼上」這2個指令,就可以輕輕鬆鬆安裝好PHP 5.6?那就大錯特錯!這只是「惡夢」的開始而已!

因為你可以看到查詢到的PHP版本號碼是macOS內建的PHP 5.5.31,而不是剛剛才安裝好的PHP 5.6.38!這是因為Homebrew會把安裝的套件全部安裝在「 /usr/local/ 」檔案夾底下。但是maOS系統命令列路徑是「/usr/bin/」所以直接輸入「php -v」這個指令的話,只會執行放在「/usr/bin/」檔案夾底下的php程式,而不是使用Homebrew安裝的PHP 5.6.38!

如果你沒有手動修改macOS命令列的PATH路徑,或是Apache的httpd.conf,以及剛剛安裝好的PHP 5.6.38的php.ini設定檔案,光是執行「brew install php56」的安裝指令,絕對不會得到你想要的結果。也就是說,安裝好以後,其實根本完全無法使用!

這就是我強調的「免費、開源」的套件全部都是個人、社群團體自行開發的程式,全部各自為政!自己維護自己的版本,完全不管別人!簡單的說,「免費、開源」只不過是一堆雜牌大軍,而且顯示一堆無謂的安裝過程訊息,只會困擾使用者,對於解決問題,完全沒有任何幫助!

結論非常簡單:

不但無法安裝想要升級的PHP 5.6(你不需要另外安裝Server,所有的macOS全部都有內建PHP)甚至也無法安裝php56-imagick模組!請繼續閱讀這篇文章:

在macOS Mojave 10.14安裝Homebrew與ImageMagick的php56-imagick模組

蘇言霖 2018/10/24 0 4064
Comments
Order by: 
Per page:
 
  • There are no comments yet
Rate
0 votes
Post info
蘇言霖
「超級懶貓級」社群網站站長
2018/10/24 (2010 days ago)
Actions