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

java.lang.UnsatisfiedLinkError: Could not load the native libraries because we encountered the following problems: no _lightgbm in java.library.path and Could not find resource /com/microsoft/ml/lightgbm/osx/x86_64/lib_lightgbm.dylib in jar. #452

Open
RayTsui opened this issue Dec 4, 2018 · 4 comments
Assignees

Comments

@RayTsui
Copy link

RayTsui commented Dec 4, 2018

Whether or not there is solution for running lightgbm on spark(scala) on mac. After I call LightGBMRegressor on scala spark context on mac, it shows the following issue:

java.lang.UnsatisfiedLinkError: Could not load the native libraries because we encountered the following problems: no _lightgbm in java.library.path and Could not find resource /com/microsoft/ml/lightgbm/osx/x86_64/lib_lightgbm.dylib in jar.

Thanks for figuring out.

@imatiach-msft
Copy link
Contributor

@RayTsui sorry, this is a known issue:
#290
we don't yet support MacOS, but it's something that we would like to add. First, we need to add SWIG support for MacOS in LightGBM repo.

@RayTsui
Copy link
Author

RayTsui commented Dec 10, 2018

Hi @imatiach-msft , thank you for your follow-up. Once lightGBM is available on mac in the future. Please make it known in community.

@RayTsui RayTsui closed this as completed Dec 10, 2018
@shuDaoNan9
Copy link

By the way, I got this exception on linux too, because I forgot to add 'lightgbmlib-3.3.510.jar'.
Exception in thread "main" java.lang.UnsatisfiedLinkError: Could not load the native libraries because we encountered the following problems: no _lightgbm in java.library.path and Could not find resource /com/microsoft/ml/lightgbm/linux/x86_64/lib_lightgbm.so in jar.

@shuDaoNan9
Copy link

sorry, how to close this issue

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

No branches or pull requests

3 participants