-
Notifications
You must be signed in to change notification settings - Fork 34
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
brew upgrade microsoft/mssql-release/msodbcsql #9
Comments
When brew tried to do an upgrade, it uninstalled the previous version first before it installed the newer version. The problem was that it failed to uninstall the previous version. It was most probably caused by an application using the driver when brew was doing the upgrade. |
It looked like brew didn't have access to the odbcinst.ini file when it tried to remove the section on the ODBC Driver 13 for SQL Server. Do you install the Driver Manager 'unixODBC' manually? |
brew upgrade microsoft/mssql-release/msodbcsql Updating Homebrew... ==> Upgrading 1 outdated package, with result: Do you accept the license terms? (Enter YES or NO) odbcinst -u -d -n "ODBC Driver 13 for SQL Server" odbcinst: SQLRemoveDriver failed with General installer error. If reporting this issue please do so at (not Homebrew/brew or Homebrew/core): These open issues may also help: xxxx:~ xxx$ brew uninstall msodbcsql xxx:~ xxx$ brew install microsoft/mssql-release/msodbcsql Do you accept the license terms? (Enter YES or NO) odbcinst -u -d -n "ODBC Driver 13 for SQL Server" odbcinst: SQLRemoveDriver failed with General installer error. If reporting this issue please do so at (not Homebrew/brew or Homebrew/core): These open issues may also help: |
It looks like brew has no write permission to the file odbcinst.ini file. Can you open a terminal and run 'odbcinst -j'? The output should be : |
unixODBC 2.3.4 |
Please check the followings: |
2: [ODBC Driver 13 for SQL Server] [FreeTDS] 3: 4: 5: looks identical to 4. |
The error doesn't appear. It looks like the section [ODBC Driver 13 for SQL Server] has been removed. Could you list the contents of odbcinst.ini file again? If you do the upgrade now, do you see the error 'odbcinst: SQLRemoveDriver failed with General installer error' ? |
brew install microsoft/mssql-release/msodbcsql odbcinst -i -d -f ./odbcinst.ini odbcinst: SQLInstallDriverEx failed with Invalid install path. |
It's a different error. I'll reply to you tomorrow. |
It is the same problem. brew has no write permission to the odbcinst.ini file. |
i got the same exact error even after uninstalling homebrew and tried again: ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/uninstall)" Press RETURN to continue or any other key to abort Downloading Command Line Tools (macOS High Sierra version 10.13) for Xcode
==> Homebrew has enabled anonymous aggregate user behaviour analytics. ==> Next steps:
and run This formula is keg-only, which means it was not symlinked into /usr/local, If you need to have this software first in your PATH run: For compilers to find this software you may need to set: ==> Summary Do you accept the license terms? (Enter YES or NO) odbcinst -i -d -f ./odbcinst.ini odbcinst: SQLInstallDriverEx failed with Invalid install path. If reporting this issue please do so at (not Homebrew/brew or Homebrew/core): These open issues may also help: |
Please try the followings to see if it works: |
brew install --no-sandbox microsoft/mssql-release/msodbcsql Do you accept the license terms? (Enter YES or NO) it appears to have worked. |
Hello, I have the same issue but there's no odbcinst.ini (in fact I don't have /etc folder) : $ brew install microsoft/mssql-release/msodbcsql Do you accept the license terms? (Enter YES or NO) odbcinst -u -d -n "ODBC Driver 13 for SQL Server" odbcinst: SQLRemoveDriver failed with Unable to find component name. If reporting this issue please do so at (not Homebrew/brew or Homebrew/core): These open issues may also help: Do you have any idea ? Ok I found a solution 👍 For those who does not have etc folder, go to http://www.unixodbc.org/ and download it manually, then follow the steps (./configure, make, make install) and copy the etc folder (/usr/local/etc) into (/usr/local/Cellar/unixodbc/2.3.5/) it should work |
@Mathieuduverney You do not need to build unixODBC manually, just The Homebrew package for unixODBC 2.3.5 is missing that directory: |
...and now it is working again since the unixODBC 2.3.5 package is fixed. |
@v-chojas Thank you very much. Now I have a new issue: I reinstalled everything to make it run on XAMPP, so I use php from XAMPP etc. However when I call my server (method to connect to the db) I have no response from him. Do you have any idea what and where could be the problem ? I also edited the php.ini on XAMPP etc. I followed this tuto using XAMPP php version (7.0.26) which works (which php : /Application/XAMPP/bin) : https://github.com/Microsoft/msphpsql/tree/dev#install-unix I really do not know where is the issue... Thank you very much ! PS: I'm on Mac Sierra |
@Mathieuduverney you should ask for PHP driver support there: https://github.com/Microsoft/msphpsql/ Here is Homebrew ODBC Driver for SQL Server support only. |
Closing this issue. Feel free to reopen if you still have Homebrew related installation issues. |
i am getting same error.
|
There is a caveat message, that I believe appears during installation (and/or maybe in the description):
Although that's for uninstalls and not upgrades, the fact that SQLRemoveDriver is failing may mean that removing it manually using that command might work as a workaround |
macOS 10.13.3 Beta (17D25b)
The text was updated successfully, but these errors were encountered: