2011-03-16 114 views
1

我想運行rails應用程序。我已經在我的電腦上安裝了導軌3 ..當嘗試使用Rails服務器命令來運行它,它要求我在命令提示符下鍵入「包安裝」:ROR錯誤:無法構建gem原生擴展。 (Gem :: Installer :: ExtensionBuildError)

C:\Users\Webyana Tech\Desktop\Rails3\wy_editor>bundle install 
Fetching source index for http://rubygems.org/ 

Fetching source index for http://gems.github.com/ 

Using rake (0.8.7) 

Using ZenTest (4.5.0) 

Using RubyInline (3.8.6) 

Using abstract (1.0.0) 

Using activesupport (3.0.0) 

Using builder (2.1.2) 

Using i18n (0.4.2) 

Using activemodel (3.0.0) 

Using erubis (2.6.6) 

Using rack (1.2.2) 

Using rack-mount (0.6.13) 

Using rack-test (0.5.7) 

Using tzinfo (0.3.25) 

Using actionpack (3.0.0) 

Using mime-types (1.16) 

Using polyglot (0.3.1) 

Using treetop (1.4.9) 

Using mail (2.2.15) 

Using actionmailer (3.0.0) 

Using arel (1.0.1) 

Using activerecord (3.0.0) 

Using activeresource (3.0.0) 

Using addressable (2.2.4) 

Using crack (0.1.8) 

Installing eventmachine (0.12.10) with native extensions C:/Ruby/lib/ruby/site_r 
uby/1.9.1/rubygems/installer.rb:529:in `rescue in block in build_extensions': 
ERROR: Failed to build gem native extension. (Gem::Installer::ExtensionBuildError) 


     C:/Ruby/bin/ruby.exe extconf.rb 
checking for rb_trap_immediate in ruby.h,rubysig.h... no 

checking for rb_thread_blocking_region()... 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... no 

checking for rb_thread_check_ints()... yes 

checking for rb_time_new()... yes 

checking for windows.h... yes 

checking for winsock.h... yes 

checking for main() in -lkernel32... yes 

checking for main() in -lrpcrt4... yes 

checking for main() in -lgdi32... yes 

checking for main() in -lssl... no 

creating Makefile 

make 
g++ -I. -IC:/Ruby/include/ruby-1.9.1/i386-mingw32 -I/C/Ruby/include/ruby-1.9.1/r 
uby/backward -I/C/Ruby/include/ruby-1.9.1 -I. -DBUILD_FOR_RUBY -DHAVE_RB_THREAD_ 
BLOCKING_REGION -DHAVE_TBR -DHAVE_RB_THREAD_CHECK_INTS -DHAVE_RB_TIME_NEW -DOS_W 
IN32 -DHAVE_WINDOWS_H -DHAVE_WINSOCK_H -DWITHOUT_SSL -DHAVE_MAKE_PAIR -O3 -g 
-Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings - 
Wno-missing-field-initializers -Wno-long-long -o binder.o -c binder.cpp 
In file included from project.h:137:0, 
       from binder.cpp:20: 
binder.h:35:34: warning: type qualifiers ignored on function return type 
In file included from project.h:138:0, 
       from binder.cpp:20: 

請幫助我..我試着用搜索引擎爲此..但無法找到任何與上述相同的東西...我想事件機器未能安裝...

+0

您錯過了某種依賴關係。我自己不是Windows用戶......所以,我不確定缺少什麼。 – raidfive

+0

是否因爲eventmachine安裝不正確? – user662539

+0

爲什麼不把它安裝在Ubuntu vm中? – ecoologic

回答

0

我在做一個「捆綁安裝」時遇到確切的錯誤信息。現在你需要單獨安裝一箇舊版本的「eventmachine」。輸入「gem install eventmachine -v 0.12.8」。它爲我成功安裝。

@ user662539:那麼,我確實有「eventmachine(0.12.8)」安裝成功,但我仍然無法啓動瘦服務器。我收到了一條錯誤消息,提示「此應用程序啓動失敗,因爲找不到msvcrt-ruby18.dll。重新安裝應用程序可能會解決此問題。」。即使我複製了 「的msvcrt-ruby18.dll」 從 「\ Ruby187 \ BIN」 到 「\ Ruby192 \ BIN」,我得到了關於 「分割故障」 另一條錯誤消息。

所以我恢復我的紅寶石版本回到紅寶石1.8.7(2011-02-18 patchlevel 334)[i386-mingw32]並能夠啓動瘦服務器。

對不起,我無法在這一個幫助你,但這些我的新發現。

+0

我嘗試使用上面的命令安裝舊版本的eventmachine ..但嘗試捆綁安裝時得到了同樣的錯誤..我使用Windows 7和Ruby 3 1.9.2與rails 3 – user662539

+0

最後,我可以安裝eventmachine 1.0.0.beta.2)在runy 1.9.2與rails 3 ..和所有的捆綁安裝正確...但是當我嘗試 – user662539

相關問題