Correct the compatibility description#47
Correct the compatibility description#47eustomaqua wants to merge 1 commit intofeedzai:main-fairgbmfrom
Conversation
|
Sorry, I suddenly realise that it might work on Cent OS and RHEL8, wait a moment and I will update later ------------UPDATE------------- Seems like it might be able to be solved somehow, but currently I don't know how to do that without the root access. Here is what I did according to stackoverflow: $ wget -4c https://ftp.gnu.org/gnu/glibc/glibc-2.29.tar.gz
$ tar -zxvf glibc-2.29.tar.gz # change to glibc-2.27.tar.gz on CentOS
$ cd glibc-2.29
$ mkdir build_dir
$ cd build_dir
$ ../configure --prefix=~/Software/glibc
$ make
$ make installThe installation works on RHEL8 (but didn't work on CentOS because configure: error:
*** These critical programs are missing or too old: compilerEven though glibc is installed on RHEL8, it still reports the same error when running fairgbm, as described above. I think running fairgbm might work if I do it this way sudo ../configure --prefix=/opt/glibc
sudo make
sudo make installBut unfortunately I don't have the root access. Therefore the only way for me would be modifying the source code of fairgbm. Then I got stuck with modifying "lib_lightgbm.so", I don't know how to do that... |
|
glibc is an OS dependent library. I recommend avoiding a manual install as it will most likely break some underlying OS features. Looking at the base centos:7 image it looks like it ships with glibc-2.17 which will definitely not work: @eustomaqua can you please provide more context on how you are trying to build this image or install FairGBM? E.g., by sharing a Dockerfile? Thanks! |
|
@joaoleveiga Sorry for the late response, I was trying to use docker (centos:7 and centos:8) and reproduce the error but failed to pull these images. The bugs I reported at the beginning were happening on the Linux servers (one is Cent OS 7, and the other is RHEL8), not a docker image. I mentioned docker because this is the only way I can successfully use fairgbm, by using a docker image of a Ubuntu system, which is also the reason I think the sentence "works for linux systems" in the document is incorrect. As for the docker image where I can successfully use fairgbm, I shared it already here and there. This is a purely Ubuntu:latest image, with no extra software or package installed. After creating an image using the Dockerfile, I enter the container to manually install miniconda3 and fairgbm. And that was how I made it work for me. I didn't use the official docker image because the file is too large. Let me know please if you need any other information. Thanks again for your help! |
|
Thanks for the PR! As far as I can tell, the docker image available here corresponding to this docker file works fine as an alternative to use fairgbm without Ubuntu. |
|
My intention is mainly to point out that the description is not precise, and secondly to give a Dockerfile that provides minimal dependency, which is the operating system---because in Ubuntu, people can simply use "pip install fairgbm" and no need to use a much larger docker image. Besides, I gave the initial Dockerfile here #45 (comment) for the available one |
As people noticed (#45), fairgbm is not supported on macOS. Besides, I tested fairgbm on Cent OS and RHEL8 systems, and it didn't work as well. So I don't think the statement---and I quote, "Note Compatibility is only maintained with Linux OS."---is correct, because the only Linux where I know it works is Ubuntu, although so many other Linux systems out there and I didn't test them all. Here I attached the errors for your information.
Error info
Running fairgbm on RHEL8 (Linux)
Running fairgbm on CentOS 7 (Linux)
Extra
Running fairgbm on MacOS (Unix)