2017-02-19 157 views
1

我想这个指南在轨道上安装Ruby:https://gorails.com/setup/osx/10.12-sierraRuby on Rails的服务器命令MAC

它的工作原理是正确的,但最终,当我尝试命令“轨服务器”,以下错误显示出来我无法运行我的应用程序。

/Users/lechucico/.rbenv/versions/2.4.0/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::X509::V_ERR_CERT_REVOKED 
/Users/lechucico/.rbenv/versions/2.4.0/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::X509::V_ERR_INVALID_CA 
/Users/lechucico/.rbenv/versions/2.4.0/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::X509::V_ERR_PATH_LENGTH_EXCEEDED 
/Users/lechucico/.rbenv/versions/2.4.0/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::X509::V_ERR_INVALID_PURPOSE 
/Users/lechucico/.rbenv/versions/2.4.0/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::X509::V_ERR_CERT_UNTRUSTED 
/Users/lechucico/.rbenv/versions/2.4.0/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::X509::V_ERR_CERT_REJECTED 
/Users/lechucico/.rbenv/versions/2.4.0/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::X509::V_ERR_SUBJECT_ISSUER_MISMATCH 
/Users/lechucico/.rbenv/versions/2.4.0/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::X509::V_ERR_AKID_SKID_MISMATCH 
/Users/lechucico/.rbenv/versions/2.4.0/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::X509::V_ERR_AKID_ISSUER_SERIAL_MISMATCH 
/Users/lechucico/.rbenv/versions/2.4.0/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::X509::V_ERR_KEYUSAGE_NO_CERTSIGN 
/Users/lechucico/.rbenv/versions/2.4.0/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::X509::V_ERR_APPLICATION_VERIFICATION 
/Users/lechucico/.rbenv/versions/2.4.0/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::X509::V_FLAG_CRL_CHECK 
/Users/lechucico/.rbenv/versions/2.4.0/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::X509::V_FLAG_CRL_CHECK_ALL 
/Users/lechucico/.rbenv/versions/2.4.0/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::X509::V_FLAG_IGNORE_CRITICAL 
/Users/lechucico/.rbenv/versions/2.4.0/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::X509::V_FLAG_X509_STRICT 
/Users/lechucico/.rbenv/versions/2.4.0/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::X509::V_FLAG_ALLOW_PROXY_CERTS 
/Users/lechucico/.rbenv/versions/2.4.0/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::X509::V_FLAG_POLICY_CHECK 
/Users/lechucico/.rbenv/versions/2.4.0/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::X509::V_FLAG_EXPLICIT_POLICY 
/Users/lechucico/.rbenv/versions/2.4.0/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::X509::V_FLAG_INHIBIT_ANY 
/Users/lechucico/.rbenv/versions/2.4.0/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::X509::V_FLAG_INHIBIT_MAP 
/Users/lechucico/.rbenv/versions/2.4.0/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::X509::V_FLAG_NOTIFY_POLICY 
/Users/lechucico/.rbenv/versions/2.4.0/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::X509::V_FLAG_EXTENDED_CRL_SUPPORT 
/Users/lechucico/.rbenv/versions/2.4.0/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::X509::V_FLAG_USE_DELTAS 
/Users/lechucico/.rbenv/versions/2.4.0/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::X509::V_FLAG_CHECK_SS_SIGNATURE 
/Users/lechucico/.rbenv/versions/2.4.0/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::X509::V_FLAG_TRUSTED_FIRST 
/Users/lechucico/.rbenv/versions/2.4.0/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::X509::V_FLAG_NO_ALT_CHAINS 
/Users/lechucico/.rbenv/versions/2.4.0/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::X509::PURPOSE_SSL_CLIENT 
/Users/lechucico/.rbenv/versions/2.4.0/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::X509::PURPOSE_SSL_SERVER 
/Users/lechucico/.rbenv/versions/2.4.0/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::X509::PURPOSE_NS_SSL_SERVER 
/Users/lechucico/.rbenv/versions/2.4.0/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::X509::PURPOSE_SMIME_SIGN 
/Users/lechucico/.rbenv/versions/2.4.0/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::X509::PURPOSE_SMIME_ENCRYPT 
/Users/lechucico/.rbenv/versions/2.4.0/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::X509::PURPOSE_CRL_SIGN 
/Users/lechucico/.rbenv/versions/2.4.0/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::X509::PURPOSE_ANY 
/Users/lechucico/.rbenv/versions/2.4.0/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::X509::PURPOSE_OCSP_HELPER 
/Users/lechucico/.rbenv/versions/2.4.0/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::X509::PURPOSE_TIMESTAMP_SIGN 
/Users/lechucico/.rbenv/versions/2.4.0/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::X509::TRUST_COMPAT 
/Users/lechucico/.rbenv/versions/2.4.0/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::X509::TRUST_SSL_CLIENT 
/Users/lechucico/.rbenv/versions/2.4.0/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::X509::TRUST_SSL_SERVER 
/Users/lechucico/.rbenv/versions/2.4.0/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::X509::TRUST_EMAIL 
/Users/lechucico/.rbenv/versions/2.4.0/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::X509::TRUST_OBJECT_SIGN 
/Users/lechucico/.rbenv/versions/2.4.0/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::X509::TRUST_OCSP_SIGN 
/Users/lechucico/.rbenv/versions/2.4.0/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::X509::TRUST_OCSP_REQUEST 
/Users/lechucico/.rbenv/versions/2.4.0/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::X509::TRUST_TSA 
/Users/lechucico/.rbenv/versions/2.4.0/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::X509::DEFAULT_CERT_AREA 
/Users/lechucico/.rbenv/versions/2.4.0/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::X509::DEFAULT_CERT_DIR 
/Users/lechucico/.rbenv/versions/2.4.0/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::X509::DEFAULT_CERT_FILE 
/Users/lechucico/.rbenv/versions/2.4.0/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::X509::DEFAULT_CERT_DIR_ENV 
/Users/lechucico/.rbenv/versions/2.4.0/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::X509::DEFAULT_CERT_FILE_ENV 
/Users/lechucico/.rbenv/versions/2.4.0/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::X509::DEFAULT_PRIVATE_DIR 
/Users/lechucico/.rbenv/versions/2.4.0/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::OCSP::RESPONSE_STATUS_INTERNALERROR 
/Users/lechucico/.rbenv/versions/2.4.0/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::OCSP::RESPONSE_STATUS_MALFORMEDREQUEST 
/Users/lechucico/.rbenv/versions/2.4.0/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::OCSP::REVOKED_STATUS_NOSTATUS 
/Users/lechucico/.rbenv/versions/2.4.0/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::OCSP::RESPONSE_STATUS_SIGREQUIRED 
/Users/lechucico/.rbenv/versions/2.4.0/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::OCSP::RESPONSE_STATUS_SUCCESSFUL 
/Users/lechucico/.rbenv/versions/2.4.0/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::OCSP::RESPONSE_STATUS_TRYLATER 
/Users/lechucico/.rbenv/versions/2.4.0/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::OCSP::REVOKED_STATUS_AFFILIATIONCHANGED 
/Users/lechucico/.rbenv/versions/2.4.0/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::OCSP::REVOKED_STATUS_CACOMPROMISE 
/Users/lechucico/.rbenv/versions/2.4.0/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::OCSP::REVOKED_STATUS_CERTIFICATEHOLD 
/Users/lechucico/.rbenv/versions/2.4.0/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::OCSP::REVOKED_STATUS_CESSATIONOFOPERATION 
/Users/lechucico/.rbenv/versions/2.4.0/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::OCSP::REVOKED_STATUS_KEYCOMPROMISE 
/Users/lechucico/.rbenv/versions/2.4.0/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::OCSP::REVOKED_STATUS_REMOVEFROMCRL 
/Users/lechucico/.rbenv/versions/2.4.0/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::OCSP::REVOKED_STATUS_SUPERSEDED 
/Users/lechucico/.rbenv/versions/2.4.0/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::OCSP::RESPONSE_STATUS_UNAUTHORIZED 
/Users/lechucico/.rbenv/versions/2.4.0/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::OCSP::REVOKED_STATUS_UNSPECIFIED 
/Users/lechucico/.rbenv/versions/2.4.0/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::OCSP::NOCERTS 
/Users/lechucico/.rbenv/versions/2.4.0/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::OCSP::NOINTERN 
/Users/lechucico/.rbenv/versions/2.4.0/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::OCSP::NOSIGS 
/Users/lechucico/.rbenv/versions/2.4.0/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::OCSP::NOCHAIN 
/Users/lechucico/.rbenv/versions/2.4.0/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::OCSP::NOVERIFY 
/Users/lechucico/.rbenv/versions/2.4.0/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::OCSP::NOEXPLICIT 
/Users/lechucico/.rbenv/versions/2.4.0/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::OCSP::NOCASIGN 
/Users/lechucico/.rbenv/versions/2.4.0/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::OCSP::NODELEGATED 
/Users/lechucico/.rbenv/versions/2.4.0/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::OCSP::NOCHECKS 
/Users/lechucico/.rbenv/versions/2.4.0/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::OCSP::TRUSTOTHER 
/Users/lechucico/.rbenv/versions/2.4.0/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::OCSP::RESPID_KEY 
/Users/lechucico/.rbenv/versions/2.4.0/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::OCSP::NOTIME 
/Users/lechucico/.rbenv/versions/2.4.0/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::OCSP::V_CERTSTATUS_GOOD 
/Users/lechucico/.rbenv/versions/2.4.0/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::OCSP::V_CERTSTATUS_REVOKED 
/Users/lechucico/.rbenv/versions/2.4.0/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::OCSP::V_CERTSTATUS_UNKNOWN 
/Users/lechucico/.rbenv/versions/2.4.0/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::OCSP::V_RESPID_NAME 
/Users/lechucico/.rbenv/versions/2.4.0/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::OCSP::V_RESPID_KEY 
/Users/lechucico/.rbenv/versions/2.4.0/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::Engine::METHOD_RSA 
/Users/lechucico/.rbenv/versions/2.4.0/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::Engine::METHOD_DSA 
/Users/lechucico/.rbenv/versions/2.4.0/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::Engine::METHOD_DH 
/Users/lechucico/.rbenv/versions/2.4.0/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::Engine::METHOD_RAND 
/Users/lechucico/.rbenv/versions/2.4.0/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::Engine::METHOD_CIPHERS 
/Users/lechucico/.rbenv/versions/2.4.0/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::Engine::METHOD_DIGESTS 
/Users/lechucico/.rbenv/versions/2.4.0/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::Engine::METHOD_ALL 
/Users/lechucico/.rbenv/versions/2.4.0/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::Engine::METHOD_NONE 
/Users/lechucico/.rbenv/versions/2.4.0/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::ASN1::UNIVERSAL_TAG_NAME 
/Users/lechucico/.rbenv/versions/2.4.0/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::ASN1::EOC 
/Users/lechucico/.rbenv/versions/2.4.0/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::ASN1::BOOLEAN 
/Users/lechucico/.rbenv/versions/2.4.0/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::ASN1::INTEGER 
/Users/lechucico/.rbenv/versions/2.4.0/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::ASN1::BIT_STRING 
/Users/lechucico/.rbenv/versions/2.4.0/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::ASN1::OCTET_STRING 
/Users/lechucico/.rbenv/versions/2.4.0/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::ASN1::NULL 
/Users/lechucico/.rbenv/versions/2.4.0/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::ASN1::OBJECT 
/Users/lechucico/.rbenv/versions/2.4.0/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::ASN1::OBJECT_DESCRIPTOR 
/Users/lechucico/.rbenv/versions/2.4.0/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::ASN1::EXTERNAL 
/Users/lechucico/.rbenv/versions/2.4.0/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::ASN1::REAL 
/Users/lechucico/.rbenv/versions/2.4.0/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::ASN1::ENUMERATED 
/Users/lechucico/.rbenv/versions/2.4.0/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::ASN1::EMBEDDED_PDV 
/Users/lechucico/.rbenv/versions/2.4.0/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::ASN1::UTF8STRING 
/Users/lechucico/.rbenv/versions/2.4.0/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::ASN1::RELATIVE_OID 
/Users/lechucico/.rbenv/versions/2.4.0/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::ASN1::SEQUENCE 
/Users/lechucico/.rbenv/versions/2.4.0/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::ASN1::SET 
/Users/lechucico/.rbenv/versions/2.4.0/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::ASN1::NUMERICSTRING 
/Users/lechucico/.rbenv/versions/2.4.0/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::ASN1::PRINTABLESTRING 
/Users/lechucico/.rbenv/versions/2.4.0/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::ASN1::T61STRING 
/Users/lechucico/.rbenv/versions/2.4.0/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::ASN1::VIDEOTEXSTRING 
/Users/lechucico/.rbenv/versions/2.4.0/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::ASN1::IA5STRING 
/Users/lechucico/.rbenv/versions/2.4.0/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::ASN1::UTCTIME 
/Users/lechucico/.rbenv/versions/2.4.0/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::ASN1::GENERALIZEDTIME 
/Users/lechucico/.rbenv/versions/2.4.0/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::ASN1::GRAPHICSTRING 
/Users/lechucico/.rbenv/versions/2.4.0/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::ASN1::ISO64STRING 
/Users/lechucico/.rbenv/versions/2.4.0/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::ASN1::GENERALSTRING 
/Users/lechucico/.rbenv/versions/2.4.0/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::ASN1::UNIVERSALSTRING 
/Users/lechucico/.rbenv/versions/2.4.0/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::ASN1::CHARACTER_STRING 
/Users/lechucico/.rbenv/versions/2.4.0/lib/ruby/2.4.0/x86_64-darwin16/openssl.bundle: warning: already initialized constant OpenSSL::ASN1::BMPSTRING 
/Users/lechucico/.rbenv/versions/2.4.0/lib/ruby/2.4.0/openssl/pkey.rb:8: warning: already initialized constant OpenSSL::PKey::DH::DEFAULT_1024 
/Users/lechucico/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/openssl-2.0.3/lib/openssl/pkey.rb:8: warning: previous definition of DEFAULT_1024 was here 
/Users/lechucico/.rbenv/versions/2.4.0/lib/ruby/2.4.0/openssl/pkey.rb:17: warning: already initialized constant OpenSSL::PKey::DH::DEFAULT_2048 
/Users/lechucico/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/openssl-2.0.3/lib/openssl/pkey.rb:17: warning: previous definition of DEFAULT_2048 was here 
/Users/lechucico/.rbenv/versions/2.4.0/lib/ruby/2.4.0/openssl/pkey.rb:30: warning: already initialized constant OpenSSL::PKey::DEFAULT_TMP_DH_CALLBACK 
/Users/lechucico/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/openssl-2.0.3/lib/openssl/pkey.rb:30: warning: previous definition of DEFAULT_TMP_DH_CALLBACK was here 
/Users/lechucico/.rbenv/versions/2.4.0/lib/ruby/2.4.0/openssl/cipher.rb:18: warning: constant OpenSSL::Cipher::Cipher is deprecated 
/Users/lechucico/.rbenv/versions/2.4.0/lib/ruby/2.4.0/openssl/cipher.rb:24: warning: already initialized constant OpenSSL::Cipher::AES 
/Users/lechucico/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/openssl-2.0.3/lib/openssl/cipher.rb:24: warning: previous definition of AES was here 
/Users/lechucico/.rbenv/versions/2.4.0/lib/ruby/2.4.0/openssl/cipher.rb:18: warning: constant OpenSSL::Cipher::Cipher is deprecated 
/Users/lechucico/.rbenv/versions/2.4.0/lib/ruby/2.4.0/openssl/cipher.rb:24: warning: already initialized constant OpenSSL::Cipher::CAST5 
/Users/lechucico/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/openssl-2.0.3/lib/openssl/cipher.rb:24: warning: previous definition of CAST5 was here 
/Users/lechucico/.rbenv/versions/2.4.0/lib/ruby/2.4.0/openssl/cipher.rb:18: warning: constant OpenSSL::Cipher::Cipher is deprecated 
/Users/lechucico/.rbenv/versions/2.4.0/lib/ruby/2.4.0/openssl/cipher.rb:24: warning: already initialized constant OpenSSL::Cipher::BF 
/Users/lechucico/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/openssl-2.0.3/lib/openssl/cipher.rb:24: warning: previous definition of BF was here 
/Users/lechucico/.rbenv/versions/2.4.0/lib/ruby/2.4.0/openssl/cipher.rb:18: warning: constant OpenSSL::Cipher::Cipher is deprecated 
/Users/lechucico/.rbenv/versions/2.4.0/lib/ruby/2.4.0/openssl/cipher.rb:24: warning: already initialized constant OpenSSL::Cipher::DES 
/Users/lechucico/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/openssl-2.0.3/lib/openssl/cipher.rb:24: warning: previous definition of DES was here 
/Users/lechucico/.rbenv/versions/2.4.0/lib/ruby/2.4.0/openssl/cipher.rb:18: warning: constant OpenSSL::Cipher::Cipher is deprecated 
/Users/lechucico/.rbenv/versions/2.4.0/lib/ruby/2.4.0/openssl/cipher.rb:24: warning: already initialized constant OpenSSL::Cipher::IDEA 
/Users/lechucico/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/openssl-2.0.3/lib/openssl/cipher.rb:24: warning: previous definition of IDEA was here 
/Users/lechucico/.rbenv/versions/2.4.0/lib/ruby/2.4.0/openssl/cipher.rb:18: warning: constant OpenSSL::Cipher::Cipher is deprecated 
/Users/lechucico/.rbenv/versions/2.4.0/lib/ruby/2.4.0/openssl/cipher.rb:24: warning: already initialized constant OpenSSL::Cipher::RC2 
/Users/lechucico/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/openssl-2.0.3/lib/openssl/cipher.rb:24: warning: previous definition of RC2 was here 
/Users/lechucico/.rbenv/versions/2.4.0/lib/ruby/2.4.0/openssl/cipher.rb:18: warning: constant OpenSSL::Cipher::Cipher is deprecated 
/Users/lechucico/.rbenv/versions/2.4.0/lib/ruby/2.4.0/openssl/cipher.rb:24: warning: already initialized constant OpenSSL::Cipher::RC4 
/Users/lechucico/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/openssl-2.0.3/lib/openssl/cipher.rb:24: warning: previous definition of RC4 was here 
/Users/lechucico/.rbenv/versions/2.4.0/lib/ruby/2.4.0/openssl/cipher.rb:18: warning: constant OpenSSL::Cipher::Cipher is deprecated 
/Users/lechucico/.rbenv/versions/2.4.0/lib/ruby/2.4.0/openssl/cipher.rb:24: warning: already initialized constant OpenSSL::Cipher::RC5 
/Users/lechucico/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/openssl-2.0.3/lib/openssl/cipher.rb:24: warning: previous definition of RC5 was here 
/Users/lechucico/.rbenv/versions/2.4.0/lib/ruby/2.4.0/openssl/cipher.rb:28: warning: constant OpenSSL::Cipher::Cipher is deprecated 
/Users/lechucico/.rbenv/versions/2.4.0/lib/ruby/2.4.0/openssl/cipher.rb:33: warning: already initialized constant OpenSSL::Cipher::AES128 
/Users/lechucico/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/openssl-2.0.3/lib/openssl/cipher.rb:33: warning: previous definition of AES128 was here 
/Users/lechucico/.rbenv/versions/2.4.0/lib/ruby/2.4.0/openssl/cipher.rb:28: warning: constant OpenSSL::Cipher::Cipher is deprecated 
/Users/lechucico/.rbenv/versions/2.4.0/lib/ruby/2.4.0/openssl/cipher.rb:33: warning: already initialized constant OpenSSL::Cipher::AES192 
/Users/lechucico/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/openssl-2.0.3/lib/openssl/cipher.rb:33: warning: previous definition of AES192 was here 
/Users/lechucico/.rbenv/versions/2.4.0/lib/ruby/2.4.0/openssl/cipher.rb:28: warning: constant OpenSSL::Cipher::Cipher is deprecated 
/Users/lechucico/.rbenv/versions/2.4.0/lib/ruby/2.4.0/openssl/cipher.rb:33: warning: already initialized constant OpenSSL::Cipher::AES256 
/Users/lechucico/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/openssl-2.0.3/lib/openssl/cipher.rb:33: warning: previous definition of AES256 was here 
/Users/lechucico/.rbenv/versions/2.4.0/lib/ruby/2.4.0/openssl/cipher.rb:64: warning: constant OpenSSL::Cipher::Cipher is deprecated 
/Users/lechucico/.rbenv/versions/2.4.0/lib/ruby/2.4.0/openssl/cipher.rb:64: warning: constant OpenSSL::Cipher::Cipher is deprecated 
/Users/lechucico/.rbenv/versions/2.4.0/lib/ruby/2.4.0/openssl/cipher.rb:64:in `<class:Cipher>': superclass mismatch for class Cipher (TypeError) 
    from /Users/lechucico/.rbenv/versions/2.4.0/lib/ruby/2.4.0/openssl/cipher.rb:16:in `<module:OpenSSL>' 
    from /Users/lechucico/.rbenv/versions/2.4.0/lib/ruby/2.4.0/openssl/cipher.rb:15:in `<top (required)>' 
    from /Users/lechucico/.rbenv/versions/2.4.0/lib/ruby/2.4.0/openssl.rb:17:in `require' 
    from /Users/lechucico/.rbenv/versions/2.4.0/lib/ruby/2.4.0/openssl.rb:17:in `<top (required)>' 
    from /Users/lechucico/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/activesupport-5.0.1/lib/active_support/key_generator.rb:2:in `require' 
    from /Users/lechucico/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/activesupport-5.0.1/lib/active_support/key_generator.rb:2:in `<top (required)>' 
    from /Users/lechucico/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/railties-5.0.1/lib/rails/application.rb:4:in `require' 
    from /Users/lechucico/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/railties-5.0.1/lib/rails/application.rb:4:in `<top (required)>' 
    from /Users/lechucico/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/railties-5.0.1/lib/rails.rb:11:in `require' 
    from /Users/lechucico/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/railties-5.0.1/lib/rails.rb:11:in `<top (required)>' 
    from /Users/lechucico/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/railties-5.0.1/lib/rails/commands/server.rb:4:in `require' 
    from /Users/lechucico/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/railties-5.0.1/lib/rails/commands/server.rb:4:in `<top (required)>' 
    from /Users/lechucico/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/railties-5.0.1/lib/rails/commands/commands_tasks.rb:138:in `require' 
    from /Users/lechucico/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/railties-5.0.1/lib/rails/commands/commands_tasks.rb:138:in `require_command!' 
    from /Users/lechucico/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/railties-5.0.1/lib/rails/commands/commands_tasks.rb:83:in `server' 
    from /Users/lechucico/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/railties-5.0.1/lib/rails/commands/commands_tasks.rb:49:in `run_command!' 
    from /Users/lechucico/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/railties-5.0.1/lib/rails/commands.rb:18:in `<top (required)>' 
    from /Users/lechucico/Documents/myapp/bin/rails:9:in `require' 
    from /Users/lechucico/Documents/myapp/bin/rails:9:in `<top (required)>' 
    from /Users/lechucico/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/spring-2.0.1/lib/spring/client/rails.rb:28:in `load' 
    from /Users/lechucico/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/spring-2.0.1/lib/spring/client/rails.rb:28:in `call' 
    from /Users/lechucico/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/spring-2.0.1/lib/spring/client/command.rb:7:in `call' 
    from /Users/lechucico/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/spring-2.0.1/lib/spring/client.rb:30:in `run' 
    from /Users/lechucico/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/spring-2.0.1/bin/spring:49:in `<top (required)>' 
    from /Users/lechucico/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/spring-2.0.1/lib/spring/binstub.rb:31:in `load' 
    from /Users/lechucico/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/spring-2.0.1/lib/spring/binstub.rb:31:in `<top (required)>' 
    from /Users/lechucico/.rbenv/versions/2.4.0/lib/ruby/2.4.0/rubygems/core_ext/kernel_require.rb:55:in `require' 
    from /Users/lechucico/.rbenv/versions/2.4.0/lib/ruby/2.4.0/rubygems/core_ext/kernel_require.rb:55:in `require' 
    from /Users/lechucico/Documents/myapp/bin/spring:15:in `<top (required)>' 
    from bin/rails:3:in `load' 
    from bin/rails:3:in `<main>' 

