4

我正在尝试将 Ruby on Rails 安装到在 DSM 5.2 上运行的 Synology NAS 服务器。已安装 Ruby 2.2.0。接下来我尝试安装 Rails。在安装过程中,我收到以下错误消息:

Building native extensions.  This could take a while...
/usr/bin/ruby -r ./siteconf20150602-13143-1u6fp4x.rb extconf.rb
mkmf.rb can't find header files for ruby at /usr/lib/ruby/include/ruby.h
ERROR:  Error installing rails:
        ERROR: Failed to build gem native extension.

    Building has failed. See above output for more information on the failure.
extconf failed, exit code 1

Gem files will remain installed in /usr/lib/ruby/gems/2.2.0/gems/nokogiri-1.6.6.2 for inspection.
Results logged to /usr/lib/ruby/gems/2.2.0/extensions/x86-linux/2.2.0/nokogiri-1.6.6.2/gem_make.out

你能帮我吗,有人吗?

谢谢,托马斯

4

1 回答 1

-1

您应该首先安装所有必要的软件包以使用 nokogiri gem

为野古切

sudo apt-get install libxslt-dev libxml2-dev zlib1g-dev

然后使用安装 Nokogiri gem,

sudo gem install nokogiri
于 2015-06-02T14:10:59.390 回答