Xgboost: error in ubuntu libstdc++.so.6: version `GLIBCXX_3.4.20' not found

Created on 24 Mar 2016  ·  18Comments  ·  Source: dmlc/xgboost

Trying to install xgboost I have the following error.

OSError: /home/al/anaconda3/lib/python3.5/site-packages/scipy/sparse/../../../../libstdc++.so.6: versionGLIBCXX_3.4.20' not found (required by /home/al/anaconda3/lib/python3.5/site-packages/xgboost-0.4-py3.5.egg/xgboost/libxgboost.so)`

I'm running
Python 3.5.1 |Anaconda 2.4.0 (64-bit)| (default, Dec 7 2015, 11:16:01) [GCC 4.4.7 20120313 (Red Hat 4.4.7-1)] on linux

I already follow the normal steps for installing. git clone ... -> make -> python setup.py install

Most helpful comment

Same issue.
conda install libgcc
Solved it for me.

All 18 comments

Apparently I was able to install it by using a clean environment. Not sure whats wrong but it works.

Same issue.
conda install libgcc
Solved it for me.

@shawnwanderson: I tried many ways, all of them didn't work. But your method works perfectly. Thanks!

Solved for me too ! Thanks

@shawnwanderson , works like magic !, Thank You

@shawnwanderson Solved my problem!Thanks

Thanks :+1:

@shawnwanderson It works

Not work

This is awesome ! @shawnwanderson

@shawnwanderson I love you.

@shawnwanderson you saved my day. thank you so much.

@shawnwanderson Thank you - works perfectly!

@shawnwanderson Thank you so much! Even on a virtue machine (Host:WIn10, Guest Ubuntu 16), it still works perfectly fine.

Thanks-works perfectly

conda install libgcc=5.2.0 works for me

Thank you so much....

I have seen multiple users suggesting a simple conda install libgcc, but none worked for me. However, @dandanua 's solution (for those who don't wanna scroll up: conda install libgcc=5.2.0) actually did the trick -- it seems that the default version installed by conda install libgcc is too high to work.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

FabHan picture FabHan  ·  4Comments

XiaoxiaoWang87 picture XiaoxiaoWang87  ·  3Comments

tqchen picture tqchen  ·  4Comments

trivialfis picture trivialfis  ·  3Comments

nicoJiang picture nicoJiang  ·  4Comments