我能做什么?

感谢。

+0

从[这个问题](http://stackoverflow.com/questions/5512023/ruby-on-rails-3-superclass-mismatch-for-class),它看起来像你在你的类'Cipher'在你的代码(或宝石)两次。你有任何自定义代码或自定义宝石,指南没有告诉你包括在内?尝试运行'bundle install'或'bundle update'。 –

+0

我刚刚按照指导! – Lechucico

回答

1

我有同样的问题,我通过卸载特定版本的openssl来解决它。尝试

gem uninstall openssl -v 2.0.3 
+0

谢谢,解决了这个问题! – Lechucico

0

实际上可能有多个次要的原因,但显然这里的主要问题是您的代码不止一次地初始化openssl库。此问题也在openssl git repo上发布和讨论。

引用上面的链接文章,我会建议两个解决方案(主要是解决方法)。 1.降级您的OpenSSL版本,以大概2.0.2 2.试着在你的代码的顶部添加以下代码:

if defined?(RUBY_DESCRIPTION) && RUBY_DESCRIPTION.start_with?("ruby 2.4") 
    gem "openssl" 
end 

此错误的原因似乎是一个第三方的宝石的问题,而不是openssl本身。可能是,多个宝石使用不同版本的相同库,并且正在加载库两次。我建议你看看你正在使用的宝石和它们各自的依赖关系。