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 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. 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
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |