将Ruby on Rails安装到Synology DSM 5.2的问题

时间:2015-06-02 14:06:35

标签: ruby-on-rails synology

我正试图在我的Synology NAS服务器上安装Ruby on Rails,并在DSM 5.2上运行。安装了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

你可以帮助我吗?

谢谢,托马斯

1 个答案:

答案 0 :(得分:-1)

您应首先安装所有必需的软件包才能使用nokogiri gem

对于Nokogiri

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

然后使用

安装Nokogiri gem
sudo gem install nokogiri