2011-10-24 31 views
0

我想在Synology的DiskStation上安装RoR。在手臂系统中安装导轨的问题

uname -a

的Linux Sonne的2.6.32.12#1922太阳09月04日2时10分58秒CST 2011 armv5tel GNU/Linux的

红宝石和RubyGems是通过安装程序ipkg

ruby -v

红宝石1.9.1p243(2009-07-16修订版24175)[arm-linux-eabi]

gem -v

1.8.11

开发工具已安装。当我尝试运行sudo gem install rails我得到一个错误,当JSON的原生扩展是建立:

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

    /opt/bin/ruby extconf.rb 
checking for re.h... *** extconf.rb failed *** 
Could not create Makefile due to some reason, probably lack of 
necessary libraries and/or headers. Check the mkmf.log file for more 
details. You may need configuration options. 

Provided configuration options: 
--with-opt-dir 
--with-opt-include 
--without-opt-include=${opt-dir}/include 
--with-opt-lib 
--without-opt-lib=${opt-dir}/lib 
--with-make-prog 
--without-make-prog 
--srcdir=. 
--curdir 
--ruby=/opt/bin/ruby 
/opt/lib/ruby/1.9.1/mkmf.rb:362:in `try_do': The complier failed to generate an executable file. (RuntimeError) 
You have to install development tools first. 
from /opt/lib/ruby/1.9.1/mkmf.rb:431:in `try_cpp' 
from /opt/lib/ruby/1.9.1/mkmf.rb:809:in `block in have_header' 
from /opt/lib/ruby/1.9.1/mkmf.rb:668:in `block in checking_for' 
from /opt/lib/ruby/1.9.1/mkmf.rb:274:in `block (2 levels) in postpone' 
from /opt/lib/ruby/1.9.1/mkmf.rb:248:in `open' 
from /opt/lib/ruby/1.9.1/mkmf.rb:274:in `block in postpone' 
from /opt/lib/ruby/1.9.1/mkmf.rb:248:in `open' 
from /opt/lib/ruby/1.9.1/mkmf.rb:270:in `postpone' 
from /opt/lib/ruby/1.9.1/mkmf.rb:667:in `checking_for' 
from /opt/lib/ruby/1.9.1/mkmf.rb:808:in `have_header' 
from extconf.rb:14:in `<main>' 


Gem files will remain installed in /opt/lib/ruby/gems/1.9.1/gems/json-1.6.1 for inspection. 
Results logged to /opt/lib/ruby/gems/1.9.1/gems/json-1.6.1/ext/json/ext/parser/gem_make.out 

至于我可以告诉所有必要的头在那里。我错过了什么?

+0

'mkmf.log'中有什么? –

+0

它是空的.... – Jan

+0

嗯。尝试在Arch Arm Linux机器上的Ruby 1.9.2上安装Rails,运行良好,可能在安装时只有极小的相似性。 –

回答

1

你不应该使用Ruby 1.9.1与轨,在回报率的网站上声明:

我们建议的Ruby 1.8.7或Ruby 1.9.2和Rails使用。不支持Ruby 1.8.6 及更早版本,版本1.9.1也不支持。

+0

hmm true ...我会试着搭建红宝石1.9.2 – Jan