项目

一般

简介

ubuntu下安装Redmine时nokogiri报错

0

Redmine Admin
大约一个月 之前增加

Redmine安装过程中nokogiri报错输出:

sudo gem install nokogiri
Building native extensions. This could take a while...
ERROR:  Error installing nokogiri:
    ERROR: Failed to build gem native extension.

    current directory: /var/lib/gems/2.5.0/gems/nokogiri-1.8.5/ext/nokogiri
/usr/bin/ruby2.5 -r ./siteconf20181205-6502-3n3u4g.rb extconf.rb
mkmf.rb can't find header files for ruby at /usr/lib/ruby/include/ruby.h

extconf failed, exit code 1

Gem files will remain installed in /var/lib/gems/2.5.0/gems/nokogiri-1.8.5 for inspection.
Results logged to /var/lib/gems/2.5.0/extensions/x86_64-linux/2.5.0/nokogiri-1.8.5/gem_make.out
评论

解答 (1)

1

Redmine Admin
大约一个月 之前增加

试试这个:

sudo apt-get install libxslt-dev libxml2-dev zlib1g-dev
sudo gem install nokogiri
评论
    (1-1/1)

    你的解答

    文件
    (最大尺寸: 14.8 MB)