Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

dyld: Library not loaded: /usr/local/opt/unixodbc/lib/libodbc.2.dylib

I am facing the following issue on Mac when I run rake ts:index for Thinking Sphinx indexing:

dyld: Library not loaded: /usr/local/opt/unixodbc/lib/libodbc.2.dylib

I am using mysql version 8.0.13 for osx10.13 on x86_64. How can I resolve this issue?

like image 984
Faisal Raza Avatar asked Jan 22 '19 06:01

Faisal Raza


2 Answers

Insalling unixodbc on Mac resolved this for me.

brew install unixodbc
like image 195
Faisal Raza Avatar answered Nov 06 '22 05:11

Faisal Raza


In addition to

brew install unixodbc

you can also install the mssql drivers after this with the following brew instructions:

brew tap microsoft/mssql-release https://github.com/Microsoft/homebrew-mssql-release
brew update
brew install msodbcsql mssql-tools

After this I was able to use "ODBC Driver 17 for SQL Server" in python.

like image 11
Ethan Rucinski Avatar answered Nov 06 '22 03:11

Ethan Rucinski