Skip to content
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

Library not loaded: /usr/local/lib/libodbc.2.dylib #81

Closed
bradenpowers opened this issue Mar 24, 2015 · 7 comments
Closed

Library not loaded: /usr/local/lib/libodbc.2.dylib #81

bradenpowers opened this issue Mar 24, 2015 · 7 comments

Comments

@bradenpowers
Copy link

Hello,

I am trying to get this running and I am running into a snag. I did install the unixODBC using homebrew and they were installed successfully. I am following the getting started example and I got this error:

Error: dlopen(/myproject/node_modules/odbc/build/Release/odbc_bindings.node, 1): Library not loaded: /usr/local/lib/libodbc.2.dylib
Referenced from: /myproject/node_modules/odbc/build/Release/odbc_bindings.node

Any insights would be great!

Thanks,
BP

@wankdanker
Copy link
Collaborator

What version of node are you using? Did it build successfully when you did npm install odbc?

@bradenpowers
Copy link
Author

I am running node v0.10.26 and it built successfully, there were some warnings though.

@wankdanker
Copy link
Collaborator

I'm not a Mac user, so my help may be limited. Does /usr/local/lib/libodbc.2.dylib exist? Is that a reference to the unixODBC library from homebrew or is it in Apple's iODBC (or whatever it's called)? Does using the command line isql tool work?

@bradenpowers
Copy link
Author

The isql tool does work. So what I tried to do now is build it from scratch and I get this when running node-gyp configure build

In file included from ../src/odbc.cpp:25:
../src/odbc.h:29:10: fatal error: 'sql.h' file not found
#include <sql.h>

@wankdanker
Copy link
Collaborator

That usually indicates that the development/header files have not been installed or are not in the path for building to work. I'm not sure if homebrew installs those by default or if it is a separate process. I know on Ubuntu you have to do apt-get install unixodbc-dev. Not sure if there is something similar on your platform.

@bradenpowers
Copy link
Author

I'll figure out something else.

@Ceponce
Copy link

Ceponce commented Jul 3, 2015

Thanks Wankdanker, I had the same error and running "brew install unixodbc" fixed my issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants