Problem
When running LightGBM in Exploratory on Mac, you may see the following error:
Error: package or namespace load failed for 'lightgbm' in dyn.load(file, DLLpath = DLLpath, ...):
unable to load shared object '.../lightgbm.so':
dlopen(...lightgbm.so, 6): Symbol not found: __ZTTNSt3__114basic_ifstreamIcNS_11char_traitsIcEEEE
Referenced from: ...lightgbm.so (which was built for Mac OS X 14.0)
Expected in: /usr/lib/libc++.1.dylib
This error occurs because your macOS version is too old to run LightGBM.
Solution
LightGBM requires macOS Sonoma (version 14) or later. It will not run on older versions such as Big Sur, Monterey, or Ventura.
To check your macOS version, go to Apple menu > About This Mac.
If you’re on an older version of macOS, you will need to upgrade to macOS Sonoma (14) or later to use LightGBM.
Note: LightGBM works without any issues on Windows.