![]() 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 I can post any additionally information if it would be helpful to diagnose this problem.I Ran these commands: brew tap microsoft/mssql-release Now i checked for permissions on these files in Finder and it shows that I have full permission to read and write the files this folder. bash: /Applications/MAMP/bin/php/php5.4.3/bin/phpize: Permission denied Next thing i tried is running the MAMP specific phpize providing it the entire path manually like so: new-host-2:xdebug-2.2.0 Dima$ /Applications/MAMP/bin/php/php5.4.3/bin/phpize If i run echo $PATH i get: new-host-2:xdebug-2.2.0 Dima$ echo MAMP specific PHP path shows up ahead of '/usr/bin'. bash_profile already into the $PATH variable. This is puzzling because i added the MAMP specific PHP bin path to my. This is not the version I want to use, I want to use the MAMP installed version of phpize I assume since i want to install XDebug on the MAMP version of PHP. If i do a which phpize i get: new-host-2:xdebug-2.2.0 Dima$ which phpize Please check your autoconf installation and the Grep: /usr/include/php/Zend/zend_extensions.h: No such file or directoryĬannot find autoconf. Grep: /usr/include/php/Zend/zend_modules.h: No such file or directory Grep: /usr/include/php/main/php.h: No such file or directory ![]() ![]() When i run phpize I get the following message: new-host-2:xdebug-2.2.0 Dima$ phpize I searched online extensively so far and at the moment I am stuck on the part of XDebug "Installation Wizard" that tells me to "Run: phpize" on the source code I downloaded. I'm having a problem building / installing XDebug on Mac OSX with MAMP. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |