<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>lofxf (小风)</title>
    <link>https://ruby-china.org/lofxf</link>
    <description></description>
    <language>en-us</language>
    <item>
      <title>OSX 10.10.2 安装 eventmachine 失败</title>
      <description>&lt;p&gt;ruby 是用 rvm 安装的，有高手碰到过这样的问题吗：&lt;/p&gt;

&lt;p&gt;错误信息：&lt;/p&gt;

&lt;p&gt;gem install eventmachine
Building native extensions.  This could take a while...
ERROR:  Error installing eventmachine:
    ERROR: Failed to build gem native extension.&lt;/p&gt;

&lt;p&gt;/Users/FXF/.rvm/rubies/ruby-2.0.0-p643/bin/ruby -r ./siteconf20150413-19289-1s2fvqv.rb extconf.rb
checking for rb_trap_immediate in ruby.h,rubysig.h... no
checking for rb_thread_blocking_region()... yes
checking for ruby/thread.h... yes
checking for rb_thread_call_without_gvl() in ruby/thread.h... yes
checking for inotify_init() in sys/inotify.h... no
checking for __NR_inotify_init in sys/syscall.h... no
checking for writev() in sys/uio.h... yes
checking for rb_thread_fd_select()... yes
checking for rb_fdset_t in ruby/intern.h... yes
checking for rb_wait_for_single_fd()... yes
checking for rb_enable_interrupt()... no
checking for rb_time_new()... yes
checking for sys/event.h... yes
checking for sys/queue.h... yes
checking for clock_gettime()... no
checking for gethrtime()... no
creating Makefile&lt;/p&gt;

&lt;p&gt;make "DESTDIR=" clean&lt;/p&gt;

&lt;p&gt;make "DESTDIR="
compiling binder.cpp
In file included from binder.cpp:20:
In file included from ./project.h:29:
In file included from /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/iostream:38:
In file included from /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/ios:216:
In file included from /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/&lt;strong&gt;locale:15:
In file included from /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/string:439:
In file included from /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/algorithm:628:
In file included from /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/memory:604:
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/iterator:341:10: fatal error: '&lt;/strong&gt;debug' file not found
#include &amp;lt;__debug&amp;gt;
         ^
1 error generated.
make: *** [binder.o] Error 1&lt;/p&gt;

&lt;p&gt;make failed, exit code 2&lt;/p&gt;

&lt;p&gt;Gem files will remain installed in /Users/FXF/.rvm/gems/ruby-2.0.0-p643/gems/eventmachine-1.0.7 for inspection.
Results logged to /Users/FXF/.rvm/gems/ruby-2.0.0-p643/extensions/x86_64-darwin-14/2.0.0/eventmachine-1.0.7/gem_make.out&lt;/p&gt;</description>
      <author>lofxf</author>
      <pubDate>Mon, 13 Apr 2015 14:11:36 +0800</pubDate>
      <link>https://ruby-china.org/topics/25120</link>
      <guid>https://ruby-china.org/topics/25120</guid>
    </item>
    <item>
      <title>正则表达式匹配问题，对两个变量进行匹配</title>
      <description>&lt;p&gt;m="abcde"
n="abc"
如何对 m 和 n 进行匹配
类似于 m =~ n
只需判断 m 和 n 有相似部分即可&lt;/p&gt;</description>
      <author>lofxf</author>
      <pubDate>Wed, 11 Mar 2015 16:51:47 +0800</pubDate>
      <link>https://ruby-china.org/topics/24596</link>
      <guid>https://ruby-china.org/topics/24596</guid>
    </item>
  </channel>
</rss>
