no such file to load -- openssl
opensslはgemからインストールできるとおもっていたんですけど、違うみたいです。
以下はruby/gemをソースコードから入れた場合について記する
rpm or apt-getでruby/gemをいれた場合はきっとまた話がちがってくるとおもう。
rpm または apt-getで openssl-develを入れる
[root@cent5-64b-41 openssl]# pwd /usr/local/src/ruby-1.8.7-p174/ext/openssl rubyのソースのディレクトリのここらあたりにおりる ruby extconf.d make make install
ここら辺にインストールされるんだね
[root@cent5-64b-40 openssl]# make install /usr/bin/install -c -m 0755 openssl.so /usr/local/lib/ruby/site_ruby/1.8/x86_64-linux mkdir -p /usr/local/lib/ruby/site_ruby/1.8/net mkdir -p /usr/local/lib/ruby/site_ruby/1.8/openssl /usr/bin/install -c -m 644 ./lib/openssl.rb /usr/local/lib/ruby/site_ruby/1.8 /usr/bin/install -c -m 644 ./lib/net/telnets.rb /usr/local/lib/ruby/site_ruby/1.8/net /usr/bin/install -c -m 644 ./lib/net/ftptls.rb /usr/local/lib/ruby/site_ruby/1.8/net /usr/bin/install -c -m 644 ./lib/openssl/digest.rb /usr/local/lib/ruby/site_ruby/1.8/openssl /usr/bin/install -c -m 644 ./lib/openssl/config.rb /usr/local/lib/ruby/site_ruby/1.8/openssl /usr/bin/install -c -m 644 ./lib/openssl/cipher.rb /usr/local/lib/ruby/site_ruby/1.8/openssl /usr/bin/install -c -m 644 ./lib/openssl/x509-internal.rb /usr/local/lib/ruby/site_ruby/1.8/openssl /usr/bin/install -c -m 644 ./lib/openssl/ssl-internal.rb /usr/local/lib/ruby/site_ruby/1.8/openssl /usr/bin/install -c -m 644 ./lib/openssl/bn.rb /usr/local/lib/ruby/site_ruby/1.8/openssl /usr/bin/install -c -m 644 ./lib/openssl/x509.rb /usr/local/lib/ruby/site_ruby/1.8/openssl /usr/bin/install -c -m 644 ./lib/openssl/buffering.rb /usr/local/lib/ruby/site_ruby/1.8/openssl /usr/bin/install -c -m 644 ./lib/openssl/ssl.rb /usr/local/lib/ruby/site_ruby/1.8/openssl /usr/bin/install -c -m 644 ./lib/openssl/pkcs7.rb /usr/local/lib/ruby/site_ruby/1.8/openssl
いかは作業ログ
[root@cent5-64b-40 ruby-1.8.7-p352]# ruby -v ruby 1.8.7 (2011-06-30 patchlevel 352) [x86_64-linux] [root@cent5-64b-40 ruby-1.8.7-p352]# [root@cent5-64b-40 ruby-1.8.7-p352]# rpm -aq | grep openssl openssl-0.9.8e-20.el5 openssl-0.9.8e-20.el5 openssl-devel-0.9.8e-20.el5 [root@cent5-64b-40 ruby-1.8.7-p352]# [root@cent5-64b-40 ruby-1.8.7-p352]# [root@cent5-64b-40 ruby-1.8.7-p352]# cd ext/ [root@cent5-64b-40 ext]# cd openssl/ [root@cent5-64b-40 openssl]# ls -ltr 合計 776 -rw-r--r-- 1 10347 10347 2279 2月 13 2007 ossl_x509.h -rw-r--r-- 1 10347 10347 3453 2月 13 2007 ossl_x509.c -rw-r--r-- 1 10347 10347 397 2月 13 2007 ossl_version.h -rw-r--r-- 1 10347 10347 434 2月 13 2007 ossl_rand.h -rw-r--r-- 1 10347 10347 570 2月 13 2007 ossl_ocsp.h -rw-r--r-- 1 10347 10347 469 2月 13 2007 ossl_ns_spki.h -rw-r--r-- 1 10347 10347 429 2月 13 2007 ossl_hmac.h -rw-r--r-- 1 10347 10347 491 2月 13 2007 ossl_engine.h -rw-r--r-- 1 10347 10347 506 2月 13 2007 ossl_config.h -rw-r--r-- 1 10347 10347 465 2月 13 2007 ossl_bio.h -rw-r--r-- 1 10347 10347 1708 2月 13 2007 ossl_asn1.h -rw-r--r-- 1 10347 10347 1132 6月 9 2007 ruby_missing.h -rw-r--r-- 1 10347 10347 4824 6月 9 2007 ossl_x509revoked.c -rw-r--r-- 1 10347 10347 9899 6月 9 2007 ossl_x509req.c -rw-r--r-- 1 10347 10347 15570 6月 9 2007 ossl_x509cert.c -rw-r--r-- 1 10347 10347 855 6月 9 2007 ossl_ssl.h -rw-r--r-- 1 10347 10347 3411 6月 9 2007 ossl_pkey.h -rw-r--r-- 1 10347 10347 496 6月 9 2007 ossl_pkcs7.h -rw-r--r-- 1 10347 10347 323 6月 9 2007 ossl_pkcs12.h -rw-r--r-- 1 10347 10347 6401 6月 9 2007 ossl_pkcs12.c -rw-r--r-- 1 10347 10347 5656 6月 9 2007 ossl_ns_spki.c -rw-r--r-- 1 10347 10347 520 6月 9 2007 ossl_digest.h -rw-r--r-- 1 10347 10347 528 6月 9 2007 ossl_cipher.h -rw-r--r-- 1 10347 10347 507 6月 9 2007 ossl_bn.h -rw-r--r-- 1 10347 10347 1545 6月 9 2007 ossl_bio.c -rw-r--r-- 1 10347 10347 110 7月 15 2007 ossl_pkcs5.h -rw-r--r-- 1 10347 10347 5026 2月 25 2008 ossl_digest.c -rw-r--r-- 1 10347 10347 7511 5月 19 2008 openssl_missing.c -rw-r--r-- 1 10347 10347 15047 5月 30 2008 ossl_x509store.c -rw-r--r-- 1 10347 10347 3689 5月 30 2008 ossl_rand.c -rw-r--r-- 1 10347 10347 11364 5月 25 2010 ossl_x509ext.c -rw-r--r-- 1 10347 10347 13894 5月 25 2010 ossl_pkey_rsa.c -rw-r--r-- 1 10347 10347 10491 5月 25 2010 ossl_pkey_dsa.c -rw-r--r-- 1 10347 10347 11926 5月 25 2010 ossl_pkey_dh.c -rw-r--r-- 1 10347 10347 4794 5月 25 2010 ossl_pkey.c -rw-r--r-- 1 10347 10347 20056 5月 25 2010 ossl_ocsp.c -rw-r--r-- 1 10347 10347 5471 5月 25 2010 ossl_hmac.c -rw-r--r-- 1 10347 10347 14496 5月 25 2010 ossl_cipher.c -rw-r--r-- 1 10347 10347 5181 5月 25 2010 openssl_missing.h -rw-r--r-- 1 10347 10347 9414 6月 21 2010 ossl_x509name.c -rw-r--r-- 1 10347 10347 11905 6月 21 2010 ossl_x509crl.c -rw-r--r-- 1 10347 10347 6315 6月 21 2010 ossl_x509attr.c -rw-r--r-- 1 10347 10347 6706 6月 21 2010 ossl_ssl_session.c -rw-r--r-- 1 10347 10347 40753 6月 21 2010 ossl_pkey_ec.c -rw-r--r-- 1 10347 10347 25141 6月 21 2010 ossl_pkcs7.c -rw-r--r-- 1 10347 10347 2477 6月 21 2010 ossl_pkcs5.c -rw-r--r-- 1 10347 10347 9969 6月 21 2010 ossl_engine.c -rw-r--r-- 1 10347 10347 4957 6月 21 2010 ossl.h -rw-r--r-- 1 10347 10347 10478 6月 21 2010 ossl.c -rw-r--r-- 1 10347 10347 1746 11月 22 2010 ossl_config.c -rw-r--r-- 1 10347 10347 31071 11月 22 2010 ossl_asn1.c -rw-r--r-- 1 10347 10347 19273 5月 21 07:25 ossl_bn.c -rw-r--r-- 1 10347 10347 41904 6月 26 17:58 ossl_ssl.c -rw-r--r-- 1 10347 10347 4231 6月 26 17:58 extconf.rb drwxr-xr-x 4 10347 10347 4096 7月 2 18:53 lib -rw-r--r-- 1 root root 2898 9月 29 22:13 mkmf.log -rw-r--r-- 1 root root 2448 9月 29 22:13 Makefile [root@cent5-64b-40 openssl]# [root@cent5-64b-40 openssl]# ruby extconf.rb === OpenSSL for Ruby configurator === === Checking for system dependent stuff... === checking for t_open() in -lnsl... no checking for socket() in -lsocket... no checking for assert.h... yes === Checking for required stuff... === 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 rb_str_set_len() in ruby.h... yes checking for rb_block_call() in ruby.h... yes === Checking for OpenSSL features... === checking for ERR_peek_last_error()... 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()... no 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()... no checking for HMAC_CTX_init()... yes checking for PEM_def_callback()... yes checking for PKCS5_PBKDF2_HMAC()... no 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()... no 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 OPENSSL_cleanse()... yes checking for SSLv2_method()... yes checking for SSLv2_server_method()... yes checking for SSLv2_client_method()... yes checking for SSL_set_tlsext_host_name() in openssl/ssl.h... no checking for SSL_set_tlsext_host_name in openssl/ssl.h... no 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_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 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 done. === creating extconf.h creating Makefile Done. [root@cent5-64b-40 openssl]# make gcc -I. -I. -I/usr/local/lib/ruby/1.8/x86_64-linux -I. -DRUBY_EXTCONF_H=\"extconf.h\" -fPIC -g -O2 -fPIC -c ossl_pkey_dsa.c ossl_pkey_dsa.c: In function ‘ossl_dsa_initialize’: ossl_pkey_dsa.c:165: 警告: passing argument 1 of ‘PEM_ASN1_read_bio’ from incompatible pointer type ossl_pkey_dsa.c:165: 警告: passing argument 4 of ‘PEM_ASN1_read_bio’ from incompatible pointer type ossl_pkey_dsa.c: In function ‘ossl_dsa_to_public_key’: ossl_pkey_dsa.c:370: 警告: passing argument 2 of ‘ASN1_dup’ from incompatible pointer type gcc -I. -I. -I/usr/local/lib/ruby/1.8/x86_64-linux -I. -DRUBY_EXTCONF_H=\"extconf.h\" -fPIC -g -O2 -fPIC -c ossl_x509crl.c gcc -I. -I. -I/usr/local/lib/ruby/1.8/x86_64-linux -I. -DRUBY_EXTCONF_H=\"extconf.h\" -fPIC -g -O2 -fPIC -c ossl_hmac.c gcc -I. -I. -I/usr/local/lib/ruby/1.8/x86_64-linux -I. -DRUBY_EXTCONF_H=\"extconf.h\" -fPIC -g -O2 -fPIC -c ossl_x509revoked.c ossl_x509revoked.c: In function ‘ossl_x509revoked_new’: ossl_x509revoked.c:48: 警告: passing argument 2 of ‘ASN1_dup’ from incompatible pointer type ossl_x509revoked.c: In function ‘DupX509RevokedPtr’: ossl_x509revoked.c:64: 警告: passing argument 2 of ‘ASN1_dup’ from incompatible pointer type gcc -I. -I. -I/usr/local/lib/ruby/1.8/x86_64-linux -I. -DRUBY_EXTCONF_H=\"extconf.h\" -fPIC -g -O2 -fPIC -c ossl_ocsp.c ossl_ocsp.c: In function ‘ossl_ocspreq_initialize’: ossl_ocsp.c:114: 警告: passing argument 2 of ‘d2i_OCSP_REQUEST’ from incompatible pointer type ossl_ocsp.c: In function ‘ossl_ocspres_initialize’: ossl_ocsp.c:321: 警告: passing argument 2 of ‘d2i_OCSP_RESPONSE’ from incompatible pointer type gcc -I. -I. -I/usr/local/lib/ruby/1.8/x86_64-linux -I. -DRUBY_EXTCONF_H=\"extconf.h\" -fPIC -g -O2 -fPIC -c ossl_pkcs5.c gcc -I. -I. -I/usr/local/lib/ruby/1.8/x86_64-linux -I. -DRUBY_EXTCONF_H=\"extconf.h\" -fPIC -g -O2 -fPIC -c ossl_bn.c gcc -I. -I. -I/usr/local/lib/ruby/1.8/x86_64-linux -I. -DRUBY_EXTCONF_H=\"extconf.h\" -fPIC -g -O2 -fPIC -c ossl_x509attr.c ossl_x509attr.c: In function ‘ossl_x509attr_initialize’: ossl_x509attr.c:104: 警告: passing argument 2 of ‘d2i_X509_ATTRIBUTE’ from incompatible pointer type gcc -I. -I. -I/usr/local/lib/ruby/1.8/x86_64-linux -I. -DRUBY_EXTCONF_H=\"extconf.h\" -fPIC -g -O2 -fPIC -c ossl_x509cert.c ossl_x509cert.c: In function ‘ossl_x509_inspect’: ossl_x509cert.c:693: 警告: initialization discards qualifiers from pointer target type gcc -I. -I. -I/usr/local/lib/ruby/1.8/x86_64-linux -I. -DRUBY_EXTCONF_H=\"extconf.h\" -fPIC -g -O2 -fPIC -c ossl_pkey_ec.c gcc -I. -I. -I/usr/local/lib/ruby/1.8/x86_64-linux -I. -DRUBY_EXTCONF_H=\"extconf.h\" -fPIC -g -O2 -fPIC -c ossl_pkey.c gcc -I. -I. -I/usr/local/lib/ruby/1.8/x86_64-linux -I. -DRUBY_EXTCONF_H=\"extconf.h\" -fPIC -g -O2 -fPIC -c ossl_digest.c gcc -I. -I. -I/usr/local/lib/ruby/1.8/x86_64-linux -I. -DRUBY_EXTCONF_H=\"extconf.h\" -fPIC -g -O2 -fPIC -c ossl_x509req.c gcc -I. -I. -I/usr/local/lib/ruby/1.8/x86_64-linux -I. -DRUBY_EXTCONF_H=\"extconf.h\" -fPIC -g -O2 -fPIC -c ossl_pkey_rsa.c gcc -I. -I. -I/usr/local/lib/ruby/1.8/x86_64-linux -I. -DRUBY_EXTCONF_H=\"extconf.h\" -fPIC -g -O2 -fPIC -c ossl_x509.c gcc -I. -I. -I/usr/local/lib/ruby/1.8/x86_64-linux -I. -DRUBY_EXTCONF_H=\"extconf.h\" -fPIC -g -O2 -fPIC -c openssl_missing.c gcc -I. -I. -I/usr/local/lib/ruby/1.8/x86_64-linux -I. -DRUBY_EXTCONF_H=\"extconf.h\" -fPIC -g -O2 -fPIC -c ossl_asn1.c ossl_asn1.c: In function ‘decode_bool’: ossl_asn1.c:317: 警告: passing argument 2 of ‘d2i_ASN1_BOOLEAN’ from incompatible pointer type ossl_asn1.c: In function ‘decode_int’: ossl_asn1.c:332: 警告: passing argument 2 of ‘d2i_ASN1_INTEGER’ from incompatible pointer type ossl_asn1.c: In function ‘decode_enum’: ossl_asn1.c:372: 警告: passing argument 2 of ‘d2i_ASN1_ENUMERATED’ from incompatible pointer type ossl_asn1.c: In function ‘decode_null’: ossl_asn1.c:389: 警告: passing argument 2 of ‘d2i_ASN1_NULL’ from incompatible pointer type ossl_asn1.c: In function ‘decode_obj’: ossl_asn1.c:406: 警告: passing argument 2 of ‘d2i_ASN1_OBJECT’ from incompatible pointer type ossl_asn1.c: In function ‘decode_time’: ossl_asn1.c:434: 警告: passing argument 2 of ‘d2i_ASN1_TIME’ from incompatible pointer type ossl_asn1.c: In function ‘ossl_asn1_decode0’: ossl_asn1.c:726: 警告: passing argument 1 of ‘ASN1_get_object’ from incompatible pointer type gcc -I. -I. -I/usr/local/lib/ruby/1.8/x86_64-linux -I. -DRUBY_EXTCONF_H=\"extconf.h\" -fPIC -g -O2 -fPIC -c ossl.c gcc -I. -I. -I/usr/local/lib/ruby/1.8/x86_64-linux -I. -DRUBY_EXTCONF_H=\"extconf.h\" -fPIC -g -O2 -fPIC -c ossl_ssl.c gcc -I. -I. -I/usr/local/lib/ruby/1.8/x86_64-linux -I. -DRUBY_EXTCONF_H=\"extconf.h\" -fPIC -g -O2 -fPIC -c ossl_x509store.c gcc -I. -I. -I/usr/local/lib/ruby/1.8/x86_64-linux -I. -DRUBY_EXTCONF_H=\"extconf.h\" -fPIC -g -O2 -fPIC -c ossl_ssl_session.c gcc -I. -I. -I/usr/local/lib/ruby/1.8/x86_64-linux -I. -DRUBY_EXTCONF_H=\"extconf.h\" -fPIC -g -O2 -fPIC -c ossl_x509ext.c ossl_x509ext.c: In function ‘ossl_x509ext_initialize’: ossl_x509ext.c:286: 警告: passing argument 2 of ‘d2i_X509_EXTENSION’ from incompatible pointer type gcc -I. -I. -I/usr/local/lib/ruby/1.8/x86_64-linux -I. -DRUBY_EXTCONF_H=\"extconf.h\" -fPIC -g -O2 -fPIC -c ossl_ns_spki.c ossl_ns_spki.c: In function ‘ossl_spki_initialize’: ossl_ns_spki.c:67: 警告: passing argument 2 of ‘d2i_NETSCAPE_SPKI’ from incompatible pointer type gcc -I. -I. -I/usr/local/lib/ruby/1.8/x86_64-linux -I. -DRUBY_EXTCONF_H=\"extconf.h\" -fPIC -g -O2 -fPIC -c ossl_pkey_dh.c gcc -I. -I. -I/usr/local/lib/ruby/1.8/x86_64-linux -I. -DRUBY_EXTCONF_H=\"extconf.h\" -fPIC -g -O2 -fPIC -c ossl_engine.c ossl_engine.c: In function ‘ossl_engine_inspect’: ossl_engine.c:347: 警告: initialization discards qualifiers from pointer target type gcc -I. -I. -I/usr/local/lib/ruby/1.8/x86_64-linux -I. -DRUBY_EXTCONF_H=\"extconf.h\" -fPIC -g -O2 -fPIC -c ossl_pkcs7.c ossl_pkcs7.c: In function ‘ossl_pkcs7si_new’: ossl_pkcs7.c:89: 警告: passing argument 2 of ‘ASN1_dup’ from incompatible pointer type ossl_pkcs7.c: In function ‘DupPKCS7SignerPtr’: ossl_pkcs7.c:102: 警告: passing argument 2 of ‘ASN1_dup’ from incompatible pointer type ossl_pkcs7.c: In function ‘ossl_pkcs7ri_new’: ossl_pkcs7.c:115: 警告: passing argument 2 of ‘ASN1_dup’ from incompatible pointer type ossl_pkcs7.c: In function ‘DupPKCS7RecipientPtr’: ossl_pkcs7.c:128: 警告: passing argument 2 of ‘ASN1_dup’ from incompatible pointer type gcc -I. -I. -I/usr/local/lib/ruby/1.8/x86_64-linux -I. -DRUBY_EXTCONF_H=\"extconf.h\" -fPIC -g -O2 -fPIC -c ossl_bio.c gcc -I. -I. -I/usr/local/lib/ruby/1.8/x86_64-linux -I. -DRUBY_EXTCONF_H=\"extconf.h\" -fPIC -g -O2 -fPIC -c ossl_rand.c gcc -I. -I. -I/usr/local/lib/ruby/1.8/x86_64-linux -I. -DRUBY_EXTCONF_H=\"extconf.h\" -fPIC -g -O2 -fPIC -c ossl_cipher.c ossl_cipher.c: In function ‘ossl_cipher_init’: ossl_cipher.c:191: 警告: initialization discards qualifiers from pointer target type ossl_cipher.c: In function ‘ossl_cipher_update_deprecated’: ossl_cipher.c:314: 警告: assignment discards qualifiers from pointer target type gcc -I. -I. -I/usr/local/lib/ruby/1.8/x86_64-linux -I. -DRUBY_EXTCONF_H=\"extconf.h\" -fPIC -g -O2 -fPIC -c ossl_pkcs12.c gcc -I. -I. -I/usr/local/lib/ruby/1.8/x86_64-linux -I. -DRUBY_EXTCONF_H=\"extconf.h\" -fPIC -g -O2 -fPIC -c ossl_x509name.c ossl_x509name.c: In function ‘ossl_x509name_initialize’: ossl_x509name.c:143: 警告: passing argument 2 of ‘d2i_X509_NAME’ from incompatible pointer type gcc -I. -I. -I/usr/local/lib/ruby/1.8/x86_64-linux -I. -DRUBY_EXTCONF_H=\"extconf.h\" -fPIC -g -O2 -fPIC -c ossl_config.c gcc -shared -o openssl.so ossl_pkey_dsa.o ossl_x509crl.o ossl_hmac.o ossl_x509revoked.o ossl_ocsp.o ossl_pkcs5.o ossl_bn.o ossl_x509attr.o ossl_x509cert.o ossl_pkey_ec.o ossl_pkey.o ossl_digest.o ossl_x509req.o ossl_pkey_rsa.o ossl_x509.o openssl_missing.o ossl_asn1.o ossl.o ossl_ssl.o ossl_x509store.o ossl_ssl_session.o ossl_x509ext.o ossl_ns_spki.o ossl_pkey_dh.o ossl_engine.o ossl_pkcs7.o ossl_bio.o ossl_rand.o ossl_cipher.o ossl_pkcs12.o ossl_x509name.o ossl_config.o -L. -L/usr/local/lib -Wl,-R/usr/local/lib -L. -rdynamic -Wl,-export-dynamic -Wl,-R -Wl,/usr/local/lib -L/usr/local/lib -lruby -lssl -lcrypto -lrt -ldl -lcrypt -lm -lc [root@cent5-64b-40 openssl]# [root@cent5-64b-40 openssl]# make install /usr/bin/install -c -m 0755 openssl.so /usr/local/lib/ruby/site_ruby/1.8/x86_64-linux mkdir -p /usr/local/lib/ruby/site_ruby/1.8/net mkdir -p /usr/local/lib/ruby/site_ruby/1.8/openssl /usr/bin/install -c -m 644 ./lib/openssl.rb /usr/local/lib/ruby/site_ruby/1.8 /usr/bin/install -c -m 644 ./lib/net/telnets.rb /usr/local/lib/ruby/site_ruby/1.8/net /usr/bin/install -c -m 644 ./lib/net/ftptls.rb /usr/local/lib/ruby/site_ruby/1.8/net /usr/bin/install -c -m 644 ./lib/openssl/digest.rb /usr/local/lib/ruby/site_ruby/1.8/openssl /usr/bin/install -c -m 644 ./lib/openssl/config.rb /usr/local/lib/ruby/site_ruby/1.8/openssl /usr/bin/install -c -m 644 ./lib/openssl/cipher.rb /usr/local/lib/ruby/site_ruby/1.8/openssl /usr/bin/install -c -m 644 ./lib/openssl/x509-internal.rb /usr/local/lib/ruby/site_ruby/1.8/openssl /usr/bin/install -c -m 644 ./lib/openssl/ssl-internal.rb /usr/local/lib/ruby/site_ruby/1.8/openssl /usr/bin/install -c -m 644 ./lib/openssl/bn.rb /usr/local/lib/ruby/site_ruby/1.8/openssl /usr/bin/install -c -m 644 ./lib/openssl/x509.rb /usr/local/lib/ruby/site_ruby/1.8/openssl /usr/bin/install -c -m 644 ./lib/openssl/buffering.rb /usr/local/lib/ruby/site_ruby/1.8/openssl /usr/bin/install -c -m 644 ./lib/openssl/ssl.rb /usr/local/lib/ruby/site_ruby/1.8/openssl /usr/bin/install -c -m 644 ./lib/openssl/pkcs7.rb /usr/local/lib/ruby/site_ruby/1.8/openssl [root@cent5-64b-40 openssl]# [root@cent5-64b-40 openssl]# [root@cent5-64b-40 openssl]# irb irb(main):001:0> require 'openssl' => true irb(main):002:0>