Comments (10)
Are you using an ARM Mac? Have you seen #51 and other related issues here?
from homebrew-mssql-release.
Thank you for your reply! I am using a MacBook Pro and the Mac OS is Big Sur 11.6.1.
I tried
sudo ln -s /usr/local/etc/odbcinst.ini /etc/odbcinst.ini sudo ln -s /usr/local/etc/odbc.ini /etc/odbc.ini
and the output was
ln: /etc/odbcinst.ini: File exists ln: /etc/odbc.ini: File exists
I was able to install both msodbcsql17
and mssql-tools
but I still got the error Error: nanodbc/nanodbc.cpp:1021: 00000: [unixODBC][Driver Manager]Can't open lib 'ODBC Driver 17 for SQL Server' : file not found
. I tried to uninstall msodbcsql17
using brew uninstall --ignore-dependencies msodbcsql17
.
Then I couldn't reinstall it because of outdated command line tool. I updated my macOS and tried to reinstall, but now I am getting the error in the subject line. I am not sure whether my force uninstall was causing any issue.
The output of ls /usr/local/Cellar/unixodbc/
is 2.3.9_1
The output of odbcinst -j
is
unixODBC 2.3.9 DRIVERS............: /usr/local/etc/odbcinst.ini SYSTEM DATA SOURCES: /usr/local/etc/odbc.ini FILE DATA SOURCES..: /usr/local/etc/ODBCDataSources USER DATA SOURCES..: /Users/administrator/.odbc.ini SQLULEN Size.......: 8 SQLLEN Size........: 8 SQLSETPOSIROW Size.: 8
from homebrew-mssql-release.
Is it an ARM machine or not? The output you've posted suggests it's not, or you may be running under Rosetta2 emulation.
from homebrew-mssql-release.
I don't think it is an ARM machine. The processor is 2.8 GHz Quad-Core Intel Core i7. I am not running under Rosetta2 emulation. Apologies if I misunderstood your question.
from homebrew-mssql-release.
True, that is not ARM. Thus the paths are correct. Try to uninstall and reinstall from clean.
Note that due to #59 you may receive an OpenSSL error, in which case the workarounds suggested there should work.
from homebrew-mssql-release.
@v-chojas, I seem to be having the above problem with ARM (Apple M1 Max) Chip!
Installed ODBC using homebrew. This is the output of odbcinst -j
:
unixODBC 2.3.9
DRIVERS............: /opt/homebrew/etc/odbcinst.ini
SYSTEM DATA SOURCES: /opt/homebrew/etc/odbc.ini
FILE DATA SOURCES..: /opt/homebrew/etc/ODBCDataSources
USER DATA SOURCES..: /Users/xxx/.odbc.ini
SQLULEN Size.......: 8
SQLLEN Size........: 8
SQLSETPOSIROW Size.: 8
I have also created symbolic links for /etc/odbcinst.ini
and odbc.ini
files.
But I'm getting error when trying to connect:
('01000', "[01000] [unixODBC][Driver Manager]Can't open lib '/opt/homebrew/lib/libmsodbcsql.17.dylib' : file not found (0) (SQLDriverConnect)")
Any idea?
from homebrew-mssql-release.
Does the file /opt/homebrew/lib/libmsodbcsql.17.dylib exist?
from homebrew-mssql-release.
I checked and it does exist. Would it possibly be permission issue?
from homebrew-mssql-release.
It should be readable and executable by all users, at least, so I don't think so. You can use the dtruss
tool to see what files it is trying to access when you attempt to connect, and which one it doesn't find. Usually the "file not found' message indicates either the file, or one of its dependencies, is not found.
from homebrew-mssql-release.
Closing as inactive.
from homebrew-mssql-release.
Related Issues (20)
- Problems installing msodbcsql17 and mssql-tools HOT 3
- Error trying to run homebrew-mssql formula in mac OS Big Sur (M1) HOT 4
- I had the same error.
- Could not connect to Azure SQL Database on version 17.8.1.1 HOT 1
- My mac cannot connect to SQL Server on Windows Server 2012 R2 with Microsoft ODBC Driver 17 for SQL Server. HOT 6
- Cannot tap microsoft/mssql-release: invalid syntax in tap! HOT 3
- My Mac(m1) cannot install Microsoft ODBC 18 HOT 2
- Cannot install/update Microsoft ODBC 18 on macOS 12 HOT 2
- File not found error for MS ODBC SQL 13 on MacOS Catalina HOT 4
- Download link for msodbcsql18 seems......down? HOT 2
- This repo is missing important files
- Codesign the drivers for use within Microsoft HOT 1
- Can't connect to the server HOT 10
- Silent installs no longer possible HOT 6
- [request] Add install option as alternative to ACCEPT_EULA envvar HOT 2
- This repo is missing a LICENSE file
- weird behavior on Mac M1 when using msodbcsql18 HOT 2
- I can't connect to SQL Server (MacBook Pro M1 Pro) HOT 4
- MSodbcSQL18 is not supported on Macos 14 HOT 11
- Can't open lib ODBC Driver 18 for SQL Server / Rstudio / Mac OS HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from homebrew-mssql-release.