jjzjj

Install4

全部标签

ruby-on-rails - gem install pg for ruby​​ on rails

Postgresql不会安装在OSX上下面是我的数据n安装pg(0.18.4)时出现错误,Bundler无法继续。确保geminstallpg-v'0.18.4'在捆绑之前成功。chriss-MacBook-Pro:shinechriswilson$bundleexec安装用法:安装[-bCcpSsv][-B后缀][-f标志][-g组][-m模式][-o所有者]文件1文件2安装[-bCcpSsv][-B后缀][-f标志][-g组][-m模式][-oowner]file1...fileN目录install-d[-v][-ggroup][-mmode][-oowner]目录...chris

ruby - 运行错误 '__rvm_make install'

我是编程新手,尝试使用RVM添加Ruby2.2并收到以下错误。我已经运行rvmgetstable并尝试重新安装,但出现了同样的错误。$rvmreinstallruby-2.2.0Searchingforbinaryrubies,thismighttakesometime.Nobinaryrubiesavailablefor:osx/10.10/x86_64/ruby-2.2.0.Continuingwithcompilation.Pleaseread'rvmhelpmount'togetmoreinformationonbinaryrubies.Checkingrequirements

ruby - 更新到 cocoapods 0.32.1 后无法运行 sudo pod install,错误为 "You cannot run CocoaPods as root. (CLAide::Help)"

我在更新到最新版本0.32.1后运行sudopodinstall命令时发现了一个问题。早些时候它工作得很好。当我尝试使用旧的cocoapods安装pod时,它要求我更新到最新的cocoapods版本,即0.32.1。在我通过cocoapodsgem更新后,我无法在我的Xcode项目中执行sudopodinstall。它给了我以下错误。±sudopodinstallruby-1.9.3-p0Password:/Users/username/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/gems/1.9.1/gems/claide-0.5.0/lib/claide/

ruby-on-rails - 无法运行 `bundle install`

所以前几天我遇到了严重的硬盘问题,不得不手动删除我的.gem文件夹。我试图通过进入我的项目文件夹运行bundleinstall来为我的应用程序重建gem...不幸的是我遇到了这个错误:/home/xxx/.rvm/rubies/ruby-2.2.2/lib/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in`require':cannotloadsuchfile--bundler(LoadError)from/home/xxx/.rvm/rubies/ruby-2.2.2/lib/ruby/site_ruby/2

ruby - bundle install 为 #<Bundler::Dsl:0x00000001c4e1f8> 提供未定义的方法 `ruby'

bundleinstall给出:>undefinedmethod`ruby'for#知道如何解决吗?我使用的是Ruby1.9.3-p125。 最佳答案 Gembundler的1.2版介绍了一个rubymethodtothedsl允许您指定您的应用程序应使用的Ruby版本。看起来您使用的Gemfile是为这个新版本编写的,但是您的bundler版本不支持ruby方法。您需要安装最新的bundler(geminstallbundler应该这样做)或从您的Gemfile中删除该行。 关于rub

ruby - 法拉第 : you may want to install system_timer for reliable timeouts

我将一个旧脚本迁移到一个新的CentOSbox并在运行脚本时收到以下消息:Faraday:youmaywanttoinstallsystem_timerforreliabletimeouts它是警告吗?system_timer是什么?gem? 最佳答案 这是一颗gem。不过,您应该不再需要它了,因为它只支持Ruby1.8及更早版本(Ruby1.8已正式弃用)。来自http://ph7spot.com/musings/system-timer:Update:system_timerisonlyrelevantifyouarerunni

ruby-on-rails - 对于 Ruby, "gem install"是否使用 "--include-dependencies"...只是文档有点过时了?

使用RubyonRails,如果我做一个gemhelpinstall它的一部分说:-y,--include-dependenciesUnconditionallyinstalltherequireddependentgems[...]Defaults:--both--version'>=0'--rdoc--ri--no-force--no-test--install-dirc:/ruby/lib/ruby/gems/1.8但是如果我做一个geminstall--include-dependenciesmysql一行说:INFO:`geminstall-y`isnowdefaultand

ruby - 如何使 gem install 命令仅在未安装或需要更新时安装

我已经阅读了ruby​​gems站点的文档,但我猜想“geminstall”命令总是重新安装、重新编译所有内容,即使已经安装了相同的版本也是如此。如何让geminstall命令只在需要的时候安装? 最佳答案 看起来--conservative标志将使gem命令执行您想要的操作。geminstallrake--conservative来自文档geminstall--help:--conservativeDon'tattempttoupgradegemsalreadymeetingversionrequirement

ruby-on-rails - 无法在 Rails 4 中使用 bundle install 命令安装 capybara-webkit

在我的Rails4应用程序中执行命令bundleinstall时出现以下错误。>ruby-vruby2.1.8p440(2015-12-16revision53160)[i386-mingw32]>rails--versionCouldnotfindgem'capybara-webkitx86-mingw32'inanyofthegemsourceslistedinyourGemfileoravailableonthismachine.Run`bundleinstall`toinstallmissinggems.我的Gemfile........group:development,:l

ruby - 为什么 rvm install ruby​​ 不起作用?

据说在theRails3.2.9blog建议安装Ruby1.9.3-p327。但是rvminstallruby-1.9.3-p327实际上给出了一个错误,并且日志说:Thereisnochecksumfor'http://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p327.tar.bz2'or'ruby-1.9.3-p327.tar.bz2',it'snotpossibletovalidateit.Ifyouwishtocontinuewithunverifieddownloadadd'--verify-downloads1'afterthec