<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>bovvic</title>
    <link>https://ruby-china.org/bovvic</link>
    <description/>
    <language>en-us</language>
    <item>
      <title>安装 hiredis 总是不成功</title>
      <description>&lt;p&gt;以致出现如下错误，望各位大大帮忙&lt;/p&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.

        D:/Software/ruby/bin/ruby.exe extconf.rb 
      0 [main] sh 7192 open_stackdumpfile: Dumping stack trace to sh.exe.stackdump
      0 [main] sh 9144 open_stackdumpfile: Dumping stack trace to sh.exe.stackdump
std=c99 -pedantic -c -O3 -fPIC  -Wall -W -Wstrict-prototypes -Wwrite-strings -g -ggdb net.c
/bin/sh: -pedantic: command not found
make: [net.o] Error 127 (ignored)
std=c99 -pedantic -c -O3 -fPIC  -Wall -W -Wstrict-prototypes -Wwrite-strings -g -ggdb hiredis.c
/bin/sh: -pedantic: command not found
make: [hiredis.o] Error 127 (ignored)
std=c99 -pedantic -c -O3 -fPIC  -Wall -W -Wstrict-prototypes -Wwrite-strings -g -ggdb sds.c
/bin/sh: -pedantic: command not found
make: [sds.o] Error 127 (ignored)
std=c99 -pedantic -c -O3 -fPIC  -Wall -W -Wstrict-prototypes -Wwrite-strings -g -ggdb async.c
/bin/sh: -pedantic: command not found
make: [async.o] Error 127 (ignored)
ar rcs libhiredis.a net.o hiredis.o sds.o async.o
D:\Software\ruby\DevKit\mingw\bin\ar.exe: net.o: No such file or directory
make: *** [libhiredis.a] Error 1
creating Makefile

make
generating hiredis_ext-i386-mingw32.def
compiling connection.c
connection.c:1:24: fatal error: sys/socket.h: No such file or directory
compilation terminated.
make: *** [connection.o] Error 1


Gem files will remain installed in D:/Software/ruby/lib/ruby/gems/1.9.1/gems/hiredis-0.4.5 for inspection.
Results logged to D:/Software/ruby/lib/ruby/gems/1.9.1/gems/hiredis-0.4.5/ext/hiredis_ext/gem_make.out
An error occurred while installing hiredis (0.4.5), and Bundler cannot continue.
Make sure that `gem install hiredis -v '0.4.5'` succeeds before bundling.
&lt;/code&gt;&lt;/pre&gt;</description>
      <author>bovvic</author>
      <pubDate>Sat, 16 Feb 2013 23:10:03 +0800</pubDate>
      <link>https://ruby-china.org/topics/8711</link>
      <guid>https://ruby-china.org/topics/8711</guid>
    </item>
    <item>
      <title>下载 Bindiry 大大的 demo 把玩，尝试更改 Mongoid 版本到最新，出现如下错误，求教</title>
      <description>&lt;p&gt;俺是菜鸟，很多不懂，多多指教&lt;/p&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;D:\Software\webapps\demo&amp;gt;rails server
=&amp;gt; Booting WEBrick
=&amp;gt; Rails 3.1.3 application starting in development on http://0.0.0.0:3000
=&amp;gt; Call with -d to detach
=&amp;gt; Ctrl-C to shutdown server
Exiting
D:/Software/Ruby/lib/ruby/gems/1.9.1/gems/carrierwave-0.5.8/lib/carrierwave/uplo
ader/configuration.rb:91:in `eval': cannot load such file -- mongo (LoadError)
        from D:/Software/Ruby/lib/ruby/gems/1.9.1/gems/activesupport-3.1.3/lib/a
ctive_support/dependencies.rb:240:in `block in require'
        from D:/Software/Ruby/lib/ruby/gems/1.9.1/gems/activesupport-3.1.3/lib/a
ctive_support/dependencies.rb:223:in `block in load_dependency'
        from D:/Software/Ruby/lib/ruby/gems/1.9.1/gems/activesupport-3.1.3/lib/a
ctive_support/dependencies.rb:640:in `new_constants_in'
        from D:/Software/Ruby/lib/ruby/gems/1.9.1/gems/activesupport-3.1.3/lib/a
ctive_support/dependencies.rb:223:in `load_dependency'
        from D:/Software/Ruby/lib/ruby/gems/1.9.1/gems/activesupport-3.1.3/lib/a
ctive_support/dependencies.rb:240:in `require'
        from D:/Software/Ruby/lib/ruby/gems/1.9.1/gems/carrierwave-mongoid-0.1.0
/lib/carrierwave/storage/grid_fs.rb:2:in `&amp;lt;top (required)&amp;gt;'
        from (eval):1:in `storage'
        from D:/Software/Ruby/lib/ruby/gems/1.9.1/gems/carrierwave-0.5.8/lib/car
rierwave/uploader/configuration.rb:91:in `eval'
        from D:/Software/Ruby/lib/ruby/gems/1.9.1/gems/carrierwave-0.5.8/lib/car
rierwave/uploader/configuration.rb:91:in `storage'
        from D:/Software/webapps/demo/config/initializers/carrierwave.rb:2:in `b
lock in &amp;lt;top (required)&amp;gt;'
        from D:/Software/Ruby/lib/ruby/gems/1.9.1/gems/carrierwave-0.5.8/lib/car
rierwave/uploader/configuration.rb:118:in `configure'
        from D:/Software/Ruby/lib/ruby/gems/1.9.1/gems/carrierwave-0.5.8/lib/car
rierwave.rb:21:in `configure'
        from D:/Software/webapps/demo/config/initializers/carrierwave.rb:1:in `&amp;lt;
