<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>whzlong (Kevin)</title>
    <link>https://ruby-china.org/whzlong</link>
    <description/>
    <language>en-us</language>
    <item>
      <title>ruby2.0.0 源码安装时关于 openssl 的问题</title>
      <description>&lt;p&gt;使用平台：Mac OS X 10.8.5&lt;/p&gt;

&lt;p&gt;用源码编译安装完 ruby2.0.0 后，准备利用 gem 安装 rails，但是出现下面的错误：
ERROR:  Loading command: install (LoadError)
              cannot load such file --openssl
ERROR:  While executing gem ... (NoMethodError)
             undefined method 'invoke_with_build_args'  for nil : NilClass&lt;/p&gt;

&lt;p&gt;从错误提示信息上看，应该是没有安装 openssl，接着打算利用源码安装 openssl，
将目录定位到源码中 openssl 所在的目录 ruby2.0.0-p247/ext/openssl.
执行下面的命令安装 openssl：
ruby extconf.rb 
结果出现下面的错误：
checking for SSL_library_init() in openssl/ssl.h with -Werror=deprecated-declarations... no
extconf.rb:62:in '&lt;/p&gt;': Ignore OpenSSL broken by Apple. (RuntimeError)
Please use another openssl.(e.g. using 'configure --with-openssl-dir=/path/to/openssl')
后来打算利用./configure 加上参数--with-openssl-dir 重新编译安装 ruby2.0，结果发现--with-openssl-dir
好像不是./configure 的参数选项。
有很多人建议用 RVM 来安装 ruby，但是如果仅仅是通过上述方式安装 ruby2.0，有没有什么好的解决方案呢？&lt;p&gt;&lt;/p&gt;</description>
      <author>whzlong</author>
      <pubDate>Sat, 21 Sep 2013 16:27:42 +0800</pubDate>
      <link>https://ruby-china.org/topics/14258</link>
      <guid>https://ruby-china.org/topics/14258</guid>
    </item>
    <item>
      <title>Database Migrations 自动生成的主键 id</title>
      <description>&lt;p&gt;在 Database Migrations 生成表的过程中，怎样避免框架自动生成主键 id&lt;/p&gt;</description>
      <author>whzlong</author>
      <pubDate>Thu, 28 Feb 2013 16:38:09 +0800</pubDate>
      <link>https://ruby-china.org/topics/9021</link>
      <guid>https://ruby-china.org/topics/9021</guid>
    </item>
  </channel>
</rss>
