SynapseML icon indicating copy to clipboard operation
SynapseML copied to clipboard

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.

Open RayTsui opened this issue 6 years ago • 4 comments

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.

RayTsui avatar Dec 04 '18 02:12 RayTsui

@RayTsui sorry, this is a known issue: https://github.com/Azure/mmlspark/issues/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.

imatiach-msft avatar Dec 10 '18 03:12 imatiach-msft

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 avatar Dec 10 '18 18:12 RayTsui

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 avatar Nov 30 '23 06:11 shuDaoNan9

sorry, how to close this issue

shuDaoNan9 avatar Nov 30 '23 06:11 shuDaoNan9