<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>Jsiguo (奔跑的羚羊)</title>
    <link>https://ruby-china.org/Jsiguo</link>
    <description>技术永无止境</description>
    <language>en-us</language>
    <item>
      <title>新手 mac10.8.2 搭建环境走到 rvm pkg install readline 出问题</title>
      <description>&lt;p&gt;mac os10.8.2 
xcode4.5 并且 Command Line Toos 也都装了
然后安装 wiki 文档一步步走到 rvm pkg install readline 提示如下:
MacBook-Pro:~ zhanglei$ rvm pkg install readline
Fetching readline-5.2.tar.gz to /Users/gsm/.rvm/archives
Extracting readline-5.2.tar.gz to /Users/gsm/.rvm/src
Applying patch '/Users/gsm/.rvm/patches/readline-5.2/shobj-conf.patch'...
Configuring readline in /Users/zhanglei/.rvm/src/readline-5.2.
Compiling readline in /Users/zhanglei/.rvm/src/readline-5.2.
Installing readline to /Users/zhanglei/.rvm/usr&lt;/p&gt;

&lt;p&gt;Please note that it's required to reinstall all rubies:&lt;/p&gt;

&lt;p&gt;rvm reinstall all --force
Fetching readline-6.2.tar.gz to /Users/gsm/.rvm/archives
There is no checksum for '&lt;a href="http://ftp.gnu.org/gnu/readline/readline-6.2.tar.gz" rel="nofollow" target="_blank"&gt;http://ftp.gnu.org/gnu/readline/readline-6.2.tar.gz&lt;/a&gt;' or 'readline-6.2.tar.gz', it's not possible to validate it.
If you wish to continue with unverified download add '--verify-downloads 1' after the command.&lt;/p&gt;

&lt;p&gt;Please note that it's required to reinstall all rubies:&lt;/p&gt;

&lt;p&gt;rvm reinstall all --force
社区有谁知道提示下，第一次装 rails，万分感谢&lt;/p&gt;</description>
      <author>Jsiguo</author>
      <pubDate>Thu, 18 Oct 2012 23:36:11 +0800</pubDate>
      <link>https://ruby-china.org/topics/6169</link>
      <guid>https://ruby-china.org/topics/6169</guid>
    </item>
    <item>
      <title>xcode4.3.3 配置 rails 问题 难道社区 wiki 配置 rails 有问题</title>
      <description>&lt;p&gt;mac 10.7.4 按照 wiki 文档执行 rvm install 1.9.3 --with-readline-dir=$rvm_path/usr
出现如下提示&lt;/p&gt;

&lt;p&gt;Ruby (and needed base gems) for your selection will be installed shortly.
Before it happens, please read and execute the instructions below.
Please use a separate terminal to execute any additional commands.&lt;/p&gt;

&lt;p&gt;Notes for Mac OS X 10.7.4, Xcode 4.3.3.&lt;/p&gt;

&lt;p&gt;For MacRuby: Install LLVM first.
For JRuby: Install the JDK. See &lt;a href="http://developer.apple.com/java/download/" rel="nofollow" target="_blank"&gt;http://developer.apple.com/java/download/&lt;/a&gt; # Current Java version "1.6.0_26"
For IronRuby: Install Mono &amp;gt;= 2.6
For Ruby 1.9.3: Install libksba # If using Homebrew, 'brew install libksba'
You can use &amp;amp; download osx-gcc-installer: &lt;a href="https://github.com/kennethreitz/osx-gcc-installer" rel="nofollow" target="_blank"&gt;https://github.com/kennethreitz/osx-gcc-installer&lt;/a&gt;
** NOTE: Currently, Node.js is having issues building with osx-gcc-installer. The only fix is to install Xcode over osx-gcc-installer.
We had reports of &lt;a href="http://hpc.sourceforge.net/" rel="nofollow" target="_blank"&gt;http://hpc.sourceforge.net/&lt;/a&gt; making things work, but it looks like not easiest/safest to setup.
To use an RVM installed Ruby as default, instead of the system ruby:&lt;/p&gt;

&lt;p&gt;:&lt;/p&gt;</description>
      <author>Jsiguo</author>
      <pubDate>Thu, 09 Aug 2012 12:06:58 +0800</pubDate>
      <link>https://ruby-china.org/topics/4828</link>
      <guid>https://ruby-china.org/topics/4828</guid>
    </item>
    <item>
      <title>如何利用 MacBook Pro 制作 mac os 安装 U 盘</title>
      <description>&lt;p&gt;如何利用 MacBook Pro 制作 mac os 安装 U 盘  &lt;/p&gt;</description>
      <author>Jsiguo</author>
      <pubDate>Wed, 11 Jul 2012 17:29:14 +0800</pubDate>
      <link>https://ruby-china.org/topics/4251</link>
      <guid>https://ruby-china.org/topics/4251</guid>
    </item>
    <item>
      <title>外建关联 build 问题</title>
      <description>&lt;p&gt;大家好，请问我在 calss User {
。。。。
after_create :set_profile
def set_profile
&lt;a href="/profile" class="user-mention" title="@profile"&gt;&lt;i&gt;@&lt;/i&gt;profile&lt;/a&gt; = self.build_profile
end
}
而 在 models 对 profile 加了如下验证
validates_numericality_of(:birth_month,:only_integer =&amp;gt; true,:greater_than =&amp;gt;0,:less_than =&amp;gt;13 ,:message =&amp;gt; '1-12')
validates_presence_of :birth_year, :birth_month, :birth_day #不能为空验证
validates_numericality_of :birth_day #不能为非数字验证&lt;/p&gt;

