首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >无法安装Rubygem“链接解析器”

无法安装Rubygem“链接解析器”
EN

Stack Overflow用户
提问于 2012-04-11 00:12:49
回答 1查看 215关注 0票数 0

我想创建一个聊天机器人,为此我想使用Link Parser,它基本上是一个在查看句子时找出单词之间关系的引擎。

有一个我尝试使用以下命令安装的Ruby wrapper

代码语言:javascript
复制
gem install linkparser

还有:

代码语言:javascript
复制
gem install linkparser -- --with-link-grammar="C:\Users\Gebruiker\Downloads\Linkparsergrammar\linkgrammar4r-0.0.3"

但是,我一直收到以下错误:

代码语言:javascript
复制
Temporarily enhancing PATH to include DevKit...
Building native extensions.  This could take a while...
ERROR:  Error installing linkparser:
        ERROR: Failed to build gem native extension.

C:/Ruby193/bin/ruby.exe extconf.rb --with-link-grammar=C:\Users\Gebruiker\Downloads\Linkparsergrammar\linkgrammar4r-0.0.3
checking for pkg-config... no
Couldn't find your pkg-config binary
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers.  Check the mkmf.log file for more
details.  You may need configuration options.

Provided configuration options:
        --with-opt-dir
        --without-opt-dir
        --with-opt-include
        --without-opt-include=${opt-dir}/include
        --with-opt-lib
        --without-opt-lib=${opt-dir}/lib
        --with-make-prog
        --without-make-prog
        --srcdir=.
        --curdir
        --ruby=C:/Ruby193/bin/ruby
        --with-link-grammar
        --with-pkg-config
        --without-pkg-config


Gem files will remain installed in C:/Ruby193/lib/ruby/gems/1.9.1/gems/linkparser-1.1.3 for inspection.
Results logged to C:/Ruby193/lib/ruby/gems/1.9.1/gems/linkparser-1.1.3/ext/gem_make.out

我使用的是32位Windows Vista,使用的是最新的Ruby (1.9.3-p125)

有人能解释一下发生了什么事吗?

EN

回答 1

Stack Overflow用户

发布于 2012-04-11 00:23:16

这对你的问题有帮助吗?problems on installing link-parser gem on snow leopard

我知道这是给mac的,但听起来很相似

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/10092419

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档