-
Notifications
You must be signed in to change notification settings - Fork 374
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
Installation of driver in Debian 9 (PHP 7.0) #484
Comments
Hi @cusco |
@cusco you are getting this error because PDO extension is not loaded, |
I think the the problem lies in the msodbcsql package, which is not available for Stretch (yet).
So maybe the question that is the most interesting question for @cusco too: Update: Okay, so after digging around a bit more, it seems to work when there is just libssl1.0.0 but not when there is just libssl1.0.2 - so apparently one of the dependencies is linked against the newer version of libssl. |
I have the exact same problem when I follow the wiki. |
Hey guys, just install the libssl1.0.0 from jessie, and it will works: Tested & working |
@deStrO Yes, of course that works, but it is neither an elegant nor secure solution... |
Hi all, we currently only support Debian Jessie. We understand that Debian 9 is now released! We will look into what it will take to official support Stretch (Debian 9) and update this thread. 👍 |
Any progress? |
Just ran through the complete https://github.com/Microsoft/msphpsql/wiki/Install-pdo_sqlsrv-for-PHP-7.0-on-Debian-in-3-ways without any hazzle The problem with Debian 9 and PHP 7.0 for me is:
Although the file is present the driver manager cannot open it. Anybody has an idea ? Update:
Let's see when MS bring official support. |
@meet-bhagdev, is there any update on the Debian Stretch compability? |
@moschlar, No updates but it is in the plan to support it in the next RTW. |
Thanks @David-Engel, Do you have an ETA for the next RTW? Thanks |
@andrewnicols Regards, |
The solution @codedge had above doesn't quite work anymore, because the link to that .deb file died. This slightly modified version worked great for me, though. Thanks everyone on this thread for finding a work-around.
|
@richbon75 Well the most correct solution would be to include the Jessie repositories again, so that the package can be installed and kept up to date by APT. This way you wouldn't need the full package version anymore - just the name |
@moschlar Thanks for the tip. In the interest of having an answer here that someone finding their way to this issue can just grab and use, I guess this would be the more proper way to do it?
|
The Debian9-7.0 5.2.0-RC module release is still linked against an unsupported OpenSSL version.
|
Hi @jcharaoui, It sounds like you have the old ODBC version 13 installed. Can you please check?
ODBC 17 is not publicly available yet you will have to get the preview binaries here The driver so file gets installed in /opt/microsoft/msodbcsql/lib64/libmsodbcsql-17.0.so.0.5
|
@lilgreenbird I do indeed have ODBC 17 installed.
|
@jcharaoui , did you remove ODBC driver 13.1 beforehand? Please check the install instruction for ODBC 17 here. |
@v-kaywon yes, I removed the ODBC driver 13.1 (apt remove --purge) before installing the new version. |
Hi @jcharaoui I think I have reproduced the issue. My apologies I didn't catch this earlier. What you actually need to do is to install ODBC 13.1 first and then ODBC 17. The 1st installation will get your the dependencies that is needed to run the ODBC driver. Note the reason this is necessary is because ODBC 17 is not publicly available yet so you need to the ODBC 17 preview manually, thus it won't install the dependencies automatically for you. So please remove your current ODBC 17 driver, then follow the installations instructions here to install ODBC 13, and then here Please let me know if you have any questions, thanks. |
@lilgreenbird That is exactly what I did the first time: I installed ODBC 13.1, then uninstalled, then installed ODBC 17. Are you sure your reproduced the issue on Debian 9.0 (stretch)? This truly doesn't seem to be the case, so let me spell it out for you: The missing dependency is This is not an installation or packaging issue, this is an issue with the binaries your distribute. Please let us know when a fix will be released. |
We install and test the same binaries in our Debian 9 test bed nightly we do not see any problems with it at all. In trying to include a log of the exact steps that I took to repro your issues I found the culprit. Are you sure you installed the Debian 9 binaries and not Debian 8?? I can see your error if I install the wrong binaries:
but if I install the proper Debian 9 binaries in Debian 9 then all is fine:
|
@lilgreenbird OK I understand what the problem is. You're right, I was using the Debian 8 package, which is probably the case with everyone else who reported this bug. The problem is that in your documentation, under ODBC 17 Linux Installation / Debian 8 and 9, the download link you provide for I would suggest to replace this:
with this:
This way it will automatically download the correct version for Debian 8 or 9. |
yes, we will fix the documentation, thank you. |
Well, the documentation is still wrong, so no.
This is how it should be:
Please consider fixing the versioning scheme for your Debian package. Your package versions should be different across operating system releases! |
This has now been updated. |
Closing this as ODBC 17.1 is officially released. |
The page https://github.com/Microsoft/msphpsql/wiki/Install-pdo_sqlsrv-for-PHP-7.0-on-Debian-in-3-ways is nice. But it does not foresee its application on Debian 9 (strectch) - current stable
installing the jessie package seems that it's not working correctly as connecting via PDO with sqlsrv driver returns:
PHP Fatal error: pdo_sqlsrv_db_handle_factory: Unknown exception caught
The text was updated successfully, but these errors were encountered: