私はUbuntu 11にあります Tiling to rails 3.1 レールをインストールしたようですが、 。 私はrvmを使ってレールをインストールして使いたいと思っています。sudo apt-getルートに行きたくありません。エラー( 'プログラムの' rails 'は現在インストールされていません。')RVMを使用してrails3アプリケーションを作成しています
ありがとうございます!
[email protected]:~$ rvm list rubies
rvm rubies
ruby-1.9.2-p290 [ x86_64 ]
[email protected]:~$ rvm use --create [email protected]
Using /home/durrantm/.rvm/gems/ruby-1.9.2-p290 with gemset rails3
[email protected]:~$ rvm list rubies
rvm rubies
=> ruby-1.9.2-p290 [ x86_64 ]
[email protected]:~$ gem install rails
ERROR: Loading command: install (LoadError)
no such file to load -- zlib
ERROR: While executing gem ... (NameError)
uninitialized constant Gem::Commands::InstallCommand
[email protected]:~$ sudo gem install rails
Successfully installed rails-3.1.0
1 gem installed
Installing ri documentation for rails-3.1.0...
file 'lib' not found
Installing RDoc documentation for rails-3.1.0...
file 'lib' not found
[email protected]:~$ rails
The program 'rails' is currently not installed. You can install it by typing:
sudo apt-get install rails
[email protected]:~$
はところで
[email protected]:~$ gem install rails
ERROR: Loading command: install (LoadError)
no such file to load -- zlib
ERROR: While executing gem ... (NameError)
uninitialized constant Gem::Commands::InstallCommand
[email protected]:~$
のいずれかに動作しませんし、私を約1時間のzlibの問題を中心に踊っています。また
は:
rvm gemset install rails
installing rails ...
ERROR: Error running 'GEM_HOME='/home/durrantm/.rvm/gems/[email protected]' GEM_PATH='/home/durrantm/.rvm/gems/[email protected]' gem install rails ', please read /home/durrantm/.rvm/log/ruby-1.9.2-p290/gem.install.log
rails failed to install (output logged to: /home/durrantm/.rvm/log/ruby-1.9.2-p290/gem.install.log)
[email protected]:~$ tail -20 /home/durrantm/.rvm/log/ruby-1.9.2-p290/gem.install.log
[2011-09-13 09:17:57] GEM_HOME='/home/durrantm/.rvm/gems/[email protected]' GEM_PATH='/home/durrantm/.rvm/gems/[email protected]' gem install rails
ERROR: Loading command: install (LoadError)
no such file to load -- zlib
ERROR: While executing gem ... (NameError)
uninitialized constant Gem::Commands::InstallCommand
[email protected]:~$