最近在安装Facebook的一个开源工具包,Fasttext(https://github.com/facebookresearch/fastText),但是编译过程中出现了问题。错误信息是:
代码: 全选
c++ -pthread -std=c++0x -O3 -funroll-loops args.o dictionary.o productquantizer.o matrix.o qmatrix.o vector.o model.o utils.o fasttext.o src/main.cc -o fasttext
/usr/bin/ld: cannot find -lgcc_s
collect2: error: ld returned 1 exit status
Makefile:49: recipe for target 'fasttext' failed
make: *** [fasttext] Error 1
我在ubuntu环境下安装一些python包的时候,也常常出现这个问题,由于我是新手,不太熟悉ubuntu,c和c++,平时也只是用python和matlab做研究。所以不知道如何解决。我google过很多帖子,也试过重新安装gcc,但是问题依然没有解决。
请问群里有朋友愿意告诉我这是什么问题吗?我自己折腾了好一两天了,也没解决问题。先谢谢大家了。