New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
macOS 11.6 - M1 - "OpenSSL library could not be loaded, make sure OpenSSL 1.0 or 1.1 is installed" #1319
Comments
Yes @LinkingYou it's a known issue and ODBC team is looking into this. Meanwhile, please check this issue for workarounds. |
Hi @yitam , thank you for your prompt reply. The variant suggested in this article is unfortunately not successful for me. This is probably also due to the fact that the paths are completely different for a new Brew installation on an M1 Mac under Big Sur. Openssl 1.1 is located here:
The /usr/local folder looks like this:
I have already tried to remove the homebrew paths from the Path variable and to symlink the Openssl 1.1 binary to /usr/local/bin. "which openssl" then pointed to this binary and with "openssl version" the 1.1.1l was also confirmed. But the error remains as described. |
Hi @LinkingYou, is your Homebrew in emulator mode? |
Hi @yitam , no - here are my "brew config" output - "rosetta" is not in use:
On the Homebrew site https://docs.brew.sh/Installation is the installation path for "Apple Silicon" described with "/opt/homebrew". It's a brand new Mac - not an upgrade from a previous version of macOS. |
Thanks for your confirmation, @LinkingYou In Apple M1, make sure there's no OpenSSL@3 and then try the following steps:
If this already exists please Then try |
Hi @yitam , great!! Openssl@3 is already present, because it's "required by msodbcsql17 and mssql-tools, which are currently installed". But your symlink works for me:
Many thanks for your support!!!! I hereby close the ticket - the workaround is sufficient for me for now. |
You're very welcome, @LinkingYou. Glad to be of help! |
PHP Driver version or file name
SQL Server version
Microsoft SQL Server 2012
Client operating system
macOS Big Sur 11.6 on a MacBook Air (M1, 2020)
PHP version
Microsoft ODBC Driver version
Problem description
I have installed PHP, the microsoft odbc driver and sqlsrv / pdo_sqlsrv following this tutorial https://github.com/microsoft/msphpsql/blob/master/Linux-mac-install.md#installing-the-drivers-on-macos on my new Mac.
The pecl-install-commands I have changed to the latest beta version:
At first everything looked fine. But if i want to connect to the database server, i always get this errors:
Uncaught Exception: SQLSTATE[08001]: [Microsoft][ODBC Driver 17 for SQL Server]SSL Provider: [OpenSSL library could not be loaded, make sure OpenSSL 1.0 or 1.1 is installed]
I also tested using the test scripts in the manual above with the same error messages.
Here are some more informations about my openssl installation:
Does anyone have any idea how to fix the problem or further debug it?
The text was updated successfully, but these errors were encountered: