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

qimiao2014 2015-06-30 04:59:22
有同学遇到过这种情况吗?windows下安装失败

ruby版本是2.1, devkit 也安装成功了
c:\Ruby21>gem install cf-uaac -r --source http://rubygems.org/
ERROR: While executing gem ... (Gem::RemoteFetcher::FetchError)
Errno::ETIMEDOUT: A connection attempt failed because the connected party d
d not properly respond after a period of time, or established connection failed
because connected host has failed to respond. - connect(2) for "api.rubygems.or
" port 80 (http://api.rubygems.org/gems/cf-uaa-lib-3.1.0.gem)

c:\Ruby21>gem install cf-uaac -r --source http://rubygems.org/
Fetching: cf-uaa-lib-3.1.0.gem (100%)
Successfully installed cf-uaa-lib-3.1.0
Fetching: highline-1.6.21.gem (100%)
Successfully installed highline-1.6.21
Fetching: eventmachine-1.0.7.gem (100%)
Temporarily enhancing PATH to include DevKit...
Building native extensions. This could take a while...
ERROR: Error installing cf-uaac:
ERROR: Failed to build gem native extension.

C:/Ruby21/bin/ruby.exe extconf.rb
checking for main() in -lssl... *** 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:/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
C:/Ruby21/lib/ruby/2.1.0/mkmf.rb:456:in `try_do': The compiler failed to generat
e an executable file. (RuntimeError)
You have to install development tools first.
from C:/Ruby21/lib/ruby/2.1.0/mkmf.rb:541:in `try_link0'
from C:/Ruby21/lib/ruby/2.1.0/mkmf.rb:556:in `try_link'
from C:/Ruby21/lib/ruby/2.1.0/mkmf.rb:742:in `try_func'
from C:/Ruby21/lib/ruby/2.1.0/mkmf.rb:973:in `block in have_library'
from C:/Ruby21/lib/ruby/2.1.0/mkmf.rb:918:in `block in checking_for'
from C:/Ruby21/lib/ruby/2.1.0/mkmf.rb:351:in `block (2 levels) in postpo
ne'
from C:/Ruby21/lib/ruby/2.1.0/mkmf.rb:321:in `open'
from C:/Ruby21/lib/ruby/2.1.0/mkmf.rb:351:in `block in postpone'
from C:/Ruby21/lib/ruby/2.1.0/mkmf.rb:321:in `open'
from C:/Ruby21/lib/ruby/2.1.0/mkmf.rb:347:in `postpone'
from C:/Ruby21/lib/ruby/2.1.0/mkmf.rb:917:in `checking_for'
from C:/Ruby21/lib/ruby/2.1.0/mkmf.rb:968:in `have_library'
from extconf.rb:5:in `block in check_libs'
from extconf.rb:5:in `each'
from extconf.rb:5:in `all?'
from extconf.rb:5:in `check_libs'
from extconf.rb:39:in `manual_ssl_config'
from extconf.rb:64:in `<main>'

extconf failed, exit code 1

Gem files will remain installed in C:/Ruby21/lib/ruby/gems/2.1.0/gems/eventmachi
ne-1.0.7 for inspection.
Results logged to C:/Ruby21/lib/ruby/gems/2.1.0/extensions/x86-mingw32/2.1.0/eve
ntmachine-1.0.7/gem_make.out
...全文
6444 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
huazhu60400 2016-05-26
  • 打赏
  • 举报
回复
c:\Ruby21>gem install cf-uaac -r --source http://rubygems.org/ Fetching: cf-uaa-lib-3.1.0.gem (100%) Successfully installed cf-uaa-lib-3.1.0 Fetching: highline-1.6.21.gem (100%) Successfully installed highline-1.6.21 Fetching: eventmachine-1.0.7.gem (100%) Temporarily enhancing PATH to include DevKit... Building native extensions. This could take a while... ERROR: Error installing cf-uaac: ERROR: Failed to build gem native extension. C:/Ruby21/bin/ruby.exe extconf.rb checking for main() in -lssl... *** extconf.rb failed *** Could not create Makefile due to 60400.com 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:/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
推荐算法系统CF协同过滤用户行为挖掘 :一、课程优势本课程有陈敬雷老师的清华大学出版社配套新书教材《分布式机器学习实战》人工智能科学与技术丛书,新书配合此实战课程结合学习,一静一动,互补高效学习!本课程由互联网一线知名大牛陈敬雷老师全程亲自授课,技术前沿热门,是真正的互联网工业级实战项目。二、课程简介       协同过滤 (Collaborative Filtering, 简称 CF)作为经典的推荐算法之一,在电商推荐推荐系统中扮演着非常重要的角色,比如经典的推荐为如看了又看、买了又买、看了又买、购买此商品的用户还相同购买等都是使用了协同过滤算法。尤其当你网站积累了大量的用户行为数据时,基于协同过滤的算法从实战经验上对比其他算法,效果是最好的。基于协同过滤在电商网站上用到的用户行为有用户浏览商品行为,加入购物车行为,购买行为等,这些行为是最为宝贵的数据资源。比如拿浏览行为来做的协同过滤推荐结果叫看了又看,全称是看过此商品的用户还看了哪些商品。拿购买行为来计算的叫买了又买,全称叫买过此商品的用户还买了。如果同时拿浏览记录和购买记录来算的,并且浏览记录在前,购买记录在后,叫看了又买,全称是看过此商品的用户最终购买。如果是购买记录在前,浏览记录在后,叫买了又看,全称叫买过此商品的用户还看了。在电商网站中,这几个是经典的协同过滤算法的应用。     下面就给大家直接深度解密推荐系统的最核心精髓部分!!!三、老师介绍陈敬雷  充电了么创始人,CEO兼CTO陈敬雷,北京充电了么科技有限公司创始人,CEO兼CTO,十几年互联网从业经验,曾就职于用友、中软、凡客、乐蜂网(唯品会)、猎聘网、人民日报(灵思云途)、北京万朝科技,曾任架构师、首席技术官、首席科学家等职务,对业务领域B端、C端、电商、职场社交招聘、内容文娱、营销行业都有着丰富的经验,在技术领域,尤其在大数据和人工智能方向有丰富的算法工程落地实战经验,其中在猎聘网任职期间主导的推荐算法系统项目获得公司优秀项目奖,推荐效果得到5倍的提升。陈敬雷著有清华大学出版社两本人工智能书籍,分别是《分布式机器学习实战(人工智能科学与技术丛书)》已出版、《自然语言处理原理与实战(人工智能科学与技术丛书)》。目前专注于大数据和人工智能驱动的上班族在线教育行业,研发了充电了么app和网站,用深度学习算法、nlp、推荐引擎等技术来高效提升在线学习效率。 

547

社区成员

发帖
与我相关
我的任务
社区描述
Cloud Foundry是业界第一个开源PaaS云平台,它支持多种框架、语言、运行时环境、云平台及应用服务,使开发人员能够在几秒钟内进行应用程序的部署和扩展,无需担心任何基础架构的问题。
社区管理员
  • Cloud Foundry社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