-
-
Notifications
You must be signed in to change notification settings - Fork 8.7k
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
[jvm-packages] xgboost4j-0.7.jar missing libxgboost4j.so in Mac #1776
Comments
|
@CodingCat Thanks for quick answer, I do find libxgboost4j.dylib, but after I run the jar, it report missing libxgboost4j.so |
ok, I guess that's because the .so I build on mac, can't run on linux |
ah. Geneally you cannot build in mac and run in linux, because xgboost4j will adjust the suffix of the native lib file based on your os |
You can modify the build script to work around it |
clicked close and comment mistakenly.... @jq You are more than welcome to share Airbnb's story about XGBoost/XGBoost4J, if possible We have an incomplete list here: https://github.com/dmlc/xgboost/blob/master/demo/README.md#usecases , other names include EBay, Linkedin, etc. we are trying to complete this list.... |
@CodingCat thanks for help, just started, will share story :) |
thanks |
How can I modify the build script, so I can build libxgboost4j.so rather than libxgboost.dylib on mac? @CodingCat |
it is building dylib automatically in the current version of script...has been a long time since last check, @superbobry ? |
@hy-2013 why do you want the so? dylib is the native extension for a shared library on Mac, that's what the linker expects when looking for libraries. |
First, thanks for your reply. Because I met the follow Exception (/lib/libxgboost4j.so was not found inside JAR), when I was running xgboost4j on spark cluster installed on CentOS 6.6. And the xgboost4j-0.7.jar and xgboost4j-spark-0.7.jar is packaged on mac. So I guess I should build libxgboost4j.so rather than libxgboost.dylib on mac. The whole Exception stack is: java.io.FileNotFoundException: File /lib/libxgboost4j.so was not found inside JAR. thanks again. |
Are you using the latest |
My building process as follows: git clone --recursive https://github.com/dmlc/xgboost It is success. |
Could you upload the resulting JAR for xgboost4j here? Also, are you building on Linux? |
I am building on mac (version 10.12.6) not on Linux. My resulting JAR for xgboost4j as follow: thanks. |
Judging by the error message, you're then running on Linux, right? The build does not currently do cross compilation, so if you need to compile on the same platform you intend to run on. Or, alternatively, use the unofficial precompiled binaries. |
I download the latest version of unofficial precompiled binaries and package them all in my jar. I google the ERROR, someone say it is caused by version mismatch. Does the unofficial precompiled binaries correspond with the certain version of scala or spark? The whole EROOR stack is: thanks. |
As the README states, the binaries are Scala 2.10 only for now. |
Thanks for your reply. For the version ERROR, I changed scala and spark verson as follows: then I re-package jar. The bug above disappeared, but I meet an another ERROR:
I have noticed #1911 and #1682 etc. Unfortunately, none of them can resolve the bug. Wish all your reply @CodingCat @superbobry . thanks again. |
This error could pretty much mean anything. Could you upload the full executor log? |
Thanks for your reply @superbobry . My full executor log: thanks. |
Here's the relevant bit
It seems you're using Python 2.6. In order to fix this either update to 2.7 or later, or install |
Thanks for your reply again @superbobry . Is the thanks. |
You don't have to upgrade Python, just Otherwise, no it's not indispensable, it can be swapped to |
Thanks for your reply @superbobry. |
Environment info
Operating System:
Mac, Sierra
Compiler:
Configured with: --prefix=/Library/Developer/CommandLineTools/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 8.0.0 (clang-800.0.42.1)
Target: x86_64-apple-darwin16.1.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin
Package used (python/R/jvm/C++):
xgboost
version used:b9a9d2b
If installing from source, please provide
The commit hash (
git rev-parse HEAD
)b9a9d2b
Logs will be helpful (If logs are large, please upload as attachment).
build jar ok, and compiled no problem,
but the jar has no libxgboost4j.so
Steps to reproduce
nothing found
What have you tried?
The text was updated successfully, but these errors were encountered: