2012-03-23 9 views
0

Ich habe Anweisungen von this question on SO gefolgt, um RVM, Rubine und Edelsteinlisten einzurichten.Wie installiere ich eine Rails-Anwendung, wenn ich RVM verwende?

Ich habe Rubine 1.8.7 und 1.9.3 erstellt. Für den Rubin 1.8.7 habe ich einen Edelstein namens Organisator geschaffen.

Ich habe den 1.8.7 Rubin und Gemset "Organisator" aktiviert.

Ich navigierte in den Ordner meiner App und versuchte, Bündel installieren ausführen. Ich gehe davon aus, dass ich die für meine App benötigten Edelsteine ​​installieren soll, so wie ich es tat, als ich RVM nicht hatte.

Fehlermeldung erhalte ich:

[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/ruby-1.8.[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 

ich auch eine Fehlermeldung erhalten, wenn ich versuche, eine neue App zu erstellen:

[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 

Ich nehme ich etwas falsch gemacht habe, wenn RVM Einrichtung . Die einzige Idee, die ich gerade habe, ist es, alle Edelsteine ​​aus meiner gemfile zu installieren und sie manuell zu gemfile hinzuzufügen.

Versionen

  • Rubin 1.8.7-P358
  • Rails 2.3.1.4
  • RVM 1.10.3
  • Ubuntu 11,10
+0

tut 'rvm list' Arbeit Recht für dich, und wenn ja, was zeigt es? – prusswan

+0

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

+2

Ihnen fehlen möglicherweise bestimmte SSL-Pakete, siehe: http://stackoverflow.com/questions/8642368/why-require -mongo-gibt-mir-loaderror-no-so-Datei-zu-laden-openssl – prusswan

Antwort

1

bitte auf den „Quick Fix“ von hier https://rvm.io/packages/openssl/

Sie den Rest Anweisungen verwenden zu ignorieren haben, sie für Systeme gedacht sind, die keine Pakete unterstützen (wie osx)

+1

Das ist eigentlich https://rvm.io/ Pakete/openssl/jetzt – jbnunn

0

Ja, Sie haben openssl verpasst, Geben Sie diese ein, sollte

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 
funktionieren 0
+0

Ihre Anweisungen sind gut für Systeme, die keine Pakete unterstützen (wie Osx), aber die meisten Linux-Systeme bieten Pakete und sie sind besser als 'rvm pkg ...' – mpapis

Verwandte Themen