我想在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
至於我可以告訴所有必要的頭在那裏。我錯過了什麼?
'mkmf.log'中有什麼? –
它是空的.... – Jan
嗯。嘗試在Arch Arm Linux機器上的Ruby 1.9.2上安裝Rails,運行良好,可能在安裝時只有極小的相似性。 –