I've spent the better part of a day researching this. Yesterday, I updated my Mac laptop to High Sierra. That updated the Server app, which runs my dev environment. The environment is fine except that I can't get mcrypt installed. Mac HS comes with PHP 5.6.30 and I've gone through these steps (https://michaelgracie.com/2016/09/plugging-mcrypt-into-php-on-macos-sierra-10-12/) multiple times. I get to the step where I run
MACOSX_DEPLOYMENT_TARGET=10.13 CFLAGS='-O3 -fno-common -arch i386 -arch x86_64' LDFLAGS='-O3 -arch i386 -arch x86_64' CXXFLAGS='-O3 -fno-common -arch i386 -arch x86_64' ./configure --with-php-config=/usr/bin/php-config
But it returns:
-bash: ./configure: No such file or directory
Any help would be extremely appreciated.
I have the same problem as you, as i had updated to high Sierra yesterday and screw my dev environment. I finally found out High Sierra comes already with Php71 so the one i already had install was been override, so what i did was this:
for i in $(brew list | grep php); do brew uninstall $i; done
it got my php working now all i did was install
brew install php71-mcrypt php71-imagick
boom worked like a charm for me, hope it helps you or anyone else
All this was from the terminal
also this link may help you as well
https://getgrav.org/blog/macos-sierra-apache-multiple-php-versions