top (required)&amp;gt;'
        from D:/Software/Ruby/lib/ruby/gems/1.9.1/gems/activesupport-3.1.3/lib/a
ctive_support/dependencies.rb:234:in `load'
        from D:/Software/Ruby/lib/ruby/gems/1.9.1/gems/activesupport-3.1.3/lib/a
ctive_support/dependencies.rb:234:in `block in load'
        from D:/Software/Ruby/lib/ruby/gems/1.9.1/gems/activesupport-3.1.3/lib/a
ctive_support/dependencies.rb:223:in `block in load_dependency'
        from D:/Software/Ruby/lib/ruby/gems/1.9.1/gems/activesupport-3.1.3/lib/a
ctive_support/dependencies.rb:640:in `new_constants_in'
        from D:/Software/Ruby/lib/ruby/gems/1.9.1/gems/activesupport-3.1.3/lib/a
ctive_support/dependencies.rb:223:in `load_dependency'
        from D:/Software/Ruby/lib/ruby/gems/1.9.1/gems/activesupport-3.1.3/lib/a
ctive_support/dependencies.rb:234:in `load'
        from D:/Software/Ruby/lib/ruby/gems/1.9.1/gems/railties-3.1.3/lib/rails/
engine.rb:556:in `block (2 levels) in &amp;lt;class:Engine&amp;gt;'
        from D:/Software/Ruby/lib/ruby/gems/1.9.1/gems/railties-3.1.3/lib/rails/
engine.rb:555:in `each'
        from D:/Software/Ruby/lib/ruby/gems/1.9.1/gems/railties-3.1.3/lib/rails/
engine.rb:555:in `block in &amp;lt;class:Engine&amp;gt;'
        from D:/Software/Ruby/lib/ruby/gems/1.9.1/gems/railties-3.1.3/lib/rails/
initializable.rb:30:in `instance_exec'
        from D:/Software/Ruby/lib/ruby/gems/1.9.1/gems/railties-3.1.3/lib/rails/
initializable.rb:30:in `run'
        from D:/Software/Ruby/lib/ruby/gems/1.9.1/gems/railties-3.1.3/lib/rails/
initializable.rb:55:in `block in run_initializers'
        from D:/Software/Ruby/lib/ruby/gems/1.9.1/gems/railties-3.1.3/lib/rails/
initializable.rb:54:in `each'
        from D:/Software/Ruby/lib/ruby/gems/1.9.1/gems/railties-3.1.3/lib/rails/
initializable.rb:54:in `run_initializers'
        from D:/Software/Ruby/lib/ruby/gems/1.9.1/gems/railties-3.1.3/lib/rails/
application.rb:96:in `initialize!'
        from D:/Software/Ruby/lib/ruby/gems/1.9.1/gems/railties-3.1.3/lib/rails/
railtie/configurable.rb:30:in `method_missing'
        from D:/Software/webapps/demo/config/environment.rb:5:in `&amp;lt;top (required
)&amp;gt;'
        from D:/Software/webapps/demo/config.ru:3:in `require'
        from D:/Software/webapps/demo/config.ru:3:in `block in &amp;lt;main&amp;gt;'
        from D:/Software/Ruby/lib/ruby/gems/1.9.1/gems/rack-1.3.10/lib/rack/buil
der.rb:51:in `instance_eval'
        from D:/Software/Ruby/lib/ruby/gems/1.9.1/gems/rack-1.3.10/lib/rack/buil
der.rb:51:in `initialize'
        from D:/Software/webapps/demo/config.ru:in `new'
        from D:/Software/webapps/demo/config.ru:in `&amp;lt;main&amp;gt;'
        from D:/Software/Ruby/lib/ruby/gems/1.9.1/gems/rack-1.3.10/lib/rack/buil
der.rb:40:in `eval'
        from D:/Software/Ruby/lib/ruby/gems/1.9.1/gems/rack-1.3.10/lib/rack/buil
der.rb:40:in `parse_file'
        from D:/Software/Ruby/lib/ruby/gems/1.9.1/gems/rack-1.3.10/lib/rack/serv
er.rb:200:in `app'
        from D:/Software/Ruby/lib/ruby/gems/1.9.1/gems/railties-3.1.3/lib/rails/
commands/server.rb:46:in `app'
        from D:/Software/Ruby/lib/ruby/gems/1.9.1/gems/rack-1.3.10/lib/rack/serv
er.rb:304:in `wrapped_app'
        from D:/Software/Ruby/lib/ruby/gems/1.9.1/gems/rack-1.3.10/lib/rack/serv
er.rb:254:in `start'
        from D:/Software/Ruby/lib/ruby/gems/1.9.1/gems/railties-3.1.3/lib/rails/
commands/server.rb:70:in `start'
        from D:/Software/Ruby/lib/ruby/gems/1.9.1/gems/railties-3.1.3/lib/rails/
commands.rb:54:in `block in &amp;lt;top (required)&amp;gt;'
        from D:/Software/Ruby/lib/ruby/gems/1.9.1/gems/railties-3.1.3/lib/rails/
commands.rb:49:in `tap'
        from D:/Software/Ruby/lib/ruby/gems/1.9.1/gems/railties-3.1.3/lib/rails/
commands.rb:49:in `&amp;lt;top (required)&amp;gt;'
        from script/rails:6:in `require'
        from script/rails:6:in `&amp;lt;main&amp;gt;'
&lt;/code&gt;&lt;/pre&gt;</description>
      <author>bovvic</author>
      <pubDate>Sun, 10 Feb 2013 17:52:52 +0800</pubDate>
      <link>https://ruby-china.org/topics/8664</link>
      <guid>https://ruby-china.org/topics/8664</guid>
    </item>
  </channel>
</rss>
