现在的位置: 首页 > 综合 > 正文

ssl的安装出错 安装依赖

2018年09月09日 ⁄ 综合 ⁄ 共 9684字 ⁄ 字号 评论关闭

menxu@debian:~/文档/ruby$ gem sources -a http://rubygems.org/
https://rubygems.org is recommended for security over http://rubygems.org/

Do you want to add this insecure source? [yn]  y
ERROR:  While executing gem ... (NameError)
    uninitialized constant Gem::RemoteFetcher::Zlib

menxu@debian:~/文档/ruby$ gem sources -a http://ruby.taobao.org/
ERROR:  While executing gem ... (NameError)
    uninitialized constant Gem::RemoteFetcher::Zlib

menxu@debian:~/文档/ruby$ gem update --system
ERROR:  Loading command: update (LoadError)
cannot load such file -- openssl
ERROR:  While executing gem ... (NoMethodError)
    undefined method `invoke_with_build_args' for nil:NilClass

menxu@debian:~/文档/ruby$ gem install rubygems
ERROR:  Loading command: install (LoadError)
cannot load such file -- openssl
ERROR:  While executing gem ... (NoMethodError)
    undefined method `invoke_with_build_args' for nil:NilClass

menxu@debian:~/文档/ruby$ cd ~/.rvm/
archives/     examples/     lib/          rubies/       usr/
bin/          gems/         log/          scripts/      wrappers/
config/       gemsets/      man/          src/          
contrib/      help/         patches/      tmp/          
environments/ hooks/        patchsets/    user/         
menxu@debian:~/文档/ruby$ cd ~/.rvm/src/
menxu@debian:~/.rvm/src$ ls
ruby-2.0.0-p0  rubygems-2.0.3  rvm  yaml-0.1.4

menxu@debian:~/.rvm/src$ cd ruby-2.0.0-p0/

menxu@debian:~/.rvm/src/ruby-2.0.0-p0$ cd ext/openssl/

menxu@debian:~/.rvm/src/ruby-2.0.0-p0/ext/openssl$ ruby extconf.rb 

checking for t_open() in -lnsl... no
checking for socket() in -lsocket... no
checking for assert.h... yes
checking for openssl/ssl.h... no

menxu@debian:~/.rvm/src/ruby-2.0.0-p0/ext/openssl$ sudo apt-get install openssl
[sudo] password for menxu: 
Sorry, try again.
[sudo] password for menxu: 
Sorry, try again.
[sudo] password for menxu: 
正在读取软件包列表... 完成
正在分析软件包的依赖关系树       
正在读取状态信息... 完成       
下列软件包将被升级:
  openssl
升级了 1 个软件包,新安装了 0 个软件包,要卸载 0 个软件包,有 12 个软件包未被升级。
需要下载 691 kB 的软件包。
解压缩后会消耗掉 1,024 B 的额外空间。
获取:1 http://mirrors.163.com/debian/ wheezy/main openssl i386 1.0.1e-2 [691 kB]
下载 691 kB,耗时 7秒 (89.6 kB/s)                                              
读取变更记录(changelogs)... 完成      
(正在读取数据库 ... 系统当前共安装有 148573 个文件和目录。)
正预备替换 openssl 1.0.1e-1 (使用 .../openssl_1.0.1e-2_i386.deb) ...
正在解压缩将用于更替的包文件 openssl ...
正在处理用于 man-db 的触发器...
正在设置 openssl (1.0.1e-2) ...
menxu@debian:~/.rvm/src/ruby-2.0.0-p0/ext/openssl$ sudo apt-get install lib
Display all 15395 possibilities? (y or n)
menxu@debian:~/.rvm/src/ruby-2.0.0-p0/ext/openssl$ sudo apt-get install libss
libss2                  libssh2-php             libssl-doc
libss2-dbg              libssh-4                libssl-ocaml
libss7-1                libssh-dbg              libssl-ocaml-dev
libss7-dbg              libssh-dev              libssreflect-coq
libss7-dev              libssh-doc              libssreflect-ocaml
libsscm3                libssl1.0.0             libssreflect-ocaml-dev
libsscm-dev             libssl1.0.0-dbg         libsss-sudo0
libssh2-1               libsslcommon2           libsss-sudo-dev
libssh2-1-dbg           libsslcommon2-dev       
libssh2-1-dev           libssl-dev              
menxu@debian:~/.rvm/src/ruby-2.0.0-p0/ext/openssl$ sudo apt-get install libssl
libssl1.0.0        libsslcommon2      libssl-dev         libssl-ocaml
libssl1.0.0-dbg    libsslcommon2-dev  libssl-doc         libssl-ocaml-dev
menxu@debian:~/.rvm/src/ruby-2.0.0-p0/ext/openssl$ sudo apt-get install libssl-dev 
正在读取软件包列表... 完成
正在分析软件包的依赖关系树       
正在读取状态信息... 完成       
将会安装下列额外的软件包:
  libssl-doc libssl1.0.0 zlib1g-dev
