Install php71 on 10.14.2 failed


#1

Here is the output

➜  ~ brew install php@7.1
==> Installing dependencies for php@7.1: brotli, automake, cunit, pkg-config, c-ares, jansson, jemalloc, libev, doxygen, libevent, nghttp2, httpd, openldap, curl-openssl, unixodbc, freetds, libpng, gdbm, readline, sqlite, python@2, libxml2, itstool, docbook, docbook-xsl, boost, source-highlight, gtk-doc, glib, icu4c, libpq, tidy-html5, webp
==> Installing php@7.1 dependency: brotli
==> Downloading https://github.com/google/brotli/archive/v1.0.7.tar.gz
Already downloaded: /Users/orzorc/Library/Caches/Homebrew/brotli-1.0.7.tar.gz
==> cmake . -DCMAKE_C_FLAGS_RELEASE=-DNDEBUG -DCMAKE_CXX_FLAGS_RELEASE=-DNDEBUG -DCMAKE_INSTALL_PREFIX=/usr/local/Cellar/brotli/1.0.7 -DCMAKE_BUILD_TYPE=Release -DCMAKE_FI
Last 15 lines from /Users/orzorc/Library/Logs/Homebrew/brotli/01.cmake:
2018-12-21 12:04:19 +0800

cmake
.
-DCMAKE_C_FLAGS_RELEASE=-DNDEBUG
-DCMAKE_CXX_FLAGS_RELEASE=-DNDEBUG
-DCMAKE_INSTALL_PREFIX=/usr/local/Cellar/brotli/1.0.7
-DCMAKE_BUILD_TYPE=Release
-DCMAKE_FIND_FRAMEWORK=LAST
-DCMAKE_VERBOSE_MAKEFILE=ON
-Wno-dev


Do not report this issue to Homebrew/brew or Homebrew/core!


Error: You are using macOS 10.14.
We do not provide support for this pre-release version.
You may encounter build failures or other breakages.
Please create pull-requests instead of filing issues.

Error: You are using macOS 10.14.
We do not provide support for this pre-release version.
You may encounter build failures or other breakages.
Please create pull-requests instead of filing issues.

Please help


#2

Do not report this issue to Homebrew/brew or Homebrew/core!


(Sean Molenaar) #3

The issue is in brotli, could you print the output of brew update, brew doctor and brew gist-logs brotli ?


#4

thank you for your help, here is those output

