新手问题 LinuxMint 安装 rails 失败,求解

go_farman · 2013年08月03日 · 最后由 Go_Farman 回复于 2013年08月03日 · 3800 次阅读

执行语句:gem install rails --version 4.0.0 --no-ri --no-rdoc

报错: Fetching: i18n-0.6.4.gem (100%) Successfully installed i18n-0.6.4 Fetching: multi_json-1.7.7.gem (100%) Successfully installed multi_json-1.7.7 Fetching: tzinfo-0.3.37.gem (100%) Successfully installed tzinfo-0.3.37 Fetching: atomic-1.1.11.gem (100%) Building native extensions. This could take a while... ERROR: Error installing rails: ERROR: Failed to build gem native extension.

/home/go-faraman/.rvm/rubies/ruby-2.0.0-p247/bin/ruby extconf.rb creating Makefile

make compiling atomic_reference.c linking shared-object atomic_reference.so

make install /usr/bin/install -c -m 0755 atomic_reference.so /home/go-faraman/.rvm/gems/ruby-2.0.0-p247@railstutorial_rails_4_0/gems/atomic-1.1.11/lib/home/go-faraman/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/site_ruby/2.0.0/x86_64-linux /usr/bin/install: 无法创建普通文件"/home/go-faraman/.rvm/gems/ruby-2.0.0-p247@railstutorial_rails_4_0/gems/atomic-1.1.11/lib/home/go-faraman/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/site_ruby/2.0.0/x86_64-linux": 没有那个文件或目录 make: *** [install-so] 错误 1

Gem files will remain installed in /home/go-faraman/.rvm/gems/ruby-2.0.0-p247@railstutorial_rails_4_0/gems/atomic-1.1.11 for inspection. Results logged to /home/go-faraman/.rvm/gems/ruby-2.0.0-p247@railstutorial_rails_4_0/gems/atomic-1.1.11/ext/gem_make.out

求高手 怎么解决问题啊

我按照上面说的将 gem 升到 2.0.3,再安装 rails(gem install rails --no-ri --no-rdoc)为什么一直没有反应啊 按了回车键就一直没反映

需要 登录 后方可回复, 如果你还没有账号请 注册新账号