gpt4 book ai didi

ruby-on-rails - 在 arm 系统中安装 rails 的问题

转载 作者:太空宇宙 更新时间:2023-11-04 11:35:57 25 4
gpt4 key购买 nike

我正在尝试在 synology diskstation 上安装 RoR。

uname -a

Linux Sonne 2.6.32.12 #1922 Sun Sep 4 02:10:58 CST 2011 armv5tel GNU/Linux

ruby 和 ruby​​gems 通过 ipkg 安装

ruby -v

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

gem -v

1.8.11

开发工具已安装。当我尝试运行 sudo gem install rails 构建 json native 扩展时出现错误:

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

据我所知,所有必要的标题都在那里。我错过了什么?

最佳答案

如 RoR 网站所述,您不应将 ruby​​ 1.9.1 与 rails 一起使用:

We recommend Ruby 1.8.7 or Ruby 1.9.2 for use with Rails. Ruby 1.8.6 and earlier are not supported, neither is version 1.9.1.

关于ruby-on-rails - 在 arm 系统中安装 rails 的问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7882022/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com