小白求助:error: command 'x86_64-linux-gnu-gcc' failed with exit

系统安装、升级讨论
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
回复
giligulu
帖子: 14
注册时间: 2018-01-19 16:03
系统: ubuntu16.04+win7

小白求助:error: command 'x86_64-linux-gnu-gcc' failed with exit

#1

帖子 giligulu » 2018-01-21 10:56

今天在装pyltp时,执行指令 python setup.py install ,出现了下面的错误

cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
In file included from ltp/src/srl/common/model/PiSrlModel.h:9:0,
from ltp/src/srl/Pi/model/SrlPiModel.h:9,
from ltp/src/srl/DepSRL.h:20,
from ltp/src/srl/DepSRL.cpp:12:
ltp/src/srl/common/model/SeqLabelModel.h:9:25: fatal error: dynet/model.h: 没有那个文件或目录
compilation terminated.

error: command 'x86_64-linux-gnu-gcc' failed with exit status 1


我在网上查找错误后有人说是因为C库的依赖没有装全什么的。。
我根据红色字体的提示装了好几个之后发现还需要装,由于不知道到底需要装几个依赖,
所以前来求助ORZ。。。。
头像
九天星
帖子: 1440
注册时间: 2007-07-14 20:45

Re: 小白求助:error: command 'x86_64-linux-gnu-gcc' failed with e

#2

帖子 九天星 » 2018-01-21 18:05

因为我们不知道你所安装的是个什么文件,也不知道你所安装的文件是否规范,故无法根据错误提示解答你的问题。

思路应该是:你应该看安装文件的readme文件,在其中寻找此问题的解决之道或者直接查看源代码,在源代码中寻找解决之道。


406941848.jpg
giligulu
帖子: 14
注册时间: 2018-01-19 16:03
系统: ubuntu16.04+win7

Re: 小白求助:error: command 'x86_64-linux-gnu-gcc' failed with e

#3

帖子 giligulu » 2018-01-22 16:02

九天星 写了:因为我们不知道你所安装的是个什么文件,也不知道你所安装的文件是否规范,故无法根据错误提示解答你的问题。

思路应该是:你应该看安装文件的readme文件,在其中寻找此问题的解决之道或者直接查看源代码,在源代码中寻找解决之道。


406941848.jpg
这样子,好的。我试试。
回复