&lt;p&gt;此时外键就不能创建了 就是说不能创建 profiles 了
如果不加验证就能顺利创建 profiles 我想加验证请问有什么方法解决&lt;/p&gt;</description>
      <author>Jsiguo</author>
      <pubDate>Fri, 16 Dec 2011 14:41:11 +0800</pubDate>
      <link>https://ruby-china.org/topics/507</link>
      <guid>https://ruby-china.org/topics/507</guid>
    </item>
    <item>
      <title>Ubuntu 11.10 Rails 开发集成 vim 相关问题</title>
      <description>&lt;p&gt;网上有贴说
1.sudo apt-get install vim&lt;br&gt;
2.将（NERD_tree.vim）文件放在用户目录的.vim 文件中但用户目录中没有这个隐藏的文件夹 
3.有谁知道 rails .vim 的配置方法让 rails 项目文件树状显示  &lt;/p&gt;</description>
      <author>Jsiguo</author>
      <pubDate>Fri, 02 Dec 2011 18:03:44 +0800</pubDate>
      <link>https://ruby-china.org/topics/314</link>
      <guid>https://ruby-china.org/topics/314</guid>
    </item>
    <item>
      <title>rails c 问题求解</title>
      <description>&lt;p&gt;ubuntu 11.10 rails 3.1.3 控制台输入 rails c 一直报&lt;/p&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;/home/gsm/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/irb/completion.rb:9:in &lt;span class="sb"&gt;`&lt;/span&gt;require&lt;span class="s1"&gt;': cannot load such file -- readline (LoadError) 
from /home/gsm/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/irb/completion.rb:9:in `&amp;lt;top (required)&amp;gt;'&lt;/span&gt; 
from /home/gsm/.rvm/gems/ruby-1.9.3-p0/gems/railties-3.1.3/lib/rails/commands/console.rb:3:in &lt;span class="sb"&gt;`&lt;/span&gt;require&lt;span class="s1"&gt;' 
from /home/gsm/.rvm/gems/ruby-1.9.3-p0/gems/railties-3.1.3/lib/rails/commands/console.rb:3:in `&amp;lt;top (required)&amp;gt;'&lt;/span&gt; 
from /home/gsm/.rvm/gems/ruby-1.9.3-p0/gems/railties-3.1.3/lib/rails/commands.rb:37:in &lt;span class="sb"&gt;`&lt;/span&gt;require&lt;span class="s1"&gt;' 
from /home/gsm/.rvm/gems/ruby-1.9.3-p0/gems/railties-3.1.3/lib/rails/commands.rb:37:in `&amp;lt;top (required)&amp;gt;'&lt;/span&gt; 
from script/rails:6:in &lt;span class="sb"&gt;`&lt;/span&gt;require&lt;span class="s1"&gt;' 
from script/rails:6:in `&amp;lt;main&amp;gt;'&lt;/span&gt; 
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Bash 代码 &lt;/p&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;sudo &lt;/span&gt;apt-get &lt;span class="nb"&gt;install &lt;/span&gt;libncurses5-dev libreadline5-dev 
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;但是实践发现 libreadline5-dev 已经废弃了 
“现在没有可用的软件包 libreadline5-dev，但是它被其它的软件包引用了。
这可能意味着这个缺失的软件包可能已被废弃，
或者只能在其他发布源中找到
可是下列软件包取代了它：
  libreadline-gplv2-dev:i386 lib64readline-gplv2-dev:i386
  libreadline-gplv2-dev
E: 软件包 libreadline5-dev 没有可供安装的候选者”&lt;/p&gt;

&lt;p&gt;参考步骤 2 － 用 RVM 安装 Ruby 环境&lt;/p&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nv"&gt;$ &lt;/span&gt;rvm pkg &lt;span class="nb"&gt;install &lt;/span&gt;readline
&lt;span class="nv"&gt;$ &lt;/span&gt;rvm &lt;span class="nb"&gt;install &lt;/span&gt;1.9.2 &lt;span class="nt"&gt;--with-readline-dir&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="nv"&gt;$rvm_path&lt;/span&gt;/usr
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;仍然无法解决
有谁知道怎么解决啊？？？  &lt;/p&gt;</description>
      <author>Jsiguo</author>
      <pubDate>Fri, 02 Dec 2011 16:25:43 +0800</pubDate>
      <link>https://ruby-china.org/topics/311</link>
      <guid>https://ruby-china.org/topics/311</guid>
    </item>
    <item>
      <title>devise 相关问题</title>
      <description>&lt;p&gt;我用 devise 做用户注册及登录当我点击登录时候出现下面错
NameError in Devise::SessionsController#create 网上找了下 有帖说要修改“可以通过修改 /config/initializers/cookie_verification_secret.rb中的secret key 来修正” 
但我在/config/initializers/找不到 cookie_verification_secret.rb 文件 我用的 rails 是 3.1.3
在线求助  &lt;/p&gt;</description>
      <author>Jsiguo</author>
      <pubDate>Sun, 27 Nov 2011 14:21:17 +0800</pubDate>
      <link>https://ruby-china.org/topics/203</link>
      <guid>https://ruby-china.org/topics/203</guid>
    </item>
  </channel>
</rss>
