3

I installed wine using homebrew, and now I've been working on getting SolidWorks to run on OS X through wine, fixing the errors one by one.

Here's the error I'm currently stuck on:

err:winediag:ODBC_LoadDriverManager failed to open library "libodbc.dylib": dlopen(libodbc.dylib, 265): no suitable image found.

I've tried installing unixodbc with homebrew, but then it gives this error instead:

err:winediag:ODBC_LoadDriverManager failed to open library "libodbc.dylib": dlopen(libodbc.dylib, 265): no suitable image found.  Did find:
 libodbc.dylib: mach-o, but wrong architecture
 /usr/local/lib/libodbc.dylib: mach-o, but wrong architecture

I checked, and I have the 64 bit version of libODBC.

$ file /usr/local/lib/libodbc.dylib
/usr/local/lib/libodbc.dylib: Mach-O 64-bit dynamically linked shared library x86_64

Is there a way to install ODBC in 32 bit mode or compile it from source? Thanks!

PS. I've also tried installing unixobdc through mac ports, but wine doesn't find it at all then.

Update: I downloaded the source from www.unixodbc.org and compiled it in 32bit mode. I also moved the libodbc.dylib to /usr/local/lib/libodbc.dylib. I've also verified that it is 32 bit.

file /usr/local/lib/libodbc.dylib
/usr/local/lib/libodbc.dylib: Mach-O dynamically linked shared library i386

The issue is now wine doesn't detect it.

err:winediag:SQLDrivers No ODBC drivers could be found. Check the settings for your libodbc provider.

Any advice?

  • You will need to compile the 32 bit version IF homebrew lacks a formulae for it. – linuxdev2013 Sep 29 '16 at 11:54
  • @linuxdev2013 I didn't fine a homebrew formula, so I did compile it. I updated the question to reflect this. The issue is now it doesn't detect the 32bit library. – Alexander M Sep 29 '16 at 14:17

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.