Skip to content
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

Extension seem to be missing in container when using Rosetta on Mac #181

Open
gertvdb opened this issue Mar 23, 2023 · 6 comments
Open

Extension seem to be missing in container when using Rosetta on Mac #181

gertvdb opened this issue Mar 23, 2023 · 6 comments

Comments

@gertvdb
Copy link

gertvdb commented Mar 23, 2023

Not quite sure what is causing this, but to make our setup work on apple with M1 chip we needed to enable rosetta else our mssql container (mcr.microsoft.com/mssql/server:2019-latest) did not work.

But now we are getting this error :
SQLSTATE[01000]: [unixODBC][Driver Manager]Can't open lib '/opt/microsoft/msodbcsql17/lib64/libmsodbcsql  -17.6.so.1.1' : file not found

@csandanov
Copy link
Member

what's your php image version?

@gertvdb
Copy link
Author

gertvdb commented Mar 24, 2023

wodby/php:8.1-dev-macos
Thanks for looking into this!

@csandanov
Copy link
Member

your image without a stability tag, so it gets updated all the time, do you have the latest version?

I'm not sure why it doesn't see the version 18 of the library, we have /opt/microsoft/msodbcsql18/lib64/.... We've recently upgraded the sqlsrv pecl extension, maybe you just need to pull the image to get the latest version

@gertvdb
Copy link
Author

gertvdb commented Mar 24, 2023

it's the latest version, since it was a fresh install on a new laptop.
He's looking for version 'msodbcsql17' it seems somehow

@csandanov
Copy link
Member

csandanov commented Mar 27, 2023

I've tested the latest php image with mcr.microsoft.com/mssql/server:2022-latest, works fine. Docker macOS 4.16.2

$conn = sqlsrv_connect("sqlsrv", ["Database" => "msdb", "UID"=>"sa", "PWD"=>"my-password", "trustServerCertific
ate" => true]);
var_dump($conn);
resource(4) of type (SQL Server Connection)

@gertvdb
Copy link
Author

gertvdb commented Mar 27, 2023

We are using mcr.microsoft.com/mssql/server:2019-latest so I guess the issue has something to do with the version.
I will check if we can update to the latest version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants