This repository was archived by the owner on Mar 19, 2024. It is now read-only.
This repository was archived by the owner on Mar 19, 2024. It is now read-only.
when "import fastText", encounter "undefined symbol: _ZSt24__throw_out_of_range_fmtPKcz" #639
Open
Description
Record an issue I encountered, maybe useful to others.
Environment:
- system: Linux
- gcc (GCC) 4.9.2
- python: Python 2.7.13 |Anaconda 4.4.0 (64-bit)| (default, Dec 20 2016, 23:09:15) [GCC 4.4.7 20120313 (Red Hat 4.4.7-1)] on linux2
Problem:
when "import fastText", encounter error: "undefined symbol: _ZSt24__throw_out_of_range_fmtPKcz"
How to solve:
I update the version of "libgcc" in Anaconda, and the problem disappears.
conda install libgcc
or
pip install libgcc
I am not sure why it works. I guess: although the system's gcc version is 4.9.2 (support C++11), but the Anaconda's gcc version is 4.4.7 (not support C++11)