weprovide / valet-plus

Blazing fast macOS PHP development environment
1.55k stars 209 forks source link

Homebrew/php is deprecated in favor of homebrew/core #127

Closed Neodork closed 6 years ago

Neodork commented 6 years ago

What is the problem? Homebrew/php is deprecated in favor of homebrew/core which now has support for php formulae. Homebrew/core supports the following php versions: 5.6, 7.0, 7.1, 7.2. When people use some valet or brew commands which trigger an update they will brick their valet+ installation. Due to PHP not being able to find the missing extensions which are now managed by PECL.

The new homebrew/core php packages have several extensions prepackaged like: mcrypt and intl. Packages should now be managed using the PHP package manager PECL.

What to do?

Pecl manager supported versions

Current progress can be followed at https://github.com/tamtamnl/valet-plus/tree/hotfix/homebrew-core-php and will soon be followed up by a PR for the community to judge.

Edit: Merged.

samgranger commented 6 years ago

I think we can all say that we're very grateful for all the hard work @Neodork!

We have created a new release with your PR. Please run the following commands after upgrading to this new version: valet fix followed by valet install. Please create a new ticket for any issues you may encounter while upgrading.

allrude commented 6 years ago

Clean install still gives me problems :-(

valet install
Password:
[nginx] Stopping
[mysql] Stopping
[redis] Stopping
[devtools] Installing
[wp-cli] Installing
Error: homebrew/php was deprecated. This tap is now empty as all its formulae were migrated.
[n98-magerun] Installing
Error: homebrew/php was deprecated. This tap is now empty as all its formulae were migrated.
Error: No available formula with the name "n98-magerun" 
==> Searching for a previously deleted formula (in the last month)...
Warning: homebrew/core is shallow clone. To get complete history run:
  git -C "$(brew --repo homebrew/core)" fetch --unshallow

Error: No previously deleted formula found.
==> Searching local taps...
Error: No similarly named formulae found.
==> Searching taps on GitHub...
==> Searching for similarly named formulae...
==> Searching taps...
Error: No formulae found in taps.
In Brew.php line 117:

  Brew was unable to install [n98-magerun].  

install [--with-mariadb]
Neodork commented 6 years ago

@allrude Please create a new ticket so we can help you there. But from the looks of it you're running an older version.

Neodork commented 6 years ago

Pr is merged and has been deployed in the 1.0.12 release.

kanduvisla commented 6 years ago

I tried version 1.0.13 today, but it didn't work flawlesly. I did not have a bricked installation.

So after updating to 1.0.13, I typed: valet fix

Removing all old php56- packages from homebrew/php tap
Removing all old php70- packages from homebrew/php tap
Uninstalling /usr/local/Cellar/php70-apcu/5.1.8... (23 files, 160.2KB)
Uninstalling /usr/local/Cellar/php70-geoip/1.1.1... (3 files, 28.6KB)
Uninstalling /usr/local/Cellar/php70-intl/7.0.27_24... (7 files, 503.7KB)
php70-intl 7.0.26_23, 7.0.26_22, 7.0.20_14, 7.0.22_17 4 are still installed.
Remove all versions with `brew uninstall --force php70-intl`.
Uninstalling /usr/local/Cellar/php70-mcrypt/7.0.20_12... (7 files, 146.4KB)
Uninstalling /usr/local/Cellar/php70-opcache/7.0.22_13... (7 files, 266.1KB)
Uninstalling /usr/local/Cellar/php70-xdebug/2.5.5... (4 files, 196.0KB)
Removing all old php71- packages from homebrew/php tap
Uninstalling /usr/local/Cellar/php71-apcu/5.1.8... (23 files, 160.4KB)
Uninstalling /usr/local/Cellar/php71-geoip/1.1.1... (3 files, 28.6KB)
Uninstalling /usr/local/Cellar/php71-imagick/3.4.3_6... (4 files, 335.7KB)
Uninstalling /usr/local/Cellar/php71-intl/7.1.14_25... (7 files, 543.6KB)
php71-intl 7.1.12_22, 7.1.12_23, 7.1.13_24 3 are still installed.
Remove all versions with `brew uninstall --force php71-intl`.
Uninstalling /usr/local/Cellar/php71-mcrypt/7.1.8_15... (7 files, 186.1KB)
Uninstalling /usr/local/Cellar/php71-opcache/7.1.8_13... (7 files, 459.5KB)
Uninstalling /usr/local/Cellar/php71-xdebug/2.6.0... (4 files, 225.6KB)
Removing all old php72- packages from homebrew/php tap
Removing all old n98-magerun packages from homebrew/php tap
Uninstalling /usr/local/Cellar/n98-magerun/1.97.27... (5 files, 3.8MB)
Uninstalling /usr/local/Cellar/n98-magerun2/1.5.0... (5 files, 4.4MB)
Removing drush package from homebrew/php tap
[php5.6] Disabling modules: apcu, intl, mcrypt
[php7.0] Disabling modules: apcu, intl, mcrypt
[php7.1] Disabling modules: apcu, intl, mcrypt
[php7.2] Disabling modules: apcu, intl, mcrypt
Trying to remove php56...
Error: No such keg: /usr/local/Cellar/php56
Trying to remove php70...
Error: Refusing to uninstall /usr/local/Cellar/php70/7.0.27_19
because it is required by php70-intl 7.0.26_23, php70-intl 7.0.26_22, php70-intl 7.0.20_14, php70-intl 7.0.22_17, which are currently installed.
You can override this and force removal with:
  brew uninstall --ignore-dependencies php70
Trying to remove php71...
Error: Refusing to uninstall /usr/local/Cellar/php71/7.1.14_25
because it is required by php71-intl 7.1.12_22, php71-intl 7.1.12_23, php71-intl 7.1.13_24, which are currently installed.
You can override this and force removal with:
  brew uninstall --ignore-dependencies php71
Trying to remove php72...
Error: No such keg: /usr/local/Cellar/php
Installing and linking new PHP homebrew/core version.
Error: No such keg: /usr/local/Cellar/php@7.1
Updating Homebrew...
Warning: php@7.1 is outdated!
To avoid broken installations, as soon as possible please run:
  brew upgrade
Or, if you're OK with a less reliable fix:
  brew upgrade php@7.1
Warning: php@7.0 is outdated!
To avoid broken installations, as soon as possible please run:
  brew upgrade
Or, if you're OK with a less reliable fix:
  brew upgrade php@7.0
==> Auto-updated Homebrew!
Updated 3 taps (homebrew/core, homebrew/php, caskroom/cask).
==> New Formulae
annie
apache-arrow-glib
aws-es-proxy
composer
cquery
flintrock
goto
gr-osmosdr
hcloud
jrtplib
jsonrpc-glib
jthread
latexdiff
libdazzle
meson-internal
mint
netdata
parallelstl
php-code-sniffer
php-cs-fixer
phplint
phpunit
qsoas
rtptools
scrcpy
ssh-permit-a38
template-glib
tox
trezor-agent
util-linux
==> Updated Formulae
abcmidi
abnfgen
adwaita-icon-theme
agda
agedu
allegro
alot
amber
ammonite-repl
angular-cli
anjuta
ansible
ant
apache-arrow
apache-geode
apibuilder-cli
apktool
arangodb
argus-clients
armor
artifactory
arx
asciinema
asio
at-spi2-atk
at-spi2-core
atk
atkmm
ats2-postiats
audacious
autopep8
awf
aws-sdk-cpp
awscli
azure-cli
babl
ballerina
baobab
basex
bazel
bcftools
bcpp
bedops
bettercap
biogeme
bit
bitcoin
bitrise
bokken
botan
braid
brotli
buku
byteman
bzt
c14-cli
cabal-install
caddy
caf
calicoctl
ccache
ceres-solver
certbot
chakra
chamber
chapel
checkstyle
chromedriver
chronograf
cimg
clamav
clearlooks-phenix
cliclick
clinfo
closure-compiler
clutter-gst
cmake
cnats
cockroach
cocoapods
coffeescript
collectd
conan
conjure-up
container-diff
convmv
convox
corebird
coreos-ct
couchdb
cppcheck
cryptopp
czmq
darcs
dartsim
davmail
dbhash
dcm2niix
dcos-cli
ddgr
dependency-check
dhall-json
di
diff-pdf
diffoscope
diffuse
django-completion
dnscrypt-proxy
docfx
docker
docker-completion
docker-compose
docker-compose-completion
doctl
dovecot
dscanner
dspdfviewer
duc
duck
dwdiff
dynamips
e2fsprogs
easy-tag
efl
eiffelstudio
ejabberd
embulk
erlang
erlang@19
etcd
evince
exomizer
exploitdb
eye-d3
faas-cli
fades
fail2ban
fceux
fd
fdroidserver
ffmbc
fibjs
file-roller
firebase-cli
fits
flatbuffers
flawfinder
flow
fluent-bit
fn
fobis
folly
fontforge
fonttools
fq
freeciv
freeling
freetds
frege
fribidi
frugal
fuse-emulator
futhark
g3log
gabedit
ganglia
gbdfed
gcab
gdal
gdcm
gdk-pixbuf
gdmap
geckodriver
gedit
geeqie
gegl
genometools
gerbv
get-flash-videos
get_iplayer
geth
getmail
ghex
ghostscript
git
git-annex
git-ftp
git-town
gitbucket
gitfs
gitg
gitlab-runner
gitless
gjs
glade
glib
glibmm
gmt
gmt@4
gnatsd
gnome-autoar
gnome-builder
gnome-recipes
gnome-themes-standard
gnu-sed
gnumeric
gnupg
go
go-jira
go@1.9
gobby
gobject-introspection
godep
goenv
goffice
gom
goocanvas
google-benchmark
gosu
gpa
gpredict
gqview
grafana
grails
grakn
graphene
grip
gron
groonga
groovyserv
grpc
grsync
gsmartcontrol
gsoap
gspell
gssdp
gst-editing-services
gst-libav
gst-plugins-bad
gst-plugins-good
gst-plugins-ugly
gst-python
gstreamermm
gtk-chtheme
gtk-doc
gtk-engines
gtk-gnutella
gtk-murrine-engine
gtk-vnc
gtkdatabox
gtkextra
gtkmm
gtkmm3
gtksourceview
gtksourceview3
gtksourceview@4
gtksourceviewmm
gtksourceviewmm3
gtkspell3
gucharmap
gupnp
gupnp-av
gupnp-tools
gutenberg
gwyddion
hadolint
handbrake
haproxy
harfbuzz
headphones
heroku
hfstospell
hledger
hlint
homebank
htmldoc
htop
htslib
http-parser
httpd
hugo
hwloc
i2p
i3
i3status
icu4c
imagemagick
imagemagick@6
influxdb
internetarchive
ipfs
ipython
ipython@5
ircd-hybrid
jadx
jbig2enc
jena
jenkins
jenkins-job-builder
jenkins-lts
jhipster
joplin
jpegoptim
json-glib
juju
kedge
klavaro
knot
knot-resolver
kobalt
kompose
kops
kotlin
kubectx
kubeless
kubernetes-cli
lablgtk
languagetool
lasi
laszip
lbdb
lean-cli
libatomic_ops
libbi
libcdr
libcouchbase
libdill
libdvdcss
libepoxy
libfreehand
libgit2
libgit2-glib
libglade
libglademm
libgnomecanvas
libgnomecanvasmm
libgweather
libhdhomerun
libhttpseverywhere
libidn
libinfinity
liblas
liblcf
libmpdclient
libmspub
libmtp
libnice
libosmium
libphonenumber
libqalculate
librdkafka
librealsense
libressl
librsvg
libsecret
libsoup
libspectre
libswiften
libtensorflow
libucl
libusb
libuv
libvirt
libvisio
libzip
linkerd
lldpd
lmdb
lmod
logtalk
lolcat
lua
lua@5.1
lxc
mackup
macvim
mame
mapnik
mapserver
mariadb
mariadb@10.1
mat
maxwell
mbedtls
mdk
media-info
mediaconch
mednafen
memcached
mercurial
meson
metabase
mftrace
mill
mimic
minbif
minio-mc
miniupnpc
mitmproxy
mkvtoolnix
mm-common
modules
monetdb
mongo-c-driver
mongodb@3.4
mpd
msitools
multimarkdown
mypy
nano
nativefier
natsError: php@7.1 7.1.14_25 is already installed
To upgrade to 7.1.16, run `brew upgrade php@7.1`
-streaming-server
ncmpc
ncmpcpp
nco
neo4j
neofetch
neomutt
newsboat
nginx
nicotine-plus
nifi
node
node-build
node@4
node@6
node@8
nodeenv
noti
notmuch
nss
ntl
ntopng
nuget
nuxeo
ocrmypdf
odpi
offlineimap
open-mpi
open-scene-graph
openimageio
openldap
openrct2
openshift-cli
openslide
openssh
openssl
openssl@1.1
openttd
openvdb
optipng
orocos-kdl
osm2pgrouting
osmium-tool
osquery
packer
packmol
paket
pandoc-crossref
pango
pangomm
paps
parallel
passenger
pazpar2
pcb
pcb2gcode
pdal
pdf2htmlex
pdf2svg
pdfgrep
pdfpc
pdfsandwich
pdftoipe
pdnsrec
percona-server-mongodb
percona-xtrabackup
pgcli
pgroonga
php
picard-tools
pick
pidgin
pioneers
pipenv
pipes-sh
planck
plantuml
plplot
pmd
points2grid
postgis
pqiv
pre-commit
prefixsuffix
presto
primesieve
proj
psqlodbc
pugixml
pycodestyle
pyenv
pygobject3
pygtk
pygtkglext
pygtksourceview
python
pytouhou
qbs
qpid-proton
qscintilla2
quicktype
raylib
re2
redis
reminiscence
robot-framework
rocksdb
rom-tools
rrdtool
ruby
ruby-build
ruby@2.2
ruby@2.3
rust
s-nail
s6
sagittarius-scheme
saltstack
samtools
sbcl
sbt
scipy
scm-manager
sdb
sdlpop
sile
simgrid
simple-tiles
singular
sip
siril
sjk
skaffold
skafos
skinny
slimerjs
solr
sops
sourcekitten
sourcery
sox
sphinx-doc
spigot
sqldiff
sqlite
sqlite-analyzer
sqlmap
srt
ssh-copy-id
sshuttle
stdman
stellar-core
submarine
suil
svgcleaner
swiftlint
sylpheed
syncthing
synfig
sysbench
sysdig
talloc
tarantool
tbb
tectonic
teleport
terminator
terraform
terragrunt
testssl
tinyxml2
tmuxinator-completion
todo-txt
tomcat
treefrog
twarc
txr
typescript
uhd
unbound
unixodbc
unrar
unyaffs
vala
vault
vim
vim@7.4
vips
vis
vnu
vte
vte3
watch
webpack
wesnoth
widelands
wine
wireshark
xboard
xdot
xmount
xmrig
xrootd
xsane
xtensor
yash
yaws
yaz
yelp-tools
youtube-dl
yq
zabbix
zebra
zenity
zeromq
zim
zorba
zsh
zstd
==> Renamed Formulae
php56 -> php@5.6
php70 -> php@7.0
php71 -> php@7.1
==> Deleted Formulae
arm
==> Processing php71 formula rename to php@7.1
==> Unlinking php71
==> Moving php71 versions to /usr/local/Cellar/php@7.1
==> Relinking php@7.1
==> Processing php70 formula rename to php@7.0
==> Unlinking php70
==> Moving php70 versions to /usr/local/Cellar/php@7.0
==> Relinking php@7.0

Unlinking /usr/local/Cellar/php@7.1/7.1.14_25... 0 symlinks removed
Linking /usr/local/Cellar/php@7.1/7.1.14_25... 17 symlinks created

If you need to have this software first in your PATH instead consider running:
  echo 'export PATH="/usr/local/opt/php@7.1/bin:$PATH"' >> ~/.zshrc
  echo 'export PATH="/usr/local/opt/php@7.1/sbin:$PATH"' >> ~/.zshrc
[brew] untapping formulae homebrew/php
Untapping homebrew/php... (697 files, 4.6MB)
Untapped 0 formulae
Please check your linked php version, you might need to restart your terminal!
Linked PHP should be php 7.1:
Failed loading /usr/local/opt/php71-opcache/opcache.so:  dlopen(/usr/local/opt/php71-opcache/opcache.so, 9): image not found
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/opt/php71-apcu/apcu.so' - dlopen(/usr/local/opt/php71-apcu/apcu.so, 9): image not found in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/opt/php71-geoip/geoip.so' - dlopen(/usr/local/opt/php71-geoip/geoip.so, 9): image not found in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/opt/php71-imagick/imagick.so' - dlopen(/usr/local/opt/php71-imagick/imagick.so, 9): image not found in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/opt/php71-intl/intl.so' - dlopen(/usr/local/opt/php71-intl/intl.so, 9): image not found in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/opt/php71-mcrypt/mcrypt.so' - dlopen(/usr/local/opt/php71-mcrypt/mcrypt.so, 9): image not found in Unknown on line 0

Warning: PHP Startup: Unable to load dynamic library '/usr/local/opt/php71-apcu/apcu.so' - dlopen(/usr/local/opt/php71-apcu/apcu.so, 9): image not found in Unknown on line 0

Warning: PHP Startup: Unable to load dynamic library '/usr/local/opt/php71-geoip/geoip.so' - dlopen(/usr/local/opt/php71-geoip/geoip.so, 9): image not found in Unknown on line 0

Warning: PHP Startup: Unable to load dynamic library '/usr/local/opt/php71-imagick/imagick.so' - dlopen(/usr/local/opt/php71-imagick/imagick.so, 9): image not found in Unknown on line 0

Warning: PHP Startup: Unable to load dynamic library '/usr/local/opt/php71-intl/intl.so' - dlopen(/usr/local/opt/php71-intl/intl.so, 9): image not found in Unknown on line 0

Warning: PHP Startup: Unable to load dynamic library '/usr/local/opt/php71-mcrypt/mcrypt.so' - dlopen(/usr/local/opt/php71-mcrypt/mcrypt.so, 9): image not found in Unknown on line 0
PHP 7.1.14 (cli) (built: Feb  2 2018 08:42:59) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.1.0, Copyright (c) 1998-2018 Zend Technologies
------------------------------------------------------------

After this, I tried php -v:

~/.composer » php -v                                                                                                                            
Failed loading /usr/local/opt/php71-opcache/opcache.so:  dlopen(/usr/local/opt/php71-opcache/opcache.so, 9): image not found
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/opt/php71-apcu/apcu.so' - dlopen(/usr/local/opt/php71-apcu/apcu.so, 9): image not found in Unknown on line 0

Warning: PHP Startup: Unable to load dynamic library '/usr/local/opt/php71-apcu/apcu.so' - dlopen(/usr/local/opt/php71-apcu/apcu.so, 9): image not found in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/opt/php71-geoip/geoip.so' - dlopen(/usr/local/opt/php71-geoip/geoip.so, 9): image not found in Unknown on line 0

Warning: PHP Startup: Unable to load dynamic library '/usr/local/opt/php71-geoip/geoip.so' - dlopen(/usr/local/opt/php71-geoip/geoip.so, 9): image not found in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/opt/php71-imagick/imagick.so' - dlopen(/usr/local/opt/php71-imagick/imagick.so, 9): image not found in Unknown on line 0

Warning: PHP Startup: Unable to load dynamic library '/usr/local/opt/php71-imagick/imagick.so' - dlopen(/usr/local/opt/php71-imagick/imagick.so, 9): image not found in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/opt/php71-intl/intl.so' - dlopen(/usr/local/opt/php71-intl/intl.so, 9): image not found in Unknown on line 0

Warning: PHP Startup: Unable to load dynamic library '/usr/local/opt/php71-intl/intl.so' - dlopen(/usr/local/opt/php71-intl/intl.so, 9): image not found in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/opt/php71-mcrypt/mcrypt.so' - dlopen(/usr/local/opt/php71-mcrypt/mcrypt.so, 9): image not found in Unknown on line 0

Warning: PHP Startup: Unable to load dynamic library '/usr/local/opt/php71-mcrypt/mcrypt.so' - dlopen(/usr/local/opt/php71-mcrypt/mcrypt.so, 9): image not found in Unknown on line 0
PHP 7.1.14 (cli) (built: Feb  2 2018 08:42:59) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.1.0, Copyright (c) 1998-2018 Zend Technologies
------------------------------------------------------------

I thought, perhaps a valet install will solve this:

~/.composer » valet install                                                                                                                            
Failed loading /usr/local/opt/php71-opcache/opcache.so:  dlopen(/usr/local/opt/php71-opcache/opcache.so, 9): image not found
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/opt/php71-apcu/apcu.so' - dlopen(/usr/local/opt/php71-apcu/apcu.so, 9): image not found in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/opt/php71-geoip/geoip.so' - dlopen(/usr/local/opt/php71-geoip/geoip.so, 9): image not found in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/opt/php71-imagick/imagick.so' - dlopen(/usr/local/opt/php71-imagick/imagick.so, 9): image not found in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/opt/php71-intl/intl.so' - dlopen(/usr/local/opt/php71-intl/intl.so, 9): image not found in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/opt/php71-mcrypt/mcrypt.so' - dlopen(/usr/local/opt/php71-mcrypt/mcrypt.so, 9): image not found in Unknown on line 0
Failed loading /usr/local/opt/php71-opcache/opcache.so:  dlopen(/usr/local/opt/php71-opcache/opcache.so, 9): image not found
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/opt/php71-apcu/apcu.so' - dlopen(/usr/local/opt/php71-apcu/apcu.so, 9): image not found in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/opt/php71-geoip/geoip.so' - dlopen(/usr/local/opt/php71-geoip/geoip.so, 9): image not found in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/opt/php71-imagick/imagick.so' - dlopen(/usr/local/opt/php71-imagick/imagick.so, 9): image not found in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/opt/php71-intl/intl.so' - dlopen(/usr/local/opt/php71-intl/intl.so, 9): image not found in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/opt/php71-mcrypt/mcrypt.so' - dlopen(/usr/local/opt/php71-mcrypt/mcrypt.so, 9): image not found in Unknown on line 0
PHP Parse error:  syntax error, unexpected '' - dlopen(/usr/local/opt/php7' (T_CONSTANT_ENCAPSED_STRING), expecting ',' or ')' in Command line code on line 4
Password:
Failed loading /usr/local/opt/php71-opcache/opcache.so:  dlopen(/usr/local/opt/php71-opcache/opcache.so, 9): image not found
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/opt/php71-apcu/apcu.so' - dlopen(/usr/local/opt/php71-apcu/apcu.so, 9): image not found in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/opt/php71-geoip/geoip.so' - dlopen(/usr/local/opt/php71-geoip/geoip.so, 9): image not found in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/opt/php71-imagick/imagick.so' - dlopen(/usr/local/opt/php71-imagick/imagick.so, 9): image not found in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/opt/php71-intl/intl.so' - dlopen(/usr/local/opt/php71-intl/intl.so, 9): image not found in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/opt/php71-mcrypt/mcrypt.so' - dlopen(/usr/local/opt/php71-mcrypt/mcrypt.so, 9): image not found in Unknown on line 0
Failed loading /usr/local/opt/php71-opcache/opcache.so:  dlopen(/usr/local/opt/php71-opcache/opcache.so, 9): image not found
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/opt/php71-apcu/apcu.so' - dlopen(/usr/local/opt/php71-apcu/apcu.so, 9): image not found in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/opt/php71-geoip/geoip.so' - dlopen(/usr/local/opt/php71-geoip/geoip.so, 9): image not found in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/opt/php71-imagick/imagick.so' - dlopen(/usr/local/opt/php71-imagick/imagick.so, 9): image not found in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/opt/php71-intl/intl.so' - dlopen(/usr/local/opt/php71-intl/intl.so, 9): image not found in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/opt/php71-mcrypt/mcrypt.so' - dlopen(/usr/local/opt/php71-mcrypt/mcrypt.so, 9): image not found in Unknown on line 0
PHP Parse error:  syntax error, unexpected '' - dlopen(/usr/local/opt/php7' (T_CONSTANT_ENCAPSED_STRING), expecting ',' or ')' in Command line code on line 4
Failed loading /usr/local/opt/php71-opcache/opcache.so:  dlopen(/usr/local/opt/php71-opcache/opcache.so, 9): image not found
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/opt/php71-apcu/apcu.so' - dlopen(/usr/local/opt/php71-apcu/apcu.so, 9): image not found in Unknown on line 0

Warning: PHP Startup: Unable to load dynamic library '/usr/local/opt/php71-apcu/apcu.so' - dlopen(/usr/local/opt/php71-apcu/apcu.so, 9): image not found in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/opt/php71-geoip/geoip.so' - dlopen(/usr/local/opt/php71-geoip/geoip.so, 9): image not found in Unknown on line 0

Warning: PHP Startup: Unable to load dynamic library '/usr/local/opt/php71-geoip/geoip.so' - dlopen(/usr/local/opt/php71-geoip/geoip.so, 9): image not found in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/opt/php71-imagick/imagick.so' - dlopen(/usr/local/opt/php71-imagick/imagick.so, 9): image not found in Unknown on line 0

Warning: PHP Startup: Unable to load dynamic library '/usr/local/opt/php71-imagick/imagick.so' - dlopen(/usr/local/opt/php71-imagick/imagick.so, 9): image not found in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/opt/php71-intl/intl.so' - dlopen(/usr/local/opt/php71-intl/intl.so, 9): image not found in Unknown on line 0

Warning: PHP Startup: Unable to load dynamic library '/usr/local/opt/php71-intl/intl.so' - dlopen(/usr/local/opt/php71-intl/intl.so, 9): image not found in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/opt/php71-mcrypt/mcrypt.so' - dlopen(/usr/local/opt/php71-mcrypt/mcrypt.so, 9): image not found in Unknown on line 0

Warning: PHP Startup: Unable to load dynamic library '/usr/local/opt/php71-mcrypt/mcrypt.so' - dlopen(/usr/local/opt/php71-mcrypt/mcrypt.so, 9): image not found in Unknown on line 0
Could not open input file:
Warning: PHP Startup: Unable to load dynamic library '/usr/local/opt/php71-apcu/apcu.so' - dlopen(/usr/local/opt/php71-apcu/apcu.so, 9): image not found in Unknown on line 0

Warning: PHP Startup: Unable to load dynamic library '/usr/local/opt/php71-geoip/geoip.so' - dlopen(/usr/local/opt/php71-geoip/geoip.so, 9): image not found in Unknown on line 0

Warning: PHP Startup: Unable to load dynamic library '/usr/local/opt/php71-imagick/imagick.so' - dlopen(/usr/local/opt/php71-imagick/imagick.so, 9): image not found in Unknown on line 0

Warning: PHP Startup: Unable to load dynamic library '/usr/local/opt/php71-intl/intl.so' - dlopen(/usr/local/opt/php71-intl/intl.so, 9): image not found in Unknown on line 0

Warning: PHP Startup: Unable to load dynamic library '/usr/local/opt/php71-mcrypt/mcrypt.so' - dlopen(/usr/local/opt/php71-mcrypt/mcrypt.so, 9): image not found in Unknown on line 0

Parse error: syntax error, unexpected '' - dlopen(/usr/local/opt/php7' (T_CONSTANT_ENCAPSED_STRING), expecting ',' or ')' in Command line code on line 4/cli/valet.php
------------------------------------------------------------

I also did a brew upgrade after this, but now nothing seem to work anymore. Retrying valet fix or valet install will jost throw a lot of PHP errors about missing libraries. I'm guessing my symlinks to my libraries are broken, so I'll try to fix it manually, but I hope I can let Valet+ manage it instead for me.

Any help would be greatly appreciated. I had a working setup and I especially waited for the proposed fix, but it kind of blew up in my face ;-)

