首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >如何安装社交媒体

如何安装社交媒体
EN

Stack Overflow用户
提问于 2016-01-29 00:25:18
回答 2查看 171关注 0票数 0

我正在尝试将Social Stream gem集成到我的Rails应用程序中。但是,它会返回我已经拥有的依赖项列表,并声明需要它们。如何让get在运行bundle update时在get文件中被识别?

代码语言:javascript
复制
You need to install git to be able to use gems from git repositories. For help
installing git, please refer to GitHub's tutorial at
https://help.github.com/articles/set-up-git

我还查看了github的网页,但它只解释了如何设置git,我已经这样做了。还有另一条错误消息,指出ruby文件夹或项目中没有安装git文件:

代码语言:javascript
复制
C:\Ruby22-x64>gem install social_stream-base
Temporarily enhancing PATH to include DevKit...
Building native extensions.  This could take a while...
ERROR:  Error installing social_stream-base:
    ERROR: Failed to build gem native extension.

C:/Ruby22-x64/bin/ruby.exe -r ./siteconf20160128-17192-1djdrcu.rb extconf.rb
The system cannot find the path specified.
checking for libxml/parser.h... no
-----
libxml2 is missing.  please visit    http://nokogiri.org/tutorials/installing_nokogiri.html for help with installing dependencies.
-----
*** 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:/Ruby22-x64/bin/$(RUBY_BASE_NAME)
    --with-zlib-dir
    --without-zlib-dir
    --with-zlib-include
    --without-zlib-include=${zlib-dir}/include
    --with-zlib-lib
    --without-zlib-lib=${zlib-dir}/lib
    --with-iconv-dir
    --without-iconv-dir
    --with-iconv-include
    --without-iconv-include=${iconv-dir}/include
    --with-iconv-lib
    --without-iconv-lib=${iconv-dir}/lib
    --with-xml2-dir
    --without-xml2-dir
    --with-xml2-include
    --without-xml2-include=${xml2-dir}/include
    --with-xml2-lib
    --without-xml2-lib=${xml2-dir}/lib
    --with-xslt-dir
    --without-xslt-dir
    --with-xslt-include
    --without-xslt-include=${xslt-dir}/include
    --with-xslt-lib
    --without-xslt-lib=${xslt-dir}/lib
    --with-libxslt-config
    --without-libxslt-config
    --with-pkg-config
    --without-pkg-config
    --with-libxml-2.0-config
    --without-libxml-2.0-config
    --with-pkg-config
    --without-pkg-config
    --with-libiconv-config
    --without-libiconv-config
    --with-pkg-config
    --without-pkg-config

    extconf failed, exit code 1

    Gem files will remain installed in C:/Ruby22-   x64/lib/ruby/gems/2.2.0/gems/nokogiri-1.5.11 for inspection.
    Results logged to C:/Ruby22-x64/lib/ruby/gems/2.2.0/extensions/x64-  mingw32/2.2.0/nokogiri-1.5.11/gem_make.out

我怎样才能让git被看到呢?

EN

回答 2

Stack Overflow用户

发布于 2016-01-29 06:47:17

好吧,捆绑包更新不会为你做任何事情,捆绑包安装是你需要做的,但正如所发现的,这是一个错误。更新将仅在已安装的内容上运行。

我还注意到,当运行'gem install social_stream-base‘时,当使用bundle时,正确的方法是将gem 'social_stream-base’添加到您的gemfile中,然后运行bundle install。为了完整起见,我添加了它。

根据您的错误消息,存在对Nokogiri的依赖。这里有一个如何在Windows上安装它的链接:http://www.nokogiri.org/tutorials/installing_nokogiri.html#windows

你将需要安装Nokogiri,而且你可能会面临许多额外的问题,这是我的经验,当试图让这些东西在Windows中工作时,这是正常的。如果您尝试排除故障但无法解决问题,那么它将返回到Stack O。

但我主要关心的是:

:我试着查看了社交流媒体(http://social-stream.dit.upm.es/started)的安装说明,它们已经关闭,我查看了项目的问题页面,似乎Rails 4目前不支持社交流媒体。

就你的git问题而言,这不会让你进步,但为了完整,我会推荐你去Can't run bundle update on Windows,它有各种各样的修复。

票数 0
EN

Stack Overflow用户

发布于 2016-01-31 00:03:33

我已经决定为我正在构建的社交网络应用程序制作自己的宝石。由于社交流不是为rails 4.x构建的,我想我不会使用它。谢谢。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/35066699

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档