xlearn
xlearn copied to clipboard
fix the terminate error - std::logic_error issue on some OS environme…
Check the issue #311
some error cases when installed by pip in latest ubuntu(or CentOS). because of c compiler version issue, the init_log()
's parameter is empty. maybe specify the parameter is needed.
xlearn c++ code uses multi-threading, so while accessing the hardware it need the user variable in the environment. And because if c compiler version issue the init_log() parameter is empty. So we have to initialize it by ourself.
So basically write USER = 'Test' before command.
I solved it in python using os.environ['USER'] = 'test'
Thanks @yoonkt200, this PR fixed the issue for me. I came across it when building xLearn with -march=nehalem
on Ubuntu:
https://github.com/ankane/ml-builds/blob/51001ef53c982221780206dd633b82d3eb1ba7be/.github/workflows/xlearn-linux.yml