kanduvisla commented 6 years ago

So I was able to fix the library issues by moving /usr/local/etc/php/7.1/conf.d to /usr/local/etc/php/7.1/_conf.d, and create a new, empty folder /usr/local/etc/php/7.1/conf.d and let Valet+ populate it. This works. The only thing that is not changed now is that Nginx does not switch PHP version when I switch using the CLI. Any thoughts on that?

kanduvisla commented 6 years ago

The nginx fix was easy: I just had to remove ~/.valet/valet.sock and run valet restart. Valet would make a new socket and the binding with nginx would work perfectly when switching php versions.

Good work guys! Perhaps this use-case of mine could fix some issues or help other people who encounter these issues. To sum it up: When your valet fix and valet install is borked, do:

Neodork commented 6 years ago

@kanduvisla great you got it to work. Yes, all the old ext-*.ini files need to be moved (except for the opcache one) deleting the folder as you mentioned will regenerate the folder on install.

kanduvisla commented 6 years ago

@Neodork : shouldn't this be something that also should be done by the fix-command? My assumption was that valet fix would automagically set everything right for me. I can imagine that this might be challenging for the less tech-savvy people among us.

Neodork commented 6 years ago

@kanduvisla Currently the fix command tries to remove every supported extension (ext-*.ini) file. Then it tries to link the correct PHP. I didn't remove the directories because there might be users with custom configuration within their PHP installation. I found it dangerous.

However I do agree that people that are less into the subject should have an easier way to setup the correct configuration. How does adding --force option to force a new installation upon running valet fix sound to you?

kanduvisla commented 6 years ago

Fair point, a --force and/or a clear notification / instructions for this might be a good solution.

egor-xyz commented 6 years ago

How to install php70-tidy now?

pecl install -f tidy

Error:

running: phpize
Cannot find config.m4.
Make sure that you run '/usr/local/opt/php@7.0/bin/phpize' in the top level source directory of the module

ERROR: `phpize' failed
Neodork commented 6 years ago

@Egorby I think tidy is packaged within php 5+. You could try installing the brew version: brew install tidy-html5.