草庐IT

INSTALL_FAILED_ALREADY_EXISTS

全部标签

ruby-on-rails - 找不到有效的 gem : certificate verify failed

我正在尝试建立到远程服务器的ssh隧道,如下所述:SSHfromHerokuintoremoteserverwithMysqlDb但是我只是想下载gems就挂断了。我补充说:#file:Gemfile...gem'net-ssh-gateway','~>1.2.0'但是当我执行bundleinstall(或者甚至只是在命令行上执行geminstallnet-ssh)时,我得到:ERROR:Couldnotfindavalidgem'net-ssh'(>=0),hereiswhy:Unabletodownloaddatafromhttps://rubygems.org/-SSL_conn

ruby-on-rails - Rails 5 - 找不到生成器 'rspec:install'

在我的Rails5.0.0应用程序中,我将以下内容添加到我的Gemfile中:group:development,:testdogem'byebug',platform::mrigem'rspec-rails','~>3.5','>=3.5.2'end我运行了bundleinstall。至此gem安装成功。然后我跑了以下:railsgeneraterspec:install但我收到一条错误消息:RunningviaSpringpreloaderinprocess8893Couldnotfindgenerator'rspec:install'.Maybeyoumeant'css:asse

ruby-on-rails - pg gem install 失败说版本太旧?

我正在尝试为Ruby安装pg(PostreSQL)gem。我收到此错误:postgres/9.2-pgdg/bin/64/pg_configUsingconfigvaluesfrom/location/to/install/postgres/9.2-pgdg/bin/64/pg_configcheckingforlibpq-fe.h...yescheckingforlibpq/libpq-fs.h...yescheckingforpg_config_manual.h...yescheckingforPQconnectdb()in-lpq...yescheckingforPQconnec

ruby - 无法通过 rvm bundle install 安装 ffi 1.9.0 - OSX 10.8.4

在带有自制软件、xcode(带有命令行工具)和libffi的MacbookPro上使用OSX10.8.4。我已经安装了rvm和ruby​​-1.9.3-p448,并且有一个名为omega.ecoop的gemset。有一个gemfile列出了该项目所需的gem。但是,在运行bundlecheck后,我无法安装它们:Bundlercan'tsatisfyyourGemfile'sdependencies.这是正确的,因为它们没有安装。所以我使用:bundleinstall产生以下内容:Sams-MacBook-Pro:ecoopSam$bundleinstallFetchinggemmet

ruby - 为什么我的 cocoapods post_install Hook 没有更新我的预处理器宏?

几天来,我一直在四处寻找,试图弄清楚为什么我的post_installHook没有产生我期望的输出。这是我的Podfile:source'https://github.com/CocoaPods/Specs.git'target"SCCommon"doplatform:ios,"6.0"pod'AFNetworking','~>1.2.1'pod'Mantle','~>1.3'pod'PubNub','3.5.5'endtarget"SCCommon-TestHarness"doplatform:ios,"6.0"#inhibit_all_warnings!pod'SCCommon',

ruby-on-rails - bundle install --without production 有什么作用?

我看到有人在使用它,我自己也按照指示使用了它。我只是不真正了解它的实际作用。我完全理解bundleinstall部分,但不理解--withoutproduction部分。它有什么作用,我为什么要使用它? 最佳答案 如果你的Gemfile中有一个组,比如group:productiondogem'whatever'end然后,当您在开发机器上运行bundle命令时,它不会安装打算在生产环境中使用的gem。基本上只在开发机器上安装开发所需的gem。 关于ruby-on-rails-bundl

ruby-on-rails - gem install pg 在 OSX 10.9 上失败

这个问题在这里已经有了答案:Rails:InstallingPGgemonOSX-failuretobuildnativeextension(15个答案)关闭7年前。运行bundleinstall(或geminstallpg)时出现以下错误我已经尝试修复xcode命令行工具/Users/josh/.rvm/rubies/ruby-2.0.0-p353/bin/rubyextconf.rbcheckingforpg_config...noNopg_config...tryinganyway.Ifbuildingfails,pleasetryagainwith--with-pg-confi

ruby-on-rails - 错误 - "gem install rails"- 缺少 libxml2

我一直在按照Rails安装说明(http://railsapps.github.io/installrubyonrails-mac.html)进行操作,一切正常,直到我到达新Rails应用程序下的geminstallrails部分。当我运行时,我发现libxml2丢失了。这是日志:http://codecascade.com/sIjhQ/raw我在安装nokogiri时遇到了类似的问题,我能够解决它的唯一方法是geminstallnokogiri----use-system-libraries我使用的是OSX10.10.2。如果可能相关,我还安装了RubyMine。

ruby-on-rails - 我在 rails generate devise :install 之前运行了 rails generate devise MODEL

我在运行初始Devise生成器之前不小心添加了我的Devise模型。我先运行的代码:$railsgeneratedeviseMODEL初始设计生成器(我应该先运行的):$railsgeneratedevise:install我现在有一个名为Model的设计Controller,它不允许我运行“rakedb:migrate”错误:rakeaborted!Userdoesnotrespondto'devise'method.Thisusuallymeansyouhaven'tloadedyourORMfileorit'sbeingloadedtoolate.Tofixit,besureto

ruby - Bundler::GemfileNotFound 每当我尝试运行 bundle install

我正在使用kali-linux(Linux发行版女巫是Back-Track的延续,基于Ubuntu,只是现在基于Debianwheezy)进行一些渗透测试。一切正常,直到我决定更新我的系统工具。现在,每当我尝试运行基于ruby​​的工具时,它都会给我带来麻烦:Couldnotfindgem'ruby-progressbar(>=1.1.0)ruby'inthegemsavailableonthismachine.Run`bundleinstall`toinstallmissinggems.我继续运行bundleinstall但随后出现了Bundler::GemfileNotFound错