1

チュートリアルに従って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.

2 つのパスがマージされたように見えますが、Rails/Ruby を初めて使用するため、どのように進めればよいかわかりません。これまでのすべての手順は、エラーなしで正常に完了したように見えます。

私のシステムは Linux Mint x86_64 (Debian ベース) です。

4

5 に答える 5

2

ほぼ同じ問題があり、最終的にインストールする方法についてこの質問への回答を投稿しました。

基本的 :

  • gem update --system (2.0.3 に更新)
  • 宝石の更新
  • gem install rails (バージョンがない場合、現在は 4.0.0 がデフォルトのようです)

幸運を

于 2013-06-30T14:54:36.753 に答える
0

rvm を介して ruby​​/rails をインストールする場合は、常に実行します。

rvm requirements

rvm をインストールした後、ruby と rails をインストールする前に

于 2013-06-30T15:08:52.293 に答える