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

LD_LIBRARY_PATH failed in finding .dylib with macOS 10.12 #3678

Closed
hangg7 opened this issue Mar 6, 2017 · 5 comments
Closed

LD_LIBRARY_PATH failed in finding .dylib with macOS 10.12 #3678

hangg7 opened this issue Mar 6, 2017 · 5 comments

Comments

@hangg7
Copy link

hangg7 commented Mar 6, 2017

Hi all,

I was recently building shogun down in my mac (with macOS 10.12).

When I ran this command

$ clang++ -std=c++11 path/to/native_example.cpp -o path/to/native_example -I/path/to/headers -lshogun

I encountered a problem when setting LD_LIBRARY_PATH failed in finding the linker (-lshogun)

I finally solved it by export LIBRARY_PATH instead referred to here.

Don't know why, but seems worth to report in case of future macOS users getting stuck for days like me.

See also #3677, which I really think should be mentioned in README.

@vigsterkr
Copy link
Member

@cullengao this is very basic compiler flags. and i would rather suggest you to use -L<path to the lib folder where you installed shogun> instead of LIBRARY_PATH....

but anyhow if you feel that this is something that is missing there's the https://github.com/shogun-toolbox/docs repo and send in a PR

@vigsterkr
Copy link
Member

and btw on mac there is no LD_LIBRARY_PATH... it is DYLD_LIBRARY_PATH

@hangg7
Copy link
Author

hangg7 commented Mar 6, 2017

@vigsterkr Thanks for being so swift to reply. To be honest, I used to work mostly on Python and rather new to compiler stuffs.

Glad you bring up DYLD_LIBRARY_PATH. I've actually tried but got no luck. Any thoughts? Would be happy to learn.

@vigsterkr
Copy link
Member

@cullengao http://lmgtfy.com/?q=gcc+library+flags

@karlnapf
Copy link
Member

karlnapf commented Mar 6, 2017

I just added some clarifications, shogun-toolbox/docs@6199467

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