-
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
Cannot install sqlsrv and pdo_srv in whm server 108.0.11 using ubuntu 20.04 #1436
Comments
Same issue here, our builds builds fail since today when trying to release a new product version:
Result + error:
|
Same issue here. If using Buster, reverting to |
One workaround is to install version 2.3.7 of the relevant packages. Something like this:
|
@pontus-mp thanks, can confirm this works Update RUN command:
|
@pontus-mp thanks, release the versions helped me. |
Can also confirm that explicitly installing 2.3.7 works. I did some research and finally realized it's a problem with the microsoft repositories that are needed for the msodbcsql prerequisite -- they have an old version of the unixodbc-dev package version 2.3.11 which was missing the unixodbc.h file. Debian fixed this with package build 2.3.11-2 last May, but a number of the Microsoft debian and ubuntu repositories look like they're still using the original 2.3.11 package. I'm not exactly sure how to report this upstream to the msodbcsql team, so I came here to see, and found this bug report. FYI, I was building this in a docker image based on Ubuntu focal (20.04). |
I'd like to thank both @pontus-mp and @websmurf for the workaround I can confirm it work for the msodbcsql18 drivers for ubuntu 20.04. Although the error I'm getting is a little different, these seem to be related
|
Thanks @websmurf, your |
I don't use on docker but i can confirm that working on debian 11 with the downgrade of unixodbc workaround |
I have this issue, too. Came here from microsoft/linux-package-repositories#39 |
@mbomb007 This issue was caused by a unixODBC being packaged with the ODBC driver. I believe it has been removed from the package, but can you tell me which OS and what exact commands you use, so I can to track it down? |
@v-makouz look at this comment: microsoft/linux-package-repositories#39 (comment) EDIT: It happens on Ubuntu 20.x thru 22.x and Debian 10/11 |
@v-makouz Debian and Ubuntu with the code here: https://stackoverflow.com/a/58086934 It fails on Debian 11. To fix the issue, I have to replace this: apt-get install -y unixodbc-dev with this: apt-get install -y --allow-downgrades unixodbc-dev=2.3.7 unixodbc=2.3.7 odbcinst1debian2=2.3.7 odbcinst=2.3.7 |
There is an incorrect dependency when building the new unixODBC 2.3.11, there are people working on it. I'll let you know when the fix is in. |
SQLServer could provide a C library that could be used by C/C++/PHP/ODBC/Ruby/Nodejs/JDBC? ODBC is not friendly for App, can't package it directly, and it's huge. |
Hi All,
and after running the above command inside terminal, i received error below
May I know what does this mean and is there any workaround on this? Really appreciate everyone guidance.. PS: I am new to linux and trying to improve my sql skills by using mssql in Linux. |
This error seems to be caused by a package that got into a bad state. I'm not familiar with this issue myself, but here's what others who encountered it have said: https://unix.stackexchange.com/questions/688261/please-help-sub-process-usr-bin-dpkg-returned-an-error-code-1-installing-mys |
I'm having the same issue today on Ubuntu 22.04 after upgrading from 20.04;
|
The "is not a valid libtool" error should now be solved for Debian 11 amd64, with unixodbc 2.3.11-2. We were unable to reproduce this issue on other versions of Debian and Ubuntu. |
This worked for me: for package_name in $(sudo ls /var/lib/dpkg/info | grep -i odbc); do sudo mv -v /var/lib/dpkg/info/$package_name /tmp/; done
sudo apt --fix-broken install -y
sudo apt-get -y autoremove
sudo apt-get update
ACCEPT_EULA=Y sudo -E apt-get install --reinstall -y msodbcsql18 |
Nothing worked for me Ubuntu 22.04 still missing pdo_sqlsrv and sqlsrv wont install. |
Are there error messages? Which specific part of the install fails? |
на этот момент времени все так же для Ubuntu 22.04 ошибка остается ( PHP Startup: Unable to load dynamic library 'pdo_sqlsrv'). |
Still broken on both Debian and Ubuntu |
что насчет Centos7? работает? |
Didn't try on CentOS. The problem was always reported on Debian and Ubuntu |
CentOS 7 reached end of life already. https://www.redhat.com/en/topics/linux/centos-linux-eol |
Is this an installation error? Or does the install finish with no issues, but the library can't be imported when running the PHP script? |
Второе
Пт, 19 июля 2024 г. в 00:56, v-makouz ***@***.***>:
… Is this an installation error? Or does the install finish with no issues,
but the library can't be imported when running the PHP script?
—
Reply to this email directly, view it on GitHub
<#1436 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AQHVHTNDJV3QCQIK2I4AMZTZNA2ZDAVCNFSM6AAAAAAUZ3X7ECVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMZXGY4DQMZTHA>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
If you set |
adding E_ALL to error_reporting is useless. the package does not install because of broken dependencies. |
@fcorrigabb Oh that was in response to AvelPostol, who seems to have a different problem where the driver installs fine, but import doesn't work. In any case, are you using the docker? How are you installing the driver? |
We had added this specifically to our docker image to make it work both for amd64 and arm architecture:
kudos to teammate of mine. |
@v-makouz is it solved now? i see no reference to any issue elsewhere where i can find if this got solved or not? I do see https://www.unixodbc.org/ released a new version .12 but unsure this is solved? |
As of yesterday, it was not yet resolved.
P.S. it's not just on Ubuntu 20.04. The error above is on Debian 12. Dependencies are just broken. |
This worked for me last year, try this:
|
@delboy1978uk is there a reason why you had to force several packages at version 2.3.7 when the required version is >= 2.3.11? EDIT: the fact you need to force the installation of specific dependencies versions is the proof dependencies are broken. |
@fcorrigabb It looks like you're getting the error installing ODBC Driver 17 and the mssql-tools. I tried installing them on clean VMs with Ubuntu 20.04 and Debian 12, and both worked without issue. I suspect the docker pulls something from a different repo (there was a bug a while ago, where docker used a minimal distro of an OS, which didn't have some of the usual packages, so it had an error that didn't occur otherwise) |
@v-makouz i already included that line in my install scripts. I'll check back later this week and let you know if something has changed. |
The problem is still there. unixodbc-dev from the MS repo is either version 2.3.7 or 2.3.11. |
Tried with debian 10 and IT WORKS with unixodbc-dev 2.3.11. |
I think i fixed the problem with debian 11. I managed to build the image with unixodbc 2.3.11 and msodbcsql and mssql-tools ver,. 18. |
For whatever reason, on Debian 11, if i install unixodbc-dev from the Debian repo BEFORE adding the Microsoft external repo, everything seems to work and unixodbc-dev gets also updated. |
after i update my ubuntu server, the sqlsrv and pdo_srv driver is missing in my whm. i try to install again with following this tutorial https://support.cpanel.net/hc/en-us/articles/360053132353-How-install-pdo-sqlsrv-to-connect-to-MSSQL-Servers?source=search&auth_token=eyJhbGciOiJIUzI1NiJ9.eyJhY2NvdW50X2lkIjo5Mjc3OTc5LCJ1c2VyX2lkIjozODkxNDE4NDkyNTQsInRpY2tldF9pZCI6OTQ1MzEzNzQsImNoYW5uZWxfaWQiOjYzLCJ0eXBlIjoiU0VBUkNIIiwiZXhwIjoxNjc4ODUwOTYwfQ.EaB854qW1DgMkz4DaoTjyjaeLkNWJy0PlNJzNUemfTw and got error like i attach below:
for addtional information:
unixodbc-dev version 5.10.1
ODBC Driver 17 for SQL Server
ODBC Driver 18 for SQL Server
ubuntu server version 20.04
whm server version 108.0.11 and
my sql server version 2016
anybody can help me
thanks in advanced
The text was updated successfully, but these errors were encountered: