[英]gem install 'feedzirra' and 'curb' error in Windows 7
Bundle Install Issue on Windows-7 (64-bit). Windows-7(64位)上的捆绑安装问题。
I need to install ' feedzirra ' gem. 我需要安装“ feedzirra ” gem。 For this, its dependent gem ' curb ' is to be installed.
为此,将安装其依赖的宝石“ 遏制 ”。
So at the time of bundle install, I got this error:- 因此,在安装软件包时,我收到此错误:-
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension"
Gem :: Installer :: ExtensionBuildError:错误:无法构建gem本机扩展”
Then I searched over internet and found that ''curl' library is essential for installing this gem. 然后我通过互联网搜索,发现“ curl”库对于安装此gem必不可少。
But I checked that 'curl' is installed in my system, as when I run command "curl http://www.example.com ", it shows me some result(It means 'curl' is installed in my system.). 但是我检查了系统中是否安装了“ curl”,因为当我运行命令“ curl http://www.example.com ”时,它会向我显示一些结果(这意味着“ curl”已安装在系统中。)。 But not able to use it for installing 'curb' gem.
但无法将其用于安装“路边”宝石。
Then I searched and found to installed curl(curl-7.31.0-devel-mingw64) and then install "curb" gem with (--with-curl-dir) or (--with-curl-lib and --with-curl-include). 然后我搜索并发现安装了curl(curl-7.31.0-devel-mingw64),然后使用(--with-curl-dir)或(---with-curl-lib和--with-卷曲-包括)。 But again getting the same error while running the following command:-
但是在运行以下命令时再次遇到相同的错误:
gem install curb --with-curl-dir="C:/curl-7.31.0-devel-mingw64"
gem install curb --with-curl-dir =“ C:/curl-7.31.0-devel-mingw64”
gem install curb --with-curl-lib="curl_lib_url" and --with-curl-include="curl_include_url"
gem install遏制--with-curl-lib =“ curl_lib_url”和--with-curl-include =“ curl_include_url”
I am using following configuration:- 我正在使用以下配置:-
I don't know why I am getting error. 我不知道为什么我会出错。 And please do not suggest to use Ubuntu;
而且,请不要建议使用Ubuntu。 it can be solved by using libcurl library in Ubuntu but I can't switch to Ubuntu.
可以通过在Ubuntu中使用libcurl库来解决,但是我不能切换到Ubuntu。
You're missing an extra double dash before '--with' options. 您在'--with'选项前缺少一个额外的双破折号。 The command should be
gem install curb -- --with-curl-lib="curl_lib_url" --with-curl-include="curl_include_url"
. 该命令应为
gem install curb -- --with-curl-lib="curl_lib_url" --with-curl-include="curl_include_url"
。 Note that the '--with-curl-dir' option didn't work for me as I kept getting the 'curl.h or libcurl not found' error. 请注意,“-with-curl-dir”选项对我不起作用,因为我一直收到“ curl.h或libcurl找不到”错误。
Ruby 1.9.x is 32bit only, so you'll have to use the 32bit package (x86) of libcurl. Ruby 1.9.x仅是32位的,因此您必须使用libcurl的32位软件包(x86)。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.