草庐IT

install4

全部标签

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-on-rails - rvm 安装 : ruby installation error

我想在我的LinuxMint12上安装ruby​​。我正在关注thistutorial和thisone.当我运行rvminstall1.9.3时,我看到了这个错误:InstallingRubyfromsourceto:/usr/share/ruby-rvm/rubies/ruby-1.9.3,thismaytakeawhiledependingonyourcpu(s)...ruby-1.9.3-#fetchingruby-1.9.3-#extractingruby-1.9.3-to/usr/share/ruby-rvm/src/ruby-1.9.3ERROR:Errorrunning'

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-on-rails - Rails 安装错误 :The 'atomic' native gem requires installed build tools

这个问题在这里已经有了答案:The'json'nativegemrequiresinstalledbuildtools(8个答案)关闭7年前。我正在我的Windows上安装Rails3。我安装了最新的ruby​​2.0.0,并更新了gems。但是当我使用geminstallrails安装rails时,出现了成功的消息,但最后我找到了ERROR:Errorinstallingrails:The'atomic'nativegemrequiresinstalledbuildtoolsPleaseupdateyourPATHtoincludebuildtoolsordownloadtheDev

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 - "Pow is installed"现在出现在我所有的网站上

我为我正在开发的Rails应用安装了带有RVM的Pow。没关系。其他网站现在都说“已安装Pow”。我确定这是一个简单的设置,但我找不到它。有人遇到过这个吗?我在SnowLeopard上运行MAMP。 最佳答案 Pow将更改您的DNS解析,将所有以.dev或.test结尾的域路由到本地计算机(以命中pow)。如果您想同时使用MAMP和POW,您需要暂时关闭pow以便它可用(或者您可以使用80以外的其他端口更改MAMP设置)。要关闭pow,我建议安装powdergem:geminstallpowderpowderdown您还可以使用po

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