{"id":333,"date":"2008-09-03T12:22:00","date_gmt":"2008-09-03T12:22:00","guid":{"rendered":"http:\/\/marvelliu.wordpress.com\/2008\/09\/03\/ruby%e7%9a%84ssl%e9%97%ae%e9%a2%98"},"modified":"2008-09-03T12:22:00","modified_gmt":"2008-09-03T12:22:00","slug":"ruby%e7%9a%84ssl%e9%97%ae%e9%a2%98","status":"publish","type":"post","link":"https:\/\/marvelliu.space\/?p=333","title":{"rendered":"ruby\u7684ssl\u95ee\u9898"},"content":{"rendered":"<p>\u5e08\u5f1f\u7684ruby\u51fa\u4e86\u70b9\u95ee\u9898\uff0c\u542f\u52a8rails\u7684\u65f6\u5019\u62a5\u9519\uff1a<\/p>\n<p>$ ruby script\/server <br \/>=&gt; Booting Mongrel (use &#8216;script\/server webrick&#8217; to force WEBrick)<br \/>=&gt; Rails 2.1.0 application starting on http:\/\/0.0.0.0:3000       <br \/>=&gt; Call with -d to detach                                        <br \/>=&gt; Ctrl-C to shutdown server                                     <br \/>** Starting Mongrel listening at 0.0.0.0:3000                    <br \/>** Starting Rails with development environment&#8230;                <br \/>Exiting                                                          <br \/>\/usr\/local\/lib\/ruby\/gems\/1.8\/gems\/rails-2.1.0\/lib\/initializer.rb:225:in `require_frameworks&#8217;: no such file to load &#8212; openssl (RuntimeError)<br \/>        from \/usr\/local\/lib\/ruby\/gems\/1.8\/gems\/rails-2.1.0\/lib\/initializer.rb:113:in `process&#8217;                                              <br \/>        from \/usr\/local\/lib\/ruby\/gems\/1.8\/gems\/rails-2.1.0\/lib\/initializer.rb:93:in `send&#8217;                                                  <br \/>        from \/usr\/local\/lib\/ruby\/gems\/1.8\/gems\/rails-2.1.0\/lib\/initializer.rb:93:in `run&#8217;                                                   <br \/>        from \/home\/xulei\/ROR\/mybook\/config\/environment.rb:13                                                                                <br \/>        from \/usr\/local\/lib\/ruby\/site_ruby\/1.8\/rubygems\/custom_require.rb:27:in `gem_original_require&#8217;  <br \/>&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;.<\/p>\n<p>\u4e00\u5927\u5806\u9519\u8bef\u3002<\/p>\n<p>\u5c1d\u8bd5\u4f7f\u7528apt\u5b89\u88c5ruby\u548crails\uff0c\u6ca1\u60f3\u5230ubuntu 8.04\u5b58\u5728\u4f9d\u8d56\u6027\u5173\u7cfb\uff0c\u672a\u9042\u3002\u770b\u6765\u8fd9\u4ef6\u4e8b\u60c5\u5c06\u6211\u8f6c\u5230ubuntu\u7684yy\u60f3\u6cd5\u65e0\u60c5\u6253\u7834\u3002<\/p>\n<p>\u6e90\u7801\u5b89\u88c5ruby\u548crubygem\uff0c\u7136\u540egem\u5b89\u88c5rails\uff0c\u8fd8\u662f\u4ee5\u4e0a\u95ee\u9898\uff0c\u672a\u9042\u3002<\/p>\n<p><a href=\"http:\/\/www.ruby-forum.com\/topic\/163332\">google\u4e00\u4e0b<\/a>\uff0c\u8bf4\u662f\u5148\u88c5openssl-dev\uff0c\u7136\u540e\u201creconfigure all the ruby packages from scratch\u201d\uff0c\u4e00\u76f4\u6ca1\u7406\u89e3\u8fd9\u4e2areconfigure\u662f\u4ec0\u4e48\u610f\u601d\u3002\u540e\u6765\u5f04\u660e\u767d\u4e86\uff0c\u539f\u6765\u662f\u5230ruby\u7684\u6e90\u7801\u76ee\u5f55configure\u3001make\u548cmake install\uff0c\u8fd9\u6837\u5c31ok\u4e86\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5e08\u5f1f\u7684ruby\u51fa\u4e86\u70b9\u95ee\u9898\uff0c\u542f\u52a8rails\u7684\u65f6\u5019\u62a5\u9519\uff1a $ ruby script\/server =&gt; Booting Mongrel (use &#8216;script\/server webrick&#8217; to force WEBrick)=&gt; Rails 2.1.0 application starting on http:\/\/0.0.0.0:3000 =&gt; Call with -d to detach =&gt; Ctrl-C to shutdown server ** Starting Mongrel listening at 0.0.0.0:3000 ** Starting Rails with development environment&#8230; Exiting \/usr\/local\/lib\/ruby\/gems\/1.8\/gems\/rails-2.1.0\/lib\/initializer.rb:225:in `require_frameworks&#8217;: no such file to load &#8212; openssl (RuntimeError) from \/usr\/local\/lib\/ruby\/gems\/1.8\/gems\/rails-2.1.0\/lib\/initializer.rb:113:in &hellip; <a href=\"https:\/\/marvelliu.space\/?p=333\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;ruby\u7684ssl\u95ee\u9898&#8221;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[19,21],"tags":[],"class_list":["post-333","post","type-post","status-publish","format-standard","hentry","category-ror","category-tech"],"_links":{"self":[{"href":"https:\/\/marvelliu.space\/index.php?rest_route=\/wp\/v2\/posts\/333","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/marvelliu.space\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/marvelliu.space\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/marvelliu.space\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/marvelliu.space\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=333"}],"version-history":[{"count":0,"href":"https:\/\/marvelliu.space\/index.php?rest_route=\/wp\/v2\/posts\/333\/revisions"}],"wp:attachment":[{"href":"https:\/\/marvelliu.space\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=333"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/marvelliu.space\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=333"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/marvelliu.space\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=333"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}