下列【新】软件包将被安装:
  libssl-dev libssl-doc zlib1g-dev
下列软件包将被升级:
  libssl1.0.0
升级了 1 个软件包,新安装了 3 个软件包,要卸载 0 个软件包,有 11 个软件包未被升级。
需要下载 5,821 kB/6,033 kB 的软件包。
解压缩后会消耗掉 6,979 kB 的额外空间。
您希望继续执行吗?[Y/n]y
获取:1 http://mirrors.163.com/debian/ wheezy/main libssl1.0.0 i386 1.0.1e-2 [3,029 kB]
获取:2 http://mirrors.163.com/debian/ wheezy/main libssl-dev i386 1.0.1e-2 [1,592 kB]
获取:3 http://mirrors.163.com/debian/ wheezy/main libssl-doc all 1.0.1e-2 [1,200 kB]
下载 5,821 kB,耗时 38秒 (153 kB/s)                                            
读取变更记录(changelogs)... 完成      
正在预设定软件包 ...
(正在读取数据库 ... 系统当前共安装有 148573 个文件和目录。)
正预备替换 libssl1.0.0:i386 1.0.1e-1 (使用 .../libssl1.0.0_1.0.1e-2_i386.deb) ...
正在解压缩将用于更替的包文件 libssl1.0.0:i386 ...
Selecting previously unselected package zlib1g-dev:i386.
正在解压缩 zlib1g-dev:i386 (从 .../zlib1g-dev_1%3a1.2.7.dfsg-13_i386.deb) ...
Selecting previously unselected package libssl-dev.
正在解压缩 libssl-dev (从 .../libssl-dev_1.0.1e-2_i386.deb) ...
Selecting previously unselected package libssl-doc.
正在解压缩 libssl-doc (从 .../libssl-doc_1.0.1e-2_all.deb) ...
正在处理用于 man-db 的触发器...
正在设置 libssl1.0.0:i386 (1.0.1e-2) ...
正在设置 zlib1g-dev:i386 (1:1.2.7.dfsg-13) ...
正在设置 libssl-dev (1.0.1e-2) ...
正在设置 libssl-doc (1.0.1e-2) ...
menxu@debian:~/.rvm/src/ruby-2.0.0-p0/ext/openssl$ ruby extconf.rb 
checking for t_open() in -lnsl... no
checking for socket() in -lsocket... no
checking for assert.h... yes
checking for openssl/ssl.h... yes
checking for OpenSSL_add_all_digests() in -lcrypto... yes
checking for SSL_library_init() in -lssl... yes
checking for openssl/conf_api.h... yes
checking for SSL_library_init() in openssl/ssl.h with -Werror=deprecated-declarations... yes
checking for openssl/ssl.h... yes
checking for ERR_peek_last_error()... yes
checking for ASN1_put_eoc()... yes
checking for BN_mod_add()... yes
checking for BN_mod_sqr()... yes
checking for BN_mod_sub()... yes
checking for BN_pseudo_rand_range()... yes
checking for BN_rand_range()... yes
checking for CONF_get1_default_config_file()... yes
checking for EVP_CIPHER_CTX_copy()... yes
checking for EVP_CIPHER_CTX_set_padding()... yes
checking for EVP_CipherFinal_ex()... yes
checking for EVP_CipherInit_ex()... yes
checking for EVP_DigestFinal_ex()... yes
checking for EVP_DigestInit_ex()... yes
checking for EVP_MD_CTX_cleanup()... yes
checking for EVP_MD_CTX_create()... yes
checking for EVP_MD_CTX_destroy()... yes
checking for EVP_MD_CTX_init()... yes
checking for HMAC_CTX_cleanup()... yes
checking for HMAC_CTX_copy()... yes
checking for HMAC_CTX_init()... yes
checking for PEM_def_callback()... yes
checking for PKCS5_PBKDF2_HMAC()... yes
checking for PKCS5_PBKDF2_HMAC_SHA1()... yes
checking for X509V3_set_nconf()... yes
checking for X509V3_EXT_nconf_nid()... yes
checking for X509_CRL_add0_revoked()... yes
checking for X509_CRL_set_issuer_name()... yes
checking for X509_CRL_set_version()... yes
checking for X509_CRL_sort()... yes
checking for X509_NAME_hash_old()... yes
checking for X509_STORE_get_ex_data()... no
checking for X509_STORE_set_ex_data()... no
checking for OBJ_NAME_do_all_sorted()... yes
checking for SSL_SESSION_get_id()... yes
checking for SSL_SESSION_cmp()... no
checking for OPENSSL_cleanse()... yes
checking for SSLv2_method()... no
checking for SSLv2_server_method()... no
checking for SSLv2_client_method()... no
checking for TLSv1_1_method()... yes
checking for TLSv1_1_server_method()... yes
checking for TLSv1_1_client_method()... yes
checking for TLSv1_2_method()... yes
checking for TLSv1_2_server_method()... yes
checking for TLSv1_2_client_method()... yes
checking for OPENSSL_NPN_NEGOTIATED in openssl/ssl.h... yes
checking for SSL_set_tlsext_host_name() in openssl/ssl.h... no
checking for SSL_set_tlsext_host_name in openssl/ssl.h... yes
checking for openssl/engine.h... yes
checking for ENGINE_add()... yes
checking for ENGINE_load_builtin_engines()... yes
checking for ENGINE_load_openbsd_dev_crypto()... no
checking for ENGINE_get_digest()... yes
checking for ENGINE_get_cipher()... yes
checking for ENGINE_cleanup()... yes
checking for ENGINE_load_dynamic()... yes
checking for ENGINE_load_4758cca()... no
checking for ENGINE_load_aep()... no
checking for ENGINE_load_atalla()... no
checking for ENGINE_load_chil()... no
checking for ENGINE_load_cswift()... no
checking for ENGINE_load_nuron()... no
checking for ENGINE_load_sureware()... no
checking for ENGINE_load_ubsec()... no
checking for ENGINE_load_padlock()... no
checking for ENGINE_load_capi()... no
checking for ENGINE_load_gmp()... no
checking for ENGINE_load_gost()... no
checking for ENGINE_load_cryptodev()... yes
checking for ENGINE_load_aesni()... no
checking for DH_generate_parameters_ex()... yes
checking for DSA_generate_parameters_ex()... yes
checking for RSA_generate_key_ex()... yes
checking for OpenSSL version is 0.9.7 or later... yes
checking for openssl/ocsp.h... yes
checking for EVP_CIPHER_CTX.flags in openssl/evp.h... yes
checking for EVP_CIPHER_CTX.engine in openssl/evp.h... yes
checking for X509_ATTRIBUTE.single in openssl/x509.h... yes
checking for OPENSSL_FIPS in openssl/opensslconf.h... no
checking for EVP_CTRL_GCM_GET_TAG in openssl/evp.h... yes
creating extconf.h
creating Makefile
menxu@debian:~/.rvm/src/ruby-2.0.0-p0/ext/openssl$ make
compiling ossl_x509revoked.c
compiling ossl_pkcs12.c
compiling ossl_pkey.c
compiling ossl_x509cert.c
compiling ossl_asn1.c
compiling ossl_x509attr.c
compiling ossl_pkey_dsa.c
compiling ossl.c
compiling ossl_digest.c
compiling ossl_cipher.c
compiling ossl_bn.c
compiling ossl_engine.c
compiling ossl_ssl_session.c
compiling ossl_x509crl.c
compiling ossl_pkcs7.c
compiling ossl_x509ext.c
compiling ossl_x509name.c
compiling ossl_pkey_ec.c
compiling ossl_bio.c
compiling ossl_ssl.c
compiling ossl_rand.c
compiling ossl_config.c
compiling ossl_x509store.c
compiling ossl_hmac.c
compiling ossl_ocsp.c
compiling ossl_x509req.c
compiling ossl_pkey_dh.c
compiling ossl_pkcs5.c
compiling ossl_x509.c
compiling ossl_ns_spki.c
compiling ossl_pkey_rsa.c
compiling openssl_missing.c
linking shared-object openssl.so
menxu@debian:~/.rvm/src/ruby-2.0.0-p0/ext/openssl$ make install
/usr/bin/install -c -m 0755 openssl.so /home/menxu/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/site_ruby/2.0.0/i686-linux
installing default openssl libraries
menxu@debian:~/.rvm/src/ruby-2.0.0-p0/ext/openssl$ cd ../zlib/
menxu@debian:~/.rvm/src/ruby-2.0.0-p0/ext/zlib$ ruby extconf.rb 
checking for deflateReset() in -lz... yes
checking for zlib.h... yes
checking for crc32_combine() in zlib.h... yes
checking for adler32_combine() in zlib.h... yes
checking for z_crc_t in zlib.h... yes
creating Makefile
menxu@debian:~/.rvm/src/ruby-2.0.0-p0/ext/zlib$ make install
compiling zlib.c
linking shared-object zlib.so
/usr/bin/install -c -m 0755 zlib.so /home/menxu/.rvm/rubies/ruby-2.0.0-p0/lib/ruby/site_ruby/2.0.0/i686-linux
installing default zlib libraries
menxu@debian:~/.rvm/src/ruby-2.0.0-p0/ext/zlib$ gem update --system
Latest version currently installed. Aborting.
menxu@debian:~/.rvm/src/ruby-2.0.0-p0/ext/zlib$ gem sources -a http://ruby.taobao.org/
http://ruby.taobao.org/ added to sources
menxu@debian:~/.rvm/src/ruby-2.0.0-p0/ext/zlib$ menxu@debian:~/.rvm/src/ruby-2.0.0-p0/ext/openssl$ ruby extconf.rb 
bash: menxu@debian:~/.rvm/src/ruby-2.0.0-p0/ext/openssl$: 没有那个文件或目录
menxu@debian:~/.rvm/src/ruby-2.0.0-p0/ext/zlib$ 

抱歉!评论已关闭.