草庐IT

INSTALL_FAILED_VERSION_DOWNGRADE

全部标签

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

ruby-on-rails - 在 bundle install 上安装 Nokogiri 时出错但已经安装

我在bundle我的Gemfile时遇到问题。当我运行bundleinstall时,我已经安装了Nokogiri,它无法加载Nokogiri。安装Nokogiri:geminstallnokogiriBuildingnativeextensions.Thiscouldtakeawhile...Successfullyinstallednokogiri-1.6.6.2Parsingdocumentationfornokogiri-1.6.6.2Doneinstallingdocumentationfornokogiriafter2seconds1geminstalledbundle安装:

ruby-on-rails - 服务器启动时如何修复 "Your Ruby version is 2.3.0, but your Gemfile specified 2.2.5"

我在运行服务器时遇到此错误,我该如何解决? 最佳答案 为了兼容性,您最好安装Ruby2.2.5。本地计算机中的Ruby版本与Gemfile中声明的版本不同。如果您使用的是rvm:rvminstall2.2.5rvmuse2.2.5否则,如果您使用的是rbenv:rbenvinstall2.2.5rbenvlocal2.2.5否则如果你不能通过rbenv改变ruby​​版本,readhere 关于ruby-on-rails-服务器启动时如何修复"YourRubyversionis2.3.0

ruby-on-rails - 使用 'gem pq' 安装 PostgreSQL gem 失败并出现错误 : Failed to build gem native extension

我正在学习RubyonRails并尝试开发应用程序。在我的应用程序中,我试图在开发模式下使用默认的SQLite数据库,在生产模式下使用PostgreSQL。但是我在尝试使用安装pggem时遇到以下错误:geminstallpgBuilding native extensions.  This could take a while...ERROR:  Error installing pg:        ERROR: Failed to build gem native extension.     /home/tusharkhatiwada/.rvm/rubies/ruby-2.0.

ruby-on-rails - Rails 和 OS X : How to install rmagick?

我已经完全绝望了——我花了一整天的时间尝试将rmagickgem安装到MacOSXLion,但实际上这是一场悲剧。我在Google上看到了许多类似的主题,但没有任何帮助。我尝试通过brew完全卸载imagemagick并再次安装它(这工作正常)然后安装rmagick,但是每次当我尝试安装此gem时,收到此错误:Buildingnativeextensions.Thiscouldtakeawhile...ERROR:Errorinstallingrmagick:ERROR:Failedtobuildgemnativeextension./Users/adam/.rvm/rubies/ru

ruby-on-rails - 带有 Ruby 2.5.1 控制台的 Rails 5.2.0 - `warning:` `already` 初始化常量 FileUtils::VERSION

我目前在使用我的新Rails应用程序时遇到问题,更具体地说:rails5.2.0Ruby2.5.1p57(2018-03-29修订版63029)[x86_64-darwin17]rvm1.29.4(最新),作者:MichalPapis、PiotrKuczynski、WayneE.Seguin[https://rvm.io]当我运行railsc时,它会生成一个指向fileutilsgem的警告链接,如下所示:`/usr/local/Cellar/ruby/2.5.1/lib/ruby/2.5.0/fileutils.rb:90:``warning:``already`initialize

【已解决】浏览器无法访问页面,ERR_TUNNEL_CONNECTION_FAILED

【已解决】浏览器无法访问页面,ERR_TUNNEL_CONNECTION_FAILED问题描述无法访问浏览器页面,显示内容如下:一种可行的解决办法打开其他浏览器,确定是否为MicrosoftEdge的问题。如果其他浏览器可以正常访问:可能是搜索引擎或者注册表的问题,可以尝试更换搜索引擎或者还原设置。更换搜索引擎:点击右上角…>下拉菜单,选择设置>找到“搜索”栏>选择地址栏中使用的搜索引擎还原设置:点击右上角…>下拉菜单,选择设置>重置设置>点击将设置还原为其默认值>点击弹出框的重置如果其他浏览器也无法正常访问:或者提示已由组织接管(可在右上角…下拉列表找到由你的组织管理)可能是Edge的105