➜  ~ brew update
Updated 1 tap (homebrew/core).
==> New Formulae
anycable-go         ghr                 pass-otp            swagger-codegen@2
atomist-cli         jmxterm             react-native-cli    tass64
dhall               kubeseal            ruby@2.5            termtosvg
==> Updated Formulae
node ✔                                   libssh
sphinx-doc ✔                             libstfl
abcm2ps                                  linkerd
algernon                                 llvm
ammonite-repl                            lmdb
angle-grinder                            logstash
angular-cli                              mame
apache-flink                             mariadb-connector-c
arcade-learning-environment              mas
autorest                                 maxwell
awscli                                   mdcat
babel                                    meson
babl                                     mikutter
ballerina                                minio
binaryen                                 minio-mc
bison                                    mkl-dnn
bitcoin                                  mockserver
blast                                    mono
bullet                                   mysql
caf                                      nasm
cgit                                     neovim
checkstyle                               netcdf
circleci                                 netpbm
clojure                                  newsboat
cocoapods                                nginx
cointop                                  nnn
commandbox                               node-build
conan                                    node@10
container-diff                           node@6
cryptopp                                 node@8
dartsim                                  nodenv
dcd                                      opencv
dependency-check                         openldap
dfmt                                     openvdb
diamond                                  orc-tools
diceware                                 osrm-backend
diffutils                                pagmo
dnscontrol                               parallel
docker-machine-parallels                 perl
doitlive                                 pgbadger
doxygen                                  pgweb
dpkg                                     php-cs-fixer
dscanner                                 picard-tools
dub                                      pilosa
dvm                                      plantuml
easyengine                               postgis
efl                                      pre-commit
elasticsearch                            protobuf
emscripten                               pulumi
erlang                                   pushpin
eslint                                   pygitup
exploitdb                                python
fb-client                                r
fbi-servefiles                           re2
ffmpeg2theora                            repo
firebase-cli                             robot-framework
fish                                     rom-tools
fmt                                      roswell
fn                                       rpm
futhark                                  rswift
gammaray                                 ruby
gauche                                   ruby-build
gdal                                     rust
gdb                                      salt
gdcm                                     sbt
gegl                                     schismtracker
get_iplayer                              shellshare
gexiv2                                   signify-osx
git-quick-stats                          sip
gitbucket                                skaffold
gitlab-gem                               skopeo
gitlab-runner                            statik
global                                   subversion
gnu-sed                                  supervisor
gnutls                                   swi-prolog
gobject-introspection                    swiftformat
goenv                                    swiftlint
gopass                                   syncthing
goreleaser                               sysdig
gowsdl                                   tbb
grakn                                    tcpreplay
grep                                     teleport
groff                                    terragrunt
groovy                                   tgui
gst-python                               theharvester
gtk+3                                    tika
gzip                                     tmuxinator-completion
handbrake                                topgrade
harfbuzz                                 tox
haste-client                             translate-shell
http-parser                              travis
hub                                      ucloud
hugo                                     uhd
hwloc                                    unnethack
imagemagick                              vala
jabba                                    verilator
jhipster                                 vice
kibana                                   vim
kibana@5.6                               vim@7.4
kitchen-sync                             vips
knot-resolver                            weboob
kontena                                  webpack
kops                                     weechat
languagetool                             wget
laszip                                   whois
ldc                                      wireguard-go
leptonica                                woboq_codebrowser
libbi                                    wolfssl
libccd                                   wpscan
libcds                                   wtf
libcec                                   wxmaxima
libcerf                                  xonsh
libetpan                                 xsimd
libhttpserver                            xtensor
libjwt                                   ydcv
libmicrohttpd                            yle-dl
libnice                                  youtube-dl
librealsense                             z3
librsvg                                  zstd
libsecret                                zurl
==> Deleted Formulae
gv                                       pyexiv2
➜  ~ brew doctor
Please note that these warnings are just used to help the Homebrew maintainers
with debugging if you file an issue. If everything you use Homebrew for is
working fine: please don't worry or file an issue; just ignore this. Thanks!

Warning: You have unlinked kegs in your Cellar
Leaving kegs unlinked can lead to build-trouble and cause brews that depend on
those kegs to fail to run properly once built. Run `brew link` on these:
  cmake
  autoconf

Warning: You are using macOS 10.14.
We do not provide support for this pre-release version.
You may encounter build failures or other breakages.
Please create pull-requests instead of filing issues.

Warning: Ruby version 2.3.7 is unsupported on 10.14. Homebrew
is developed and tested on Ruby 2.3.3, and may not work correctly
on other Rubies. Patches are accepted as long as they don't cause breakage
on supported Rubies.

Warning: Homebrew's sbin was not found in your PATH but you have installed
formulae that put executables in /usr/local/sbin.
Consider setting the PATH for example like so
  echo 'export PATH="/usr/local/sbin:$PATH"' >> ~/.zshrc
➜  ~ brew gist-logs brotli
https://gist.github.com/a0266f64c527733d860a885bd9dbac3c

(Sean Molenaar) #5

You’ve unlinked cmake and autoconf. If you brew link those it might work again.


#6

I tried , but still errors

➜  ~ brew link cmake
Linking /usr/local/Cellar/cmake/3.13.2... 
Error: Could not symlink share/emacs/site-lisp/cmake
/usr/local/share/emacs/site-lisp is not writable.
➜  ~ brew link autoconf 
Linking /usr/local/Cellar/autoconf/2.69... 
Error: Could not symlink bin/autoconf
Target /usr/local/bin/autoconf
already exists. You may want to remove it:
  rm '/usr/local/bin/autoconf'

To force the link and overwrite all conflicting files:
  brew link --overwrite autoconf

To list all files that would be deleted:
  brew link --overwrite --dry-run autoconf

for cmake, I dont know how to solve the issue.
for autoconf, I dont know should I follow the advise to overwrite.


(Sean Molenaar) #7

for the permissions, as per https://docs.brew.sh/Troubleshooting you can run: cd /usr/local && sudo chown -R $(whoami) bin etc include lib sbin share var opt Cellar Caskroom Frameworks

for autoconf, I’m not sure what that other autoconf is but I’d overwrite the link.


#8

Great.
After doing as you said, I also run echo 'export PATH="/usr/local/sbin:$PATH"' >> ~/.zshrc and everything works fine.
Thank you very much.