-
-
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
Trouble installing xgboost on OSX 10.14 #4949
Comments
This comment has been minimized.
This comment has been minimized.
I'm not an OSX user. @hcho3 could you help taking a look when you are back? Community help is very much wanted. We currently run osx test on Travis but it doesn't seem the tests can cover all cases. |
@bearcub For now, you should try @gomlfx I'm hiding your comment because it's a shallow dismissal of a legitimate problem. Please do not comment like that here. We should aim to respect fellow users. |
@bearcub Also, make sure that you installed the Command Line Tools (CLT) for Xcode. |
@hcho3
how do I test if it's working? |
EDIT. This comment is now outdated. See #4949 (comment) instead. @bearcub It looks like
After these commands, you should be able to run Note to myself: submit a PR to Homebrew to install the Python package automatically. |
derp. it werks now. Thank you @hcho3 !!!!! |
This solution is not always working. In my case, I just download user argument of Xcode. I think this was happening because a new version of Xcode was downloaded and the new agreement was not accepted. Right now it's working properly. |
Now the latest XGBoost release (version 1.1.0) comes with a pre-built Python wheel for Mac OSX. Simply run
and it will install quickly. No need to worry about build failing, because we already did the build for you. |
I seem to be running into this old issue. When calling
I have tried specifying specific versions ( Machine specs: |
@rrpelgrim See coiled/benchmarks#203 (comment). Would you be able to upgrade to MacOS 12? |
Hi there,
I feel like I've tried everything under the sun to install xgboost on my mac (mohave), but I'm still running into dead ends.
Some things I've tried:
#4477
When I run the step
$ cmake ..
I get this error:
`-- The CXX compiler identification is GNU 5.5.0
-- The C compiler identification is GNU 5.5.0
-- Checking whether CXX compiler has -isysroot
-- Checking whether CXX compiler has -isysroot - yes
-- Checking whether CXX compiler supports OSX deployment target flag
-- Checking whether CXX compiler supports OSX deployment target flag - yes
-- Check for working CXX compiler: /usr/local/bin/g++-5
-- Check for working CXX compiler: /usr/local/bin/g++-5 -- broken
CMake Error at /usr/local/Cellar/cmake/3.15.4/share/cmake/Modules/CMakeTestCXXCompiler.cmake:53 (message):
The C++ compiler
is not able to compile a simple test program.
It fails with the following output:
CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
CMakeLists.txt:2 (project)
-- Configuring incomplete, errors occurred!
See also "/Users/camp426/xgboost/build/CMakeFiles/CMakeOutput.log".
See also "/Users/camp426/xgboost/build/CMakeFiles/CMakeError.log".`
I have homebrew, I've updated homebrew, I've tried installing xgboost (using both pip and pip3) with gcc5, gcc8, and gcc9.2 (newest version), none work. I get the same error:
Command "python setup.py egg_info" failed with error code 1
Which I see by the multiple issues that I found googling that this is a known issue.
I'm in dead-end land. Help please.
The text was updated successfully, but these errors were encountered: