安装cf-uaac报错 ERROR: Failed to build gem native extension

问题描述

有同学遇到过这种情况吗?windows下安装失败ruby版本是2.1,devkit也安装成功了c:Ruby21>geminstallcf-uaac-r--sourcehttp://rubygems.org/ERROR:Whileexecutinggem...(Gem::RemoteFetcher::FetchError)Errno::ETIMEDOUT:Aconnectionattemptfailedbecausetheconnectedpartyddnotproperlyrespondafteraperiodoftime,orestablishedconnectionfailedbecauseconnectedhosthasfailedtorespond.-connect(2)for"api.rubygems.or"port80(http://api.rubygems.org/gems/cf-uaa-lib-3.1.0.gem)c:Ruby21>geminstallcf-uaac-r--sourcehttp://rubygems.org/Fetching:cf-uaa-lib-3.1.0.gem(100%)Successfullyinstalledcf-uaa-lib-3.1.0Fetching:highline-1.6.21.gem(100%)Successfullyinstalledhighline-1.6.21Fetching:eventmachine-1.0.7.gem(100%)TemporarilyenhancingPATHtoincludeDevKit...Buildingnativeextensions.Thiscouldtakeawhile...ERROR:Errorinstallingcf-uaac:ERROR:Failedtobuildgemnativeextension.C:/Ruby21/bin/ruby.exeextconf.rbcheckingformain()in-lssl...***extconf.rbfailed***CouldnotcreateMakefileduetosomereason,probablylackofnecessarylibrariesand/orheaders.Checkthemkmf.logfileformoredetails.Youmayneedconfigurationoptions.Providedconfigurationoptions:--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:/Ruby21/bin/ruby--with-openssl-config--without-openssl-config--with-pkg-config--without-pkg-config--with-ssl-dir--without-ssl-dir--with-ssl-include--without-ssl-include=${ssl-dir}/include--with-ssl-lib--without-ssl-lib=${ssl-dir}/lib--with-ssllib--without-ssllibC:/Ruby21/lib/ruby/2.1.0/mkmf.rb:456:in`try_do':Thecompilerfailedtogenerateanexecutablefile.(RuntimeError)Youhavetoinstalldevelopmenttoolsfirst.fromC:/Ruby21/lib/ruby/2.1.0/mkmf.rb:541:in`try_link0'fromC:/Ruby21/lib/ruby/2.1.0/mkmf.rb:556:in`try_link'fromC:/Ruby21/lib/ruby/2.1.0/mkmf.rb:742:in`try_func'fromC:/Ruby21/lib/ruby/2.1.0/mkmf.rb:973:in`blockinhave_library'fromC:/Ruby21/lib/ruby/2.1.0/mkmf.rb:918:in`blockinchecking_for'fromC:/Ruby21/lib/ruby/2.1.0/mkmf.rb:351:in`block(2levels)inpostpone'fromC:/Ruby21/lib/ruby/2.1.0/mkmf.rb:321:in`open'fromC:/Ruby21/lib/ruby/2.1.0/mkmf.rb:351:in`blockinpostpone'fromC:/Ruby21/lib/ruby/2.1.0/mkmf.rb:321:in`open'fromC:/Ruby21/lib/ruby/2.1.0/mkmf.rb:347:in`postpone'fromC:/Ruby21/lib/ruby/2.1.0/mkmf.rb:917:in`checking_for'fromC:/Ruby21/lib/ruby/2.1.0/mkmf.rb:968:in`have_library'fromextconf.rb:5:in`blockincheck_libs'fromextconf.rb:5:in`each'fromextconf.rb:5:in`all?'fromextconf.rb:5:in`check_libs'fromextconf.rb:39:in`manual_ssl_config'fromextconf.rb:64:in`<main>'extconffailed,exitcode1GemfileswillremaininstalledinC:/Ruby21/lib/ruby/gems/2.1.0/gems/eventmachine-1.0.7forinspection.ResultsloggedtoC:/Ruby21/lib/ruby/gems/2.1.0/extensions/x86-mingw32/2.1.0/eventmachine-1.0.7/gem_make.out

解决方案

解决方案二:

解决方案三:

解决方案四:
c:Ruby21>geminstallcf-uaac-r--sourcehttp://rubygems.org/Fetching:cf-uaa-lib-3.1.0.gem(100%)Successfullyinstalledcf-uaa-lib-3.1.0Fetching:highline-1.6.21.gem(100%)Successfullyinstalledhighline-1.6.21Fetching:eventmachine-1.0.7.gem(100%)TemporarilyenhancingPATHtoincludeDevKit...Buildingnativeextensions.Thiscouldtakeawhile...ERROR:Errorinstallingcf-uaac:ERROR:Failedtobuildgemnativeextension.C:/Ruby21/bin/ruby.exeextconf.rbcheckingformain()in-lssl...***extconf.rbfailed***CouldnotcreateMakefiledueto60400.comsomereason,probablylackofnecessarylibrariesand/orheaders.Checkthemkmf.logfileformoredetails.Youmayneedconfigurationoptions.Providedconfigurationoptions:--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:/Ruby21/bin/ruby--with-openssl-config--without-openssl-config--with-pkg-config--without-pkg-config--with-ssl-dir--without-ssl-dir--with-ssl-include--without-ssl-include=${ssl-dir}/include--with-ssl-lib--without-ssl-lib=${ssl-dir}/lib--with-ssllib--without-ssllib

时间: 2024-09-10 03:37:27

安装cf-uaac报错 ERROR: Failed to build gem native extension的相关文章

ERROR: Failed to build gem native extension

Ruby on Rails 网站上说,安装好 Ruby 后运行 gem install rails 就好了. 但整个过程折腾了我好几个小时.首先,openSUSE 13.1 自带有 Ruby 2.0.0p-247,我因为打算用 rbenv 管理 Ruby,就草率地把 Ruby 卸载: $ sudo zypper rm ruby 结果 Konsole 没了,YAST 没了,似乎连着 KDE 桌面都被卸掉. 那么就先将就用系统自带的吧.但 gem install rails 报错了:     Bui

(转)ERROR: Failed to build gem native extension

这几天本人在Window server 2003(工作机)中搭建Cucumber环境时(可以看我的另一篇文章:http://www.cnblogs.com/puresoul/archive/2011/11/18/2254407.html),当运行gem install cucumber时,报错:ERROR: Failed to build gem native extension.到处搜寻未果,最后在这里找到了答案:https://github.com/oneclick/rubyinstalle

Android添加glide库报错Error: Failed to resolve: com.android.support:support-annotations:26.0.2的解决

前言 Glide是 Google推荐的图片加载库,它可以支持来自url,Android资源,文件,Uri中的图片加载,同时还支持gif图片的加载,以及各种图片显示前的bitmap处理(例如:圆角图片,圆形图片,高斯模糊,旋转,灰度等等),缓存处理,请求优先级处理,动画处理,缩略图处理,图片大小自定义等等.可谓是非常的强大. 在Glide的使用方面,它和Picasso的使用方法是比较相似的,并且他们的运行机制也有很多相似的地方,很多博文会把二者进行比较,此文也采取一样的方式,通过比较二者来学习他们

arcgis-ArcSDE 做POST报错Error: Operation Failed (-1).

问题描述 ArcSDE 做POST报错Error: Operation Failed (-1). 同一主机:Windows2008 R2 64位,ArcSDE for 11g 64bit 本机Oracle11g64位服务端,Oracle11g 32位客户端,Oracle10g 32为服务端 环境变量 path C:appAdministratorproduct11.2.0client_1bin;E:appAdministratorproduct11.2.0dbhome_1bin;C:Progra

安装nghttp2 报错error: Libtool library used but &amp;#39;LIBTOOL&amp;#39; is undefined

nghttp2 报错error: Libtool library used but 'LIBTOOL' is undefined 如果重新安装libtool和autoconf升级到2.69后,还是报错, 则进行下面的操作: 1,查看aclocal的路径 aclocal --print-ac-dir 显示/usr/local/share/libtool/m4 ls看看里面没有m4文件. 则copy /usr/share/libtool/m4里面的m4文件到此目录下.   2,cd到nghtt2目录

mvn打包报错:Failed to load ApplicationContext

问题描述 mvn打包报错:Failed to load ApplicationContext ApplicationContext中扫描的包: /context:component-scan springmvc.xml中扫描的包: <context:component-scan base-package="com.aa.controller" /> 解决方案 问题已解决,pom配置文件中没有配置加载resources,所以加载不到resources目录下面的配置文件!加上配

nginx-Nginx报错 malloc failed

问题描述 Nginx报错 malloc failed Nginx 版本:1.9.6.1 一开始那几天还好,最近几天经常报内存不足的错误,而且是不稳定重现, 贴上配置,服务器配置:16核32G windows 2008 #user nobody; worker_processes 8; #error_log logs/error.log; #error_log logs/error.log notice; #error_log logs/error.log info; #pid logs/ngin

centos6.5 64位,安装gearman-mysql-udf,报错!

问题描述 centos6.5 64位,安装gearman-mysql-udf,报错! 登入MySQL运行语句注册UDF函数: CREATE FUNCTION gman_do_background RETURNS STRING SONAME 'libgearman_mysql_udf.so'; 这时报错: ERROR 1126 (HY000): Can't open shared library 'libgearman_mysql_udf.so' (errno: 11 libgearman.so.

linux使用wkhtmltopdf报错error while loading shared libraries:

官网提示 linux需要这些动态库.depends on: zlib, fontconfig, freetype, X11 libs (libX11, libXext, libXrender) 在linux上执行 ./wkhtmltopdf –page-size A4 www.baidu.com pdf.pdf 报错   error while loading shared libraries: libXrender.so.1 root@mag-sit:/home/mag-sit/wkhtmlt