我正在尝试按照教程安装 Rails 4.0.0 ,但出现以下错误:
gez@akira:~$ 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.10.gem (100%)
Building native extensions. This could take a while...
ERROR: Error installing rails:
ERROR: Failed to build gem native extension.
/home/gez/.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/gez/.rvm/gems/ruby-2.0.0-p247@railstut_rails_4_0/gems/atomic-1.1.10/lib/home/gez/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/site_ruby/2.0.0/x86_64-linux
/usr/bin/install: cannot create regular file `/home/gez/.rvm/gems/ruby-2.0.0-p247@railstut_rails_4_0/gems/atomic-1.1.10/lib/home/gez/.rvm/rubies/ruby-2.0.0-p247/lib/ruby/site_ruby/2.0.0/x86_64-linux': No such file or directory
make: *** [install-so] Error 1
Gem files will remain installed in /home/gez/.rvm/gems/ruby-2.0.0-p247@railstut_rails_4_0/gems/atomic-1.1.10 for inspection.
似乎两条路径已合并,但作为 Rails / Ruby 的新手,我不确定如何继续。之前的所有步骤似乎都已成功完成,没有出现错误。
我的系统是 Linux Mint x86_64(基于 Debian)。