2012-03-23 8 views
0

私はthis question on SOの指示に従って、RVM、ルビー、および宝石リストを設定しました。RVMを使用してRailsアプリケーションをインストールするにはどうすればよいですか?

ルビー1.8.7と1.9.3を作成しました。 Ruby 1.8.7では、Organisatorというgemsetを作成しました。

私は1.8.7ルビーとジェムセット「オーガニゼーター」を起動しました。

私のアプリのフォルダに移動し、バンドルインストールを実行しようとしました。私は、RVMを持っていなかったときと同じように、自分のアプリに必要な宝石をインストールする方法を想定しています。私が手

エラーメッセージ:

[email protected]:/home/user/RoR/testapp# bundle install 
Fetching gem metadata from https://rubygems.org/.Unfortunately, a fatal error has occurred. Please report this error to the Bundler issue tracker at https://github.com/carlhuda/bundler/issues so that we can fix it. Please include the full output of the command, your Gemfile and Gemfile.lock. Thanks! 
/usr/local/rvm/rubies/ruby-1.8.7-p358/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require': no such file to load -- openssl (LoadError) 
    from /usr/local/rvm/rubies/ruby-1.8.7-p358/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in `require' 
    from /usr/local/rvm/rubies/ruby-1.8.7-p358/lib/ruby/1.8/net/https.rb:102 
    from /usr/local/rvm/rubies/ruby-1.8.7-p358/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require' 
    from /usr/local/rvm/rubies/ruby-1.8.7-p358/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in `require' 
    from /usr/local/rvm/gems/[email protected]/gems/bundler-1.1.2/lib/bundler/vendor/net/http/persistent.rb:447:in `ssl' 
    from /usr/local/rvm/gems/[email protected]/gems/bundler-1.1.2/lib/bundler/vendor/net/http/persistent.rb:216:in `connection_for' 
    from /usr/local/rvm/gems/[email protected]/gems/bundler-1.1.2/lib/bundler/vendor/net/http/persistent.rb:358:in `request' 
    from /usr/local/rvm/gems/[email protected]/gems/bundler-1.1.2/lib/bundler/fetcher.rb:135:in `fetch' 
    from /usr/local/rvm/gems/[email protected]/gems/bundler-1.1.2/lib/bundler/fetcher.rb:163:in `fetch_dependency_remote_specs' 
    from /usr/local/rvm/gems/[email protected]/gems/bundler-1.1.2/lib/bundler/fetcher.rb:122:in `fetch_remote_specs' 
    from /usr/local/rvm/gems/[email protected]/gems/bundler-1.1.2/lib/bundler/fetcher.rb:70:in `specs' 
    from /usr/local/rvm/gems/[email protected]/gems/bundler-1.1.2/lib/bundler/source.rb:234:in `remote_specs' 
    from /usr/local/rvm/gems/[email protected]/gems/bundler-1.1.2/lib/bundler/source.rb:232:in `each' 
    from /usr/local/rvm/gems/[email protected]/gems/bundler-1.1.2/lib/bundler/source.rb:232:in `remote_specs' 
    from /usr/local/rvm/gems/[email protected]/gems/bundler-1.1.2/lib/bundler/source.rb:165:in `fetch_specs' 
    from /usr/local/rvm/gems/[email protected]/gems/bundler-1.1.2/lib/bundler/source.rb:70:in `specs' 
    from /usr/local/rvm/gems/[email protected]/gems/bundler-1.1.2/lib/bundler/lazy_specification.rb:53:in `__materialize__' 
    from /usr/local/rvm/gems/[email protected]/gems/bundler-1.1.2/lib/bundler/spec_set.rb:86:in `materialize' 
    from /usr/local/rvm/gems/[email protected]/gems/bundler-1.1.2/lib/bundler/spec_set.rb:83:in `map!' 
    from /usr/local/rvm/gems/[email protected]/gems/bundler-1.1.2/lib/bundler/spec_set.rb:83:in `materialize' 
    from /usr/local/rvm/gems/[email protected]/gems/bundler-1.1.2/lib/bundler/definition.rb:127:in `specs' 
    from /usr/local/rvm/gems/[email protected]/gems/bundler-1.1.2/lib/bundler/definition.rb:122:in `resolve_remotely!' 
    from /usr/local/rvm/gems/[email protected]/gems/bundler-1.1.2/lib/bundler/installer.rb:48:in `run' 
    from /usr/local/rvm/gems/[email protected]/gems/bundler-1.1.2/lib/bundler/installer.rb:12:in `install' 
    from /usr/local/rvm/gems/[email protected]/gems/bundler-1.1.2/lib/bundler/cli.rb:220:in `install' 
    from /usr/local/rvm/gems/[email protected]/gems/bundler-1.1.2/lib/bundler/vendor/thor/task.rb:22:in `send' 
    from /usr/local/rvm/gems/[email protected]/gems/bundler-1.1.2/lib/bundler/vendor/thor/task.rb:22:in `run' 
    from /usr/local/rvm/gems/[email protected]/gems/bundler-1.1.2/lib/bundler/vendor/thor/invocation.rb:118:in `invoke_task' 
    from /usr/local/rvm/gems/[email protected]/gems/bundler-1.1.2/lib/bundler/vendor/thor.rb:263:in `dispatch' 
    from /usr/local/rvm/gems/[email protected]/gems/bundler-1.1.2/lib/bundler/vendor/thor/base.rb:386:in `start' 
    from /usr/local/rvm/gems/[email protected]/gems/bundler-1.1.2/bin/bundle:13 
    from /usr/local/rvm/gems/[email protected]/bin/bundle:19:in `load' 
    from /usr/local/rvm/gems/[email protected]/bin/bundle:19 

私は新しいアプリを作成しようとしたとき、私はまた、エラーメッセージが表示されます:

[email protected]:/home/user/RoR# rails new testapp 
/usr/lib/ruby/vendor_ruby/railties/lib/rails_generator.rb:30:in `require': no such file to load -- active_support (LoadError) 
    from /usr/lib/ruby/vendor_ruby/railties/lib/rails_generator.rb:30 
    from /usr/lib/ruby/vendor_ruby/railties/bin/rails:16:in `require' 
    from /usr/lib/ruby/vendor_ruby/railties/bin/rails:16 

を私はRVMを設定するとき、私は何か間違ったことをやったと仮定。 今私が持っている唯一のアイデアは、私のgemfileからすべてのgemファイルをインストールし、gemfileに手動で追加することです。

バージョン

  • のRuby 1.8.7-P358
  • Railsの2.3.1.4
  • RVM 1.10.3
  • のUbuntu 11.10
+0

'RVMのlist'作業権利を行いますあなたのために、そしてもしそうなら、それは何を示していますか? – prusswan

+0

rvm ruby​​ ruby​​-1.8.7-p358 [i686] ruby​​-1.9.3-p125 [i686] – afaf12

+2

特定のSSLパッケージが不足している可能性があります。http://stackoverflow.com/questions/8642368/why-require -mongo-give-me-loaderror-no-such-file-to-load-openssl – prusswan

答えて

1

あなたは、命令の残りの部分を無視する必要があり、ここでhttps://rvm.io/packages/openssl/

から「クイックフィックス」を使用してください、彼らは(OSXのような)パッケージをサポートしていないシステムのために意図されている

+1

これは実際にhttps://rvm.io/パッケージ/ openssl/now – jbnunn

0

はい、あなたはOpenSSLを見逃しています、これを入力してください。

rvm pkg install openssl 
rvm pkg install iconv 
rvm remove 1.8.7 
rvm install 1.8.7 -C --with-openssl-dir=$HOME/.rvm/usr,--with-iconv-dir=$HOME/.rvm/usr 
+0

あなたの指示はパッケージ(osxのような)をサポートしていないシステムには適していますが、Linuxシステムのほとんどはパッケージを提供していて、 'rvm pkg ... 'を使う方が良いでしょう。 – mpapis

関連する問題