-
Notifications
You must be signed in to change notification settings - Fork 375
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
Error when installing sqlsrv and pdo_sqlsrv in php8+ apache docker image #1438
Comments
I'm not sure what's happening at a glance, but does |
Hello @v-makouz , answering:
I double checked it now, and no It's not present
I tried the workaround suggested here (#1436 installing the version 2.3.7 of unixodbc-dev) and it worked, so my guess is that this library installs What I have no idea about is how these files are related to the process of compiling |
Appears to be a new issue caused by something being upgraded in the last couple of days. Hopefully it gets reverted as the fix in #1436 breaks the script for ARM processors (the bug hasn't affected ARM). If this change is here to stay it will require different install scripts for ARM and AMD for myself and many others. edit The below works for both CPU architectures and means if they fix the issue it'll go back to using unixodbc-dev like before.
|
I used the fix here #1436 (comment) |
Thanks for the allow-downgrades tip!! Built Docker image for Debian 11 with PHP 8.1 and 8.2 with pdo_sqlsrv-5.11.0. Below my two cent contribution, the Dockerfile links. Please note, I have not tested the connection to the database. |
Can't believe this still hasn't been fixed yet months later |
I tested with php:8.1-apache today and can't reproduce the error. What's the error message you get? |
I'm having the same issue today on Ubuntu 22.04 (with PHP 8.1). |
Following code did install the pdo_server in ubuntu 22.04 for me
|
PHP version
Tested for PHP within docker images php:8.1-apache and php:8.2-apache
PHP SQLSRV or PDO_SQLSRV version
Both stable (5.10.1) sqlsrv pdo_sqlsrv and beta (5.11.0beta1) sqlsrv pdo_sqlsrv
Microsoft ODBC Driver version
Versions msodbcsql18 and msodbcsql17 for ubuntu/20.04
Problem description
Installation in a Dockerfile using pecl is failing with the following message:
This problem is very likely to be related to the issue #1436 as the workaround mentioned there (using specific versions for some libraries) works for me as well
Expected behavior and actual behavior
Another test I ran was to try and compile the extension, the steps were:
apt-get update && apt-get install -y unixodbc-dev libltdl-dev libodbc1
The error message at this point is exactly the same.
Repro code or steps to reproduce
Create a Dockerfile with the following content then build it:
docker build .
The text was updated successfully, but these errors were encountered: