While trying to load xgboost4j in Java, I see the following error:
{“TimeStamp”:1684546533811000000,“SeverityText”:“ERROR”,“Body”:“Failed to load xgboost4j due to missing native dependencies for platform linux/x86_64, this is likely due to a missing OpenMP dependency”,“Attributes”:{“code.namespace”:“ml.dmlc.xgboost4j.java.NativeLibLoader”,“code.function”:“initXGBoost”,“code.lineno”:“194”,“thread.id”:“1”}}
{“TimeStamp”:1684546533811000000,“SeverityText”:“ERROR”,“Body”:“You may need to install ‘libgomp.so’ (or glibc) via your package manager.”,“Attributes”:{“code.namespace”:“ml.dmlc.xgboost4j.java.NativeLibLoader”,“code.function”:“initXGBoost”,“code.lineno”:“195”,“thread.id”:“1”}}
Please guide on how to fix this error.