我的Rails和ruby目前已更新
rails -v
=> Rails 5.0.1
ruby -v
=> ruby 2.4.0p0(2016-12-24修订版57164)[x86_64-linux]
创建了一个新的rails应用程序
rails new myapp
cd myapp
(进入项目目录)
rails s
/home/basil/.rbenv/versions/2.4.0/lib/ruby/2.4.0/x86_64-linux/openssl.so: warning: already initialized constant OpenSSL::VERSION
/home/basil/.rbenv/versions/2.4.0/lib/ruby/2.4.0/x86_64-linux/openssl.so: warning: already initialized constant OpenSSL::OPENSSL_VERSION
/home/basil/.rbenv/versions/2.4.0/lib/ruby/2.4.0/x86_64-linux/openssl.so: warning: already initialized constant OpenSSL::OPENSSL_LIBRARY_VERSION
/home/basil/.rbenv/versions/2.4.0/lib/ruby/2.4.0/x86_64-linux/openssl.so: warning: already initialized constant OpenSSL::OPENSSL_VERSION_NUMBER
/home/basil/.rbenv/versions/2.4.0/lib/ruby/2.4.0/x86_64-linux/openssl.so: warning: already initialized constant OpenSSL::OPENSSL_FIPS
/home/basil/.rbenv/versions/2.4.0/lib/ruby/2.4.0/x86_64-linux/openssl.so: warning: already initialized constant OpenSSL::Config::DEFAULT_CONFIG_FILE
/home/basil/.rbenv/versions/2.4.0/lib/ruby/2.4.0/x86_64-linux/openssl.so: warning: already initialized constant OpenSSL::PKCS7::Signer
/home/basil/.rbenv/versions/2.4.0/lib/ruby/2.4.0/x86_64-linux/openssl.so: warning: already initialized constant OpenSSL::PKCS7::TEXT
/home/basil/.rbenv/versions/2.4.0/lib/ruby/2.4.0/x86_64-linux/openssl.so: warning: already initialized constant OpenSSL::PKCS7::NOCERTS
/home/basil/.rbenv/versions/2.4.0/lib/ruby/2.4.0/x86_64-linux/openssl.so: warning: already initialized constant OpenSSL::X509::V_FLAG_EXTENDED_CRL_SUPPORT
/home/basil/.rbenv/versions/2.4.0/lib/ruby/2.4.0/x86_64-linux/openssl.so: warning: already initialized constant OpenSSL::X509::V_FLAG_USE_DELTAS
/home/basil/.rbenv/versions/2.4.0/lib/ruby/2.4.0/x86_64-linux/openssl.so: warning: already initialized constant OpenSSL::X509::V_FLAG_CHECK_SS_SIGNATURE
/home/basil/.rbenv/versions/2.4.0/lib/ruby/2.4.0/x86_64-linux/openssl.so: warning: already initialized constant OpenSSL::X509::V_FLAG_NO_ALT_CHAINS
/home/basil/.rbenv/versions/2.4.0/lib/ruby/2.4.0/x86_64-linux/openssl.so: warning: already initialized constant OpenSSL::X509::PURPOSE_SSL_CLIENT
/home/basil/.rbenv/versions/2.4.0/lib/ruby/2.4.0/x86_64-linux/openssl.so: warning: already initialized constant OpenSSL::X509::PURPOSE_SSL_SERVER
/home/basil/.rbenv/versions/2.4.0/lib/ruby/2.4.0/x86_64-linux/openssl.so: warning: already initialized constant OpenSSL::X509::PURPOSE_NS_SSL_SERVER
/home/basil/.rbenv/versions/2.4.0/lib/ruby/2.4.0/x86_64-linux/openssl.so: warning: already initialized constant OpenSSL::X509::PURPOSE_SMIME_SIGN
/home/basil/.rbenv/versions/2.4.0/lib/ruby/2.4.0/x86_64-linux/openssl.so: warning: already initialized constant OpenSSL::X509::PURPOSE_SMIME_ENCRYPT
/home/basil/.rbenv/versions/2.4.0/lib/ruby/2.4.0/x86_64-linux/openssl.so: warning: already initialized constant OpenSSL::X509::PURPOSE_CRL_SIGN
/home/basil/.rbenv/versions/2.4.0/lib/ruby/2.4.0/x86_64-linux/openssl.so: warning: already initialized constant OpenSSL::X509::PURPOSE_ANY
/home/basil/.rbenv/versions/2.4.0/lib/ruby/2.4.0/x86_64-linux/openssl.so: warning: already initialized constant OpenSSL::X509::PURPOSE_OCSP_HELPER
/home/basil/.rbenv/versions/2.4.0/lib/ruby/2.4.0/x86_64-linux/openssl.so: warning: already initialized constant OpenSSL::X509::PURPOSE_TIMESTAMP_SIGN
/home/basil/.rbenv/versions/2.4.0/lib/ruby/2.4.0/x86_64-linux/openssl.so: warning: already initialized constant OpenSSL::X509::TRUST_COMPAT
/home/basil/.rbenv/versions/2.4.0/lib/ruby/2.4.0/x86_64-linux/openssl.so: warning: already initialized constant OpenSSL::X509::TRUST_SSL_CLIENT
/home/basil/.rbenv/versions/2.4.0/lib/ruby/2.4.0/x86_64-linux/openssl.so: warning: already initialized constant OpenSSL::X509::TRUST_SSL_SERVER
/home/basil/.rbenv/versions/2.4.0/lib/ruby/2.4.0/x86_64-linux/openssl.so: warning: already initialized constant OpenSSL::X509::TRUST_EMAIL
/home/basil/.rbenv/versions/2.4.0/lib/ruby/2.4.0/x86_64-linux/openssl.so: warning: already initialized constant OpenSSL::X509::TRUST_OBJECT_SIGN
/home/basil/.rbenv/versions/2.4.0/lib/ruby/2.4.0/x86_64-linux/openssl.so: warning: already initialized constant OpenSSL::X509::TRUST_OCSP_SIGN
/home/basil/.rbenv/versions/2.4.0/lib/ruby/2.4.0/x86_64-linux/openssl.so: warning: already initialized constant OpenSSL::X509::TRUST_OCSP_REQUEST
/home/basil/.rbenv/versions/2.4.0/lib/ruby/2.4.0/x86_64-linux/openssl.so: warning: already initialized constant OpenSSL::X509::TRUST_TSA
/home/basil/.rbenv/versions/2.4.0/lib/ruby/2.4.0/x86_64-linux/openssl.so: warning: already initialized constant OpenSSL::X509::DEFAULT_CERT_AREA
/home/basil/.rbenv/versions/2.4.0/lib/ruby/2.4.0/x86_64-linux/openssl.so: warning: already initialized constant OpenSSL::X509::DEFAULT_CERT_DIR
/home/basil/.rbenv/versions/2.4.0/lib/ruby/2.4.0/x86_64-linux/openssl.so: warning: already initialized constant OpenSSL::X509::DEFAULT_CERT_FILE
/home/basil/.rbenv/versions/2.4.0/lib/ruby/2.4.0/x86_64-linux/openssl.so: warning: already initialized constant OpenSSL::X509::DEFAULT_CERT_DIR_ENV
/home/basil/.rbenv/versions/2.4.0/lib/ruby/2.4.0/x86_64-linux/openssl.so: warning: already initialized constant OpenSSL::X509::DEFAULT_CERT_FILE_ENV
/home/basil/.rbenv/versions/2.4.0/lib/ruby/2.4.0/x86_64-linux/openssl.so: warning: already initialized constant OpenSSL::X509::DEFAULT_PRIVATE_DIR
/home/basil/.rbenv/versions/2.4.0/lib/ruby/2.4.0/x86_64-linux/openssl.so: warning: already initialized constant OpenSSL::OCSP::RESPONSE_STATUS_INTERNALERROR
/home/basil/.rbenv/versions/2.4.0/lib/ruby/2.4.0/x86_64-linux/openssl.so: warning: already initialized constant OpenSSL::OCSP::RESPONSE_STATUS_MALFORMEDREQUEST
/home/basil/.rbenv/versions/2.4.0/lib/ruby/2.4.0/x86_64-linux/openssl.so: warning: already initialized constant OpenSSL::OCSP::REVOKED_STATUS_NOSTATUS
/home/basil/.rbenv/versions/2.4.0/lib/ruby/2.4.0/x86_64-linux/openssl.so: warning: already initialized constant OpenSSL::OCSP::RESPONSE_STATUS_SIGREQUIRED
/home/basil/.rbenv/versions/2.4.0/lib/ruby/2.4.0/x86_64-linux/openssl.so: warning: already initialized constant OpenSSL::OCSP::RESPONSE_STATUS_SUCCESSFUL
/home/basil/.rbenv/versions/2.4.0/lib/ruby/2.4.0/x86_64-linux/openssl.so: warning: already initialized constant OpenSSL::OCSP::RESPONSE_STATUS_TRYLATER
/home/basil/.rbenv/versions/2.4.0/lib/ruby/2.4.0/x86_64-linux/openssl.so: warning: already initialized constant OpenSSL::OCSP::REVOKED_STATUS_AFFILIATIONCHANGED
/home/basil/.rbenv/versions/2.4.0/lib/ruby/2.4.0/x86_64-linux/openssl.so: warning: already initialized constant OpenSSL::OCSP::REVOKED_STATUS_CACOMPROMISE
/home/basil/.rbenv/versions/2.4.0/lib/ruby/2.4.0/x86_64-linux/openssl.so: warning: already initialized constant OpenSSL::OCSP::REVOKED_STATUS_CERTIFICATEHOLD
/home/basil/.rbenv/versions/2.4.0/lib/ruby/2.4.0/x86_64-linux/openssl.so: warning: already initialized constant OpenSSL::OCSP::REVOKED_STATUS_CESSATIONOFOPERATION
/home/basil/.rbenv/versions/2.4.0/lib/ruby/2.4.0/x86_64-linux/openssl.so: warning: already initialized constant OpenSSL::OCSP::REVOKED_STATUS_KEYCOMPROMISE
/home/basil/.rbenv/versions/2.4.0/lib/ruby/2.4.0/x86_64-linux/openssl.so: warning: already initialized constant OpenSSL::OCSP::REVOKED_STATUS_REMOVEFROMCRL
/home/basil/.rbenv/versions/2.4.0/lib/ruby/2.4.0/x86_64-linux/openssl.so: warning: already initialized constant OpenSSL::OCSP::REVOKED_STATUS_SUPERSEDED
/home/basil/.rbenv/versions/2.4.0/lib/ruby/2.4.0/x86_64-linux/openssl.so: warning: already initialized constant OpenSSL::OCSP::RESPONSE_STATUS_UNAUTHORIZED
/home/basil/.rbenv/versions/2.4.0/lib/ruby/2.4.0/x86_64-linux/openssl.so: warning: already initialized constant OpenSSL::OCSP::REVOKED_STATUS_UNSPECIFIED
/home/basil/.rbenv/versions/2.4.0/lib/ruby/2.4.0/x86_64-linux/openssl.so: warning: already initialized constant OpenSSL::OCSP::NOCERTS
/home/basil/.rbenv/versions/2.4.0/lib/ruby/2.4.0/x86_64-linux/openssl.so: warning: already initialized constant OpenSSL::OCSP::NOINTERN
/home/basil/.rbenv/versions/2.4.0/lib/ruby/2.4.0/x86_64-linux/openssl.so: warning: already initialized constant OpenSSL::OCSP::NOSIGS
/home/basil/.rbenv/versions/2.4.0/lib/ruby/2.4.0/x86_64-linux/openssl.so: warning: already initialized constant OpenSSL::OCSP::NOCHAIN
/home/basil/.rbenv/versions/2.4.0/lib/ruby/2.4.0/x86_64-linux/openssl.so: warning: already initialized constant OpenSSL::OCSP::NOVERIFY
/home/basil/.rbenv/versions/2.4.0/lib/ruby/2.4.0/x86_64-linux/openssl.so: warning: already initialized constant OpenSSL::OCSP::NOEXPLICIT
/home/basil/.rbenv/versions/2.4.0/lib/ruby/2.4.0/x86_64-linux/openssl.so: warning: already initialized constant OpenSSL::OCSP::NOCASIGN
/home/basil/.rbenv/versions/2.4.0/lib/ruby/2.4.0/x86_64-linux/openssl.so: warning: already initialized constant OpenSSL::OCSP::NODELEGATED
/home/basil/.rbenv/versions/2.4.0/lib/ruby/2.4.0/x86_64-linux/openssl.so: warning: already initialized constant OpenSSL::OCSP::NOCHECKS
/home/basil/.rbenv/versions/2.4.0/lib/ruby/2.4.0/x86_64-linux/openssl.so: warning: already initialized constant OpenSSL::OCSP::TRUSTOTHER
/home/basil/.rbenv/versions/2.4.0/lib/ruby/2.4.0/x86_64-linux/openssl.so: warning: already initialized constant OpenSSL::OCSP::RESPID_KEY
/home/basil/.rbenv/versions/2.4.0/lib/ruby/2.4.0/x86_64-linux/openssl.so: warning: already initialized constant OpenSSL::OCSP::NOTIME
/home/basil/.rbenv/versions/2.4.0/lib/ruby/2.4.0/x86_64-linux/openssl.so: warning: already initialized constant OpenSSL::OCSP::V_CERTSTATUS_GOOD
/home/basil/.rbenv/versions/2.4.0/lib/ruby/2.4.0/x86_64-linux/openssl.so: warning: already initialized constant OpenSSL::OCSP::V_CERTSTATUS_REVOKED
/home/basil/.rbenv/versions/2.4.0/lib/ruby/2.4.0/x86_64-linux/openssl.so: warning: already initialized constant OpenSSL::OCSP::V_CERTSTATUS_UNKNOWN
/home/basil/.rbenv/versions/2.4.0/lib/ruby/2.4.0/x86_64-linux/openssl.so: warning: already initialized constant OpenSSL::OCSP::V_RESPID_NAME
/home/basil/.rbenv/versions/2.4.0/lib/ruby/2.4.0/x86_64-linux/openssl.so: warning: already initialized constant OpenSSL::OCSP::V_RESPID_KEY
/home/basil/.rbenv/versions/2.4.0/lib/ruby/2.4.0/x86_64-linux/openssl.so: warning: already initialized constant OpenSSL::Engine::METHOD_RSA
/home/basil/.rbenv/versions/2.4.0/lib/ruby/2.4.0/x86_64-linux/openssl.so: warning: already initialized constant OpenSSL::Engine::METHOD_DSA
/home/basil/.rbenv/versions/2.4.0/lib/ruby/2.4.0/x86_64-linux/openssl.so: warning: already initialized constant OpenSSL::Engine::METHOD_DH
/home/basil/.rbenv/versions/2.4.0/lib/ruby/2.4.0/x86_64-linux/openssl.so: warning: already initialized constant OpenSSL::Engine::METHOD_RAND
/home/basil/.rbenv/versions/2.4.0/lib/ruby/2.4.0/x86_64-linux/openssl.so: warning: already initialized constant OpenSSL::Engine::METHOD_CIPHERS
/home/basil/.rbenv/versions/2.4.0/lib/ruby/2.4.0/x86_64-linux/openssl.so: warning: already initialized constant OpenSSL::Engine::METHOD_DIGESTS
/home/basil/.rbenv/versions/2.4.0/lib/ruby/2.4.0/x86_64-linux/openssl.so: warning: already initialized constant OpenSSL::Engine::METHOD_ALL
/home/basil/.rbenv/versions/2.4.0/lib/ruby/2.4.0/x86_64-linux/openssl.so: warning: already initialized constant OpenSSL::Engine::METHOD_NONE
/home/basil/.rbenv/versions/2.4.0/lib/ruby/2.4.0/x86_64-linux/openssl.so: warning: already initialized constant OpenSSL::ASN1::UNIVERSAL_TAG_NAME
/home/basil/.rbenv/versions/2.4.0/lib/ruby/2.4.0/x86_64-linux/openssl.so: warning: already initialized constant OpenSSL::ASN1::EOC
/home/basil/.rbenv/versions/2.4.0/lib/ruby/2.4.0/x86_64-linux/openssl.so: warning: already initialized constant OpenSSL::ASN1::BOOLEAN
/home/basil/.rbenv/versions/2.4.0/lib/ruby/2.4.0/x86_64-linux/openssl.so: warning: already initialized constant OpenSSL::ASN1::INTEGER
/home/basil/.rbenv/versions/2.4.0/lib/ruby/2.4.0/x86_64-linux/openssl.so: warning: already initialized constant OpenSSL::ASN1::BIT_STRING
/home/basil/.rbenv/versions/2.4.0/lib/ruby/2.4.0/x86_64-linux/openssl.so: warning: already initialized constant OpenSSL::ASN1::OCTET_STRING
/home/basil/.rbenv/versions/2.4.0/lib/ruby/2.4.0/x86_64-linux/openssl.so: warning: already initialized constant OpenSSL::ASN1::NULL
/home/basil/.rbenv/versions/2.4.0/lib/ruby/2.4.0/x86_64-linux/openssl.so: warning: already initialized constant OpenSSL::ASN1::OBJECT
/home/basil/.rbenv/versions/2.4.0/lib/ruby/2.4.0/x86_64-linux/openssl.so: warning: already initialized constant OpenSSL::ASN1::OBJECT_DESCRIPTOR
/home/basil/.rbenv/versions/2.4.0/lib/ruby/2.4.0/x86_64-linux/openssl.so: warning: already initialized constant OpenSSL::ASN1::EXTERNAL
/home/basil/.rbenv/versions/2.4.0/lib/ruby/2.4.0/x86_64-linux/openssl.so: warning: already initialized constant OpenSSL::ASN1::REAL
/home/basil/.rbenv/versions/2.4.0/lib/ruby/2.4.0/x86_64-linux/openssl.so: warning: already initialized constant OpenSSL::ASN1::ENUMERATED
/home/basil/.rbenv/versions/2.4.0/lib/ruby/2.4.0/x86_64-linux/openssl.so: warning: already initialized constant OpenSSL::ASN1::EMBEDDED_PDV
/home/basil/.rbenv/versions/2.4.0/lib/ruby/2.4.0/x86_64-linux/openssl.so: warning: already initialized constant OpenSSL::ASN1::UTF8STRING
/home/basil/.rbenv/versions/2.4.0/lib/ruby/2.4.0/x86_64-linux/openssl.so: warning: already initialized constant OpenSSL::ASN1::RELATIVE_OID
/home/basil/.rbenv/versions/2.4.0/lib/ruby/2.4.0/x86_64-linux/openssl.so: warning: already initialized constant OpenSSL::ASN1::SEQUENCE
/home/basil/.rbenv/versions/2.4.0/lib/ruby/2.4.0/x86_64-linux/openssl.so: warning: already initialized constant OpenSSL::ASN1::SET
/home/basil/.rbenv/versions/2.4.0/lib/ruby/2.4.0/x86_64-linux/openssl.so: warning: already initialized constant OpenSSL::ASN1::NUMERICSTRING
/home/basil/.rbenv/versions/2.4.0/lib/ruby/2.4.0/x86_64-linux/openssl.so: warning: already initialized constant OpenSSL::ASN1::PRINTABLESTRING
/home/basil/.rbenv/versions/2.4.0/lib/ruby/2.4.0/x86_64-linux/openssl.so: warning: already initialized constant OpenSSL::ASN1::T61STRING
/home/basil/.rbenv/versions/2.4.0/lib/ruby/2.4.0/x86_64-linux/openssl.so: warning: already initialized constant OpenSSL::ASN1::VIDEOTEXSTRING
/home/basil/.rbenv/versions/2.4.0/lib/ruby/2.4.0/x86_64-linux/openssl.so: warning: already initialized constant OpenSSL::ASN1::IA5STRING
/home/basil/.rbenv/versions/2.4.0/lib/ruby/2.4.0/x86_64-linux/openssl.so: warning: already initialized constant OpenSSL::ASN1::UTCTIME
/home/basil/.rbenv/versions/2.4.0/lib/ruby/2.4.0/x86_64-linux/openssl.so: warning: already initialized constant OpenSSL::ASN1::GENERALIZEDTIME
/home/basil/.rbenv/versions/2.4.0/lib/ruby/2.4.0/x86_64-linux/openssl.so: warning: already initialized constant OpenSSL::ASN1::GRAPHICSTRING
/home/basil/.rbenv/versions/2.4.0/lib/ruby/2.4.0/x86_64-linux/openssl.so: warning: already initialized constant OpenSSL::ASN1::ISO64STRING
/home/basil/.rbenv/versions/2.4.0/lib/ruby/2.4.0/x86_64-linux/openssl.so: warning: already initialized constant OpenSSL::ASN1::GENERALSTRING
/home/basil/.rbenv/versions/2.4.0/lib/ruby/2.4.0/x86_64-linux/openssl.so: warning: already initialized constant OpenSSL::ASN1::UNIVERSALSTRING
/home/basil/.rbenv/versions/2.4.0/lib/ruby/2.4.0/x86_64-linux/openssl.so: warning: already initialized constant OpenSSL::ASN1::CHARACTER_STRING
/home/basil/.rbenv/versions/2.4.0/lib/ruby/2.4.0/x86_64-linux/openssl.so: warning: already initialized constant OpenSSL::ASN1::BMPSTRING
/home/basil/.rbenv/versions/2.4.0/lib/ruby/2.4.0/openssl/pkey.rb:8: warning: already initialized constant OpenSSL::PKey::DH::DEFAULT_1024
/home/basil/.rvm/gems/ruby-2.2.1/gems/openssl-2.0.3/lib/openssl/pkey.rb:8: warning: previous definition of DEFAULT_1024 was here
/home/basil/.rbenv/versions/2.4.0/lib/ruby/2.4.0/openssl/pkey.rb:17: warning: already initialized constant OpenSSL::PKey::DH::DEFAULT_2048
/home/basil/.rvm/gems/ruby-2.2.1/gems/openssl-2.0.3/lib/openssl/pkey.rb:17: warning: previous definition of DEFAULT_2048 was here
/home/basil/.rbenv/versions/2.4.0/lib/ruby/2.4.0/openssl/pkey.rb:30: warning: already initialized constant OpenSSL::PKey::DEFAULT_TMP_DH_CALLBACK
/home/basil/.rvm/gems/ruby-2.2.1/gems/openssl-2.0.3/lib/openssl/pkey.rb:30: warning: previous definition of DEFAULT_TMP_DH_CALLBACK was here
/home/basil/.rbenv/versions/2.4.0/lib/ruby/2.4.0/openssl/cipher.rb:18: warning: constant OpenSSL::Cipher::Cipher is deprecated
/home/basil/.rbenv/versions/2.4.0/lib/ruby/2.4.0/openssl/cipher.rb:24: warning: already initialized constant OpenSSL::Cipher::AES
/home/basil/.rvm/gems/ruby-2.2.1/gems/openssl-2.0.3/lib/openssl/cipher.rb:24: warning: previous definition of AES was here
/home/basil/.rbenv/versions/2.4.0/lib/ruby/2.4.0/openssl/cipher.rb:18: warning: constant OpenSSL::Cipher::Cipher is deprecated
/home/basil/.rbenv/versions/2.4.0/lib/ruby/2.4.0/openssl/cipher.rb:24: warning: already initialized constant OpenSSL::Cipher::CAST5
/home/basil/.rvm/gems/ruby-2.2.1/gems/openssl-2.0.3/lib/openssl/cipher.rb:24: warning: previous definition of CAST5 was here
/home/basil/.rbenv/versions/2.4.0/lib/ruby/2.4.0/openssl/cipher.rb:18: warning: constant OpenSSL::Cipher::Cipher is deprecated
/home/basil/.rbenv/versions/2.4.0/lib/ruby/2.4.0/openssl/cipher.rb:24: warning: already initialized constant OpenSSL::Cipher::BF
/home/basil/.rvm/gems/ruby-2.2.1/gems/openssl-2.0.3/lib/openssl/cipher.rb:24: warning: previous definition of BF was here
/home/basil/.rbenv/versions/2.4.0/lib/ruby/2.4.0/openssl/cipher.rb:18: warning: constant OpenSSL::Cipher::Cipher is deprecated
/home/basil/.rbenv/versions/2.4.0/lib/ruby/2.4.0/openssl/cipher.rb:24: warning: already initialized constant OpenSSL::Cipher::DES
/home/basil/.rvm/gems/ruby-2.2.1/gems/openssl-2.0.3/lib/openssl/cipher.rb:24: warning: previous definition of DES was here
/home/basil/.rbenv/versions/2.4.0/lib/ruby/2.4.0/openssl/cipher.rb:18: warning: constant OpenSSL::Cipher::Cipher is deprecated
/home/basil/.rbenv/versions/2.4.0/lib/ruby/2.4.0/openssl/cipher.rb:24: warning: already initialized constant OpenSSL::Cipher::IDEA
/home/basil/.rvm/gems/ruby-2.2.1/gems/openssl-2.0.3/lib/openssl/cipher.rb:24: warning: previous definition of IDEA was here
/home/basil/.rbenv/versions/2.4.0/lib/ruby/2.4.0/openssl/cipher.rb:18: warning: constant OpenSSL::Cipher::Cipher is deprecated
/home/basil/.rbenv/versions/2.4.0/lib/ruby/2.4.0/openssl/cipher.rb:24: warning: already initialized constant OpenSSL::Cipher::RC2
/home/basil/.rvm/gems/ruby-2.2.1/gems/openssl-2.0.3/lib/openssl/cipher.rb:24: warning: previous definition of RC2 was here
/home/basil/.rbenv/versions/2.4.0/lib/ruby/2.4.0/openssl/cipher.rb:18: warning: constant OpenSSL::Cipher::Cipher is deprecated
/home/basil/.rbenv/versions/2.4.0/lib/ruby/2.4.0/openssl/cipher.rb:24: warning: already initialized constant OpenSSL::Cipher::RC4
/home/basil/.rvm/gems/ruby-2.2.1/gems/openssl-2.0.3/lib/openssl/cipher.rb:24: warning: previous definition of RC4 was here
/home/basil/.rbenv/versions/2.4.0/lib/ruby/2.4.0/openssl/cipher.rb:18: warning: constant OpenSSL::Cipher::Cipher is deprecated
/home/basil/.rbenv/versions/2.4.0/lib/ruby/2.4.0/openssl/cipher.rb:24: warning: already initialized constant OpenSSL::Cipher::RC5
/home/basil/.rvm/gems/ruby-2.2.1/gems/openssl-2.0.3/lib/openssl/cipher.rb:24: warning: previous definition of RC5 was here
/home/basil/.rbenv/versions/2.4.0/lib/ruby/2.4.0/openssl/cipher.rb:28: warning: constant OpenSSL::Cipher::Cipher is deprecated
/home/basil/.rbenv/versions/2.4.0/lib/ruby/2.4.0/openssl/cipher.rb:33: warning: already initialized constant OpenSSL::Cipher::AES128
/home/basil/.rvm/gems/ruby-2.2.1/gems/openssl-2.0.3/lib/openssl/cipher.rb:33: warning: previous definition of AES128 was here
/home/basil/.rbenv/versions/2.4.0/lib/ruby/2.4.0/openssl/cipher.rb:28: warning: constant OpenSSL::Cipher::Cipher is deprecated
/home/basil/.rbenv/versions/2.4.0/lib/ruby/2.4.0/openssl/cipher.rb:33: warning: already initialized constant OpenSSL::Cipher::AES192
/home/basil/.rvm/gems/ruby-2.2.1/gems/openssl-2.0.3/lib/openssl/cipher.rb:33: warning: previous definition of AES192 was here
/home/basil/.rbenv/versions/2.4.0/lib/ruby/2.4.0/openssl/cipher.rb:28: warning: constant OpenSSL::Cipher::Cipher is deprecated
/home/basil/.rbenv/versions/2.4.0/lib/ruby/2.4.0/openssl/cipher.rb:33: warning: already initialized constant OpenSSL::Cipher::AES256
/home/basil/.rvm/gems/ruby-2.2.1/gems/openssl-2.0.3/lib/openssl/cipher.rb:33: warning: previous definition of AES256 was here
/home/basil/.rbenv/versions/2.4.0/lib/ruby/2.4.0/openssl/cipher.rb:64: warning: constant OpenSSL::Cipher::Cipher is deprecated
/home/basil/.rbenv/versions/2.4.0/lib/ruby/2.4.0/openssl/cipher.rb:64: warning: constant OpenSSL::Cipher::Cipher is deprecated
/home/basil/.rbenv/versions/2.4.0/lib/ruby/2.4.0/openssl/cipher.rb:64:in `<class:Cipher>': superclass mismatch for class Cipher (TypeError)
from /home/basil/.rbenv/versions/2.4.0/lib/ruby/2.4.0/openssl/cipher.rb:16:in `<module:OpenSSL>'
from /home/basil/.rbenv/versions/2.4.0/lib/ruby/2.4.0/openssl/cipher.rb:15:in `<top (required)>'
from /home/basil/.rbenv/versions/2.4.0/lib/ruby/2.4.0/openssl.rb:17:in `require'
from /home/basil/.rbenv/versions/2.4.0/lib/ruby/2.4.0/openssl.rb:17:in `<top (required)>'
from /home/basil/.rvm/gems/ruby-2.2.1/gems/activesupport-5.0.1/lib/active_support/key_generator.rb:2:in `require'
from /home/basil/.rvm/gems/ruby-2.2.1/gems/activesupport-5.0.1/lib/active_support/key_generator.rb:2:in `<top (required)>'
from /home/basil/.rvm/gems/ruby-2.2.1/gems/railties-5.0.1/lib/rails/application.rb:4:in `require'
from /home/basil/.rvm/gems/ruby-2.2.1/gems/railties-5.0.1/lib/rails/application.rb:4:in `<top (required)>'
from /home/basil/.rvm/gems/ruby-2.2.1/gems/railties-5.0.1/lib/rails.rb:11:in `require'
from /home/basil/.rvm/gems/ruby-2.2.1/gems/railties-5.0.1/lib/rails.rb:11:in `<top (required)>'
from /home/basil/.rvm/gems/ruby-2.2.1/gems/railties-5.0.1/lib/rails/commands/server.rb:4:in `require'
from /home/basil/.rvm/gems/ruby-2.2.1/gems/railties-5.0.1/lib/rails/commands/server.rb:4:in `<top (required)>'
from /home/basil/.rvm/gems/ruby-2.2.1/gems/railties-5.0.1/lib/rails/commands/commands_tasks.rb:138:in `require'
from /home/basil/.rvm/gems/ruby-2.2.1/gems/railties-5.0.1/lib/rails/commands/commands_tasks.rb:138:in `require_command!'
from /home/basil/.rvm/gems/ruby-2.2.1/gems/railties-5.0.1/lib/rails/commands/commands_tasks.rb:83:in `server'
from /home/basil/.rvm/gems/ruby-2.2.1/gems/railties-5.0.1/lib/rails/commands/commands_tasks.rb:49:in `run_command!'
from /home/basil/.rvm/gems/ruby-2.2.1/gems/railties-5.0.1/lib/rails/commands.rb:18:in `<top (required)>'
from /home/basil/Desktop/b/myapp/bin/rails:9:in `require'
from /home/basil/Desktop/b/myapp/bin/rails:9:in `<top (required)>'
from /home/basil/.rvm/gems/ruby-2.2.1/gems/spring-2.0.1/lib/spring/client/rails.rb:28:in `load'
from /home/basil/.rvm/gems/ruby-2.2.1/gems/spring-2.0.1/lib/spring/client/rails.rb:28:in `call'
from /home/basil/.rvm/gems/ruby-2.2.1/gems/spring-2.0.1/lib/spring/client/command.rb:7:in `call'
from /home/basil/.rvm/gems/ruby-2.2.1/gems/spring-2.0.1/lib/spring/client.rb:30:in `run'
from /home/basil/.rvm/gems/ruby-2.2.1/gems/spring-2.0.1/bin/spring:49:in `<top (required)>'
from /home/basil/.rvm/gems/ruby-2.2.1/gems/spring-2.0.1/lib/spring/binstub.rb:31:in `load'
from /home/basil/.rvm/gems/ruby-2.2.1/gems/spring-2.0.1/lib/spring/binstub.rb:31:in `<top (required)>'
from /home/basil/Desktop/b/myapp/bin/spring:15:in `require'
from /home/basil/Desktop/b/myapp/bin/spring:15:in `<top (required)>'
from bin/rails:3:in `load'
from bin/rails:3:in `<main>'
项目将显示此错误,甚至不启动!!
答案 0 :(得分:2)
您有两个版本的openssl(2.0.2和2.0.3)同时加载。尝试恢复默认值2.0.2:
@XmlElementRef
答案 1 :(得分:1)
我认为您的RVM使用的是ruby-2.2.1,您需要安装2.4.0
rvm install ruby-2.4.0
rvm default ruby-2.4.0
您可以使用此命令找到本地计算机中安装的所有ruby版本
rvm list
我建议你安装它并再次重试,我看到你的rbenv正在使用2.4.0而你的rvm正在使用2.2.1。