簡體   English   中英

extconf.rb失敗(Ruby On Rails)

[英]extconf.rb failed (Ruby On Rails)

我是紅寶石和鐵軌的新手。 我已經成功在Rails 4上設置了ruby 2(在Windows 7上)。 我在基於Rails的git項目上克隆了一個ruby(thingspeak- https://github.com/iobridge/thingspeak/blob/master/README.textile )。 使用命令行進入項目目錄並運行“捆綁安裝”。 下載並安裝了一些捆綁軟件,然后出現以下錯誤-

::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension
.

    c:/row/Ruby200/bin/ruby.exe extconf.rb
checking for CLOCK_MONOTONIC in time.h... yes
checking for clockid_t in time.h... yes
checking for clock_gettime() in -lrt... no
checking for t_open() in -lnsl... no
checking for socket() in -lsocket... no
checking for poll() in poll.h... no
checking for getaddrinfo() in sys/types.h,sys/socket.h,netdb.h... no
getaddrinfo required
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary
libraries and/or headers.  Check the mkmf.log file for more details.  You may
need configuration options.

Provided configuration options:
        --with-opt-dir
        --without-opt-dir
        --with-opt-include
        --without-opt-include=${opt-dir}/include
        --with-opt-lib
        --without-opt-lib=${opt-dir}/lib
        --with-make-prog
        --without-make-prog
        --srcdir=.
        --curdir
        --ruby=c:/row/Ruby200/bin/ruby
        --with-rtlib
        --without-rtlib
        --with-nsllib
        --without-nsllib
        --with-socketlib
        --without-socketlib

Gem files will remain installed in c:/row/Ruby200/lib/ruby/gems/2.0.0/gems/kgio-
2.8.1 for inspection.
Results logged to c:/row/Ruby200/lib/ruby/gems/2.0.0/gems/kgio-2.8.1/ext/kgio/ge
m_make.out
An error occurred while installing kgio (2.8.1), and Bundler cannot continue.
Make sure that `gem install kgio -v '2.8.1'` succeeds before bundling.

關於它的含義以及如何解決的任何想法?

無法在此處編譯的kgio gem在Windows上不起作用。 如果你對此有何評論在各行它可以工作Gemfile ,但在不同的其他地方可能會失敗。

通常,您要安裝的Rails應用似乎根本沒有在Windows上進行過測試,因此您可能想使用支持更好的操作系統來安裝它。 自述文件在這里提到了Ubuntu。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM