

#Install mamp mac
Setting up a Mac without MAMP used to be sort of complicated, but it's been getting easier and easier with every version of Mac OS, and it's not that hard any more. That takes up space on my machine and occasionally causes trouble when some operation uses the wrong version of PHP because of confusion about which installation should take precedence. MAMP is easy to install, but it creates a duplicate version of PHP and a duplicate version of Apache. I used to use MAMP for this, but lately have been using the built-in functionality that comes on a Mac instead.

#Install mamp install
Note the instructions once the install completes - you need to run two commands to add brew to the PATH.įrom there, reinstall the packages that were displayed from from the 'brew list' command previously.I recently got a new Mac and needed to configure it as a local web server for the many Drupal sites I work on. Now reinstall Homebrew: /bin/bash -c "$(curl -fsSL )" Take note of any folders the uninstaller indicates will need to be removed manually. Run the uninstaller: /bin/bash uninstall.sh
#Install mamp download
Then run this command to download the Homebrew removal script: /bin/bash -c "$(curl -fsSL )" Take a screenshot of the returned list so you know what needs to be reinstalled (as removing Homebrew will also remove all of the installed packages). You should see a list similar to this (yours will have different packages listed): This will ensure that Homebrew is installed at the correct location for the type of Mac you're on (Apple Silicone vs Intel) and any dependency issues will be fixed.įirst step is to take note of the currently installed brew packages by running: brew list A solution that will work in most cases is uninstalling and reinstalling Homebrew.

There are many possible scenarios as to how the dependency issue could have occurred. It sounds like there are dependency issues relating to the "msodbcsql17" package.
#Install mamp how to
PHP Warning: PHP Startup: Unable to load dynamic library 'sqlsrv.so' (tried: /Applications/MAMP/bin/php/php7.4.21/lib/php/extensions/no-debug-non-zts-20190902/sqlsrv.so (dlopen(/Applications/MAMP/bin/php/php7.4.21/lib/php/extensions/no-debug-non-zts-20190902/sqlsrv.so, 0x0009): symbol not found in flat namespace '_SQLAllocHandle'), /Applications/MAMP/bin/php/php7.4.21/lib/php/extensions/no-debug-non-zts-20190902/sqlsrv.so.so (dlopen(/Applications/MAMP/bin/php/php7.4.21/lib/php/extensions/no-debug-non-zts-20190902/sqlsrv.so.so, 0x0009): symbol not found in flat namespace '_SQLAllocHandle')) in Unknown on line 0Īnyone have an idea what's triggering the error for "symbol not found in flat namespace '_SQLAllocHandle'" and how to resolve it? However, every time the servers are started the following errors are fired, outputting to the php error log: PHP Warning: PHP Startup: Unable to load dynamic library 'pdo_sqlsrv.so' (tried: /Applications/MAMP/bin/php/php7.4.21/lib/php/extensions/no-debug-non-zts-20190902/pdo_sqlsrv.so (dlopen(/Applications/MAMP/bin/php/php7.4.21/lib/php/extensions/no-debug-non-zts-20190902/pdo_sqlsrv.so, 0x0009): symbol not found in flat namespace '_SQLAllocHandle'), /Applications/MAMP/bin/php/php7.4.21/lib/php/extensions/no-debug-non-zts-20190902/pdo_sqlsrv.so.so (dlopen(/Applications/MAMP/bin/php/php7.4.21/lib/php/extensions/no-debug-non-zts-20190902/pdo_sqlsrv.so.so, 0x0009): symbol not found in flat namespace '_SQLAllocHandle')) in Unknown on line 0 Sudo CXXFLAGS="-I/opt/homebrew/opt/unixodbc/include/" LDFLAGS="-L/opt/homebrew/lib/" pecl install pdo_sqlsrvĪdded these two lines to the MAMP PHP config file in the Dynamic Extensions section (Languages > PHP > Enable other extensions):Įxtension=/Applications/MAMP/bin/php/php7.4.21/lib/php/extensions/no-debug-non-zts-20190902/pdo_sqlsrv.soĮxtension=/Applications/MAMP/bin/php/php7.4.21/lib/php/extensions/no-debug-non-zts-20190902/sqlsrv.so Sudo CXXFLAGS="-I/opt/homebrew/opt/unixodbc/include/" LDFLAGS="-L/opt/homebrew/lib/" pecl install sqlsrv I Ran these commands: brew tap microsoft/mssql-release
