我正在尝试使用以下命令在 DS213j Synology NAS 上安装 Rails:
$ gem install rails
但我不断收到此错误:
Building native extensions. This could take a while...
ERROR: Error installing rails:
ERROR: Failed to build gem native extension.
/usr/bin/ruby -r ./siteconf20150707-4993-mpal0w.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 /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/armle-linux/2.2.0/nokogiri-1.6.6.2/gem_make.out
我已经安装了 Ruby。我试图安装ruby-dev
,ruby-devel
但我不能使用apt-get
也不yum
......它一直告诉我它不知道这些命令:(。
我无法安装ipkg
,因为该模型没有引导程序,并且 curl 不起作用,它只是告诉我:
curl: (23) Failed writing body (0 != 15755)
所以是的......我现在有点绝望......谢谢