我知道这是一个重复的问题,但是我发现与此问题相关的其他答案似乎没有帮助到我...
我正在安装GitLab
并运行gem依赖项时,遇到了NokoGiri
gem要求,并出现以下错误信息:
ERROR: Error installing nokogiri:
ERROR: Failed to build gem native extension.
/usr/local/bin/ruby extconf.rb
extconf.rb:10:in `<main>': Use RbConfig instead of obsolete and deprecated Config.
extconf.rb:10:in `<main>': Use RbConfig instead of obsolete and deprecated Config.
extconf.rb:11:in `<main>': Use RbConfig instead of obsolete and deprecated Config.
checking for libxml/parser.h... yes
checking for libxslt/xslt.h... yes
checking for libexslt/exslt.h... yes
checking for iconv_open() in iconv.h... yes
checking for xmlParseDoc()... -lxml2
checking for xsltParseStylesheetDoc()... -lxslt
-----
libxslt is missing. please visit http://nokogiri.org/tutorials/installing_nokogiri.html for help with installing dependencies.
-----
那么,这个错误导致我试图使用以下命令安装libxslt
:
所以,这个错误导致我尝试使用以下命令安装libxslt
:
$ sudo apt-get install libxslt-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'libxslt1-dev' instead of 'libxslt-dev'
libxslt1-dev is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 146 not upgraded.
出了什么问题?NokoGiri需要这个软件包,但是这个软件包已经安装了!! 我似乎无法解决这个问题,有任何帮助吗?