草庐IT

INSTALL_FAILED_INCOMPATIBLE_SIGNA

全部标签

ruby - 如何删除 gem install 安装的文档?

我知道可以在没有文档的情况下安装gem,但不幸的是,我在使用ruby​​的前三个月没有这样做。在那段时间里,我设法安装了大量的gem,但自从我开始使用ruby​​以来,我没有一次使用过计算机上的文档。我总是在互联网上查找文档。从我的计算机中安全删除文档的最佳方法是什么?另外,有没有办法配置ruby​​默认不安装文档? 最佳答案 运行这个命令:rm-r"$(gemenvgemdir)"/doc/*在Windows上,如果你使用cygwin 关于ruby-如何删除geminstall安装的文

ruby-on-rails - 如何在 OS X 上使用 ruby​​ 2.3 为 mysql2 gem 解析 "incompatible library version"?

我使用的是ruby​​2.3,在gemfile中,我列出了mysql2gem。但是当我尝试运行rakedb:migrate时,我得到以下信息:/Users/me/.gem/ruby/2.3.0/gems/mysql2-0.4.2/lib/mysql2.rb:31:in`require':incompatiblelibraryversion-/Users/me/.gem/ruby/2.3.0/gems/mysql2-0.4.2/lib/mysql2/mysql2.bundle(fatal)我似乎无法绕过这个。我用Homebrew安装了Mysql5.7,尝试更新包,卸载并重新安装mysql

ruby-on-rails - 安装调试器时出错 : Failed to build gem native extension with ruby-1. 9.3-p362

尝试为新项目运行bundle时,遇到以下错误:Installingdebugger(1.2.2)withnativeextensionsGem::Installer::ExtensionBuildError:ERROR:Failedtobuildgemnativeextension.C:/Ruby193/bin/ruby.exeextconf.rbcheckingforrb_method_entry_t.called_idinmethod.h...nocheckingforrb_control_frame_t.method_idinmethod.h...nocheckingforrb_

ruby-on-rails - Bundle Install 无法从 https ://rubygems. org/获取规范

我正在尝试遵循HartlRails教程,但在使用bundlergem时遇到了问题。当使用命令“bundleinstall”或“bundleupdate”时,我得到以下输出:Fetchingsourceindexfromhttps://rubygems.org/Couldnotfetchspecsfromhttps://rubygems.org/我搜索过这个输出,但没有在网上找到很多相关问题。也许我有另一个干扰bundler的gem?在这一点上,我对Rails没有什么经验。source'https://rubygems.org'gem'rails','3.2.12'group:devel

ruby - 恢复 Rails 3's Bundle Install Path... It' s 现在安装在我的根目录中

我在尝试安装vestal_versions插件时做了一些事情,最终在我的应用程序的根目录中创建了一个vestal_versions目录,内容如下:-Application-APP-DB-vestal_versions-ruby-1.8-bin-cache-doc-gems-specifications如果删除哪个会阻止应用程序运行...我如何更新bundle以将所有这些东西安装在正确的位置,我认为这是在应用程序之外? 最佳答案 bundleinstall使bundler将gem安装在相应的目录中。正在运行bundleinstall-

ruby-on-rails - 错误 : failed to build gem native extension when installing rails on mac mountian lion os

我最近更新到MountainLion并重新安装了Ruby,但是当我尝试运行测试Rails应用程序时,我收到一条错误消息,指出“我的系统当前未安装Rails”。我按照它说的做,输入sudogeminstallrails并得到:clearedfaster_requirecachesduetonewgeminstall...Successfullyinstalledrails-3.2.71geminstalledInstallingridocumentationforrails-3.2.7...InstallingRDocdocumentationforrails-3.2.7...但是当我检

ruby - gem install pg 不适用于 OSX Lion

这个问题围绕SO有很多变化,但似乎没有一个能解决我的问题。我正在运行OSXLion(10.7.3)。安装了最新的XCode。我使用来自postgresapp.com的Postgres.app包安装了Postgres。但是当我尝试安装pggem时,我失败了:$geminstallpg----with-pg-config=/Applications/Postgres.app/Contents/MacOS/bin/pg_configBuildingnativeextensions.Thiscouldtakeawhile...ERROR:Errorinstallingpg:ERROR:Fail

ruby-on-rails - gem install rails --pre 中的 --pre 做什么?

--pre在geminstallrails--pre中做了什么? 最佳答案 --pre表示它将安装railsgem的预发布版本。例如,当Rails3仍处于测试阶段时,您仍然可以使用它bygettingtheprerelease.除非您想处于gem的边缘(用于开发或测试目的),否则您不应该运行它。我不建议在预发布版中使用gem将网站投入生产,因为它们可能还不够稳定。 关于ruby-on-rails-geminstallrails--pre中的--pre做什么?,我们在StackOverfl

ruby - 错误 : Gem bundler is not installed, 首先运行 `gem install bundler`

您好,我一直在尝试安装Rubygem包。收到此消息后,我按照geminstallbundle的说明进行操作,但是当我键入bundle-v时它仍然不起作用。我也打字捆绑并接收/Users/edmundmai/.rvm/bin/bundle所以它存在!!那么为什么它不起作用!我没有得到的神秘$PATH有什么问题吗?(我是菜鸟)。这是我的.bash_profile:PATH=$PATH:~/binexportPATH[[-s"$HOME/.rvm/scripts/rvm"]]&&source"$HOME/.rvm/scripts/rvm"#LoadRVMintoashellsession*a

ruby-on-rails - macOS, rails : "Failed to build gem native extension"

我无法尝试在我的Mac上安装Rails。我有OSX10.6.8,我已经确认我有Ruby,版本1.8.7我运行了sudogemupdate和sudogemupdate--system来获取最新版本的软件。但是,当我运行sudogeminstallrails时,出现了这个错误:ERROR:Errorinstallingrails:ERROR:Failedtobuildgemnativeextension./System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/rubyextconf.rbmkmf.rbcan'tfindh