草庐IT

easy_install-HY

全部标签

ruby-on-rails - ubuntu 14.04 上 passenger-install-nginx-module 的 Bundler 错误

我正在ubuntu14.04和ruby2.2.4上安装passenger+nginx。passenger-install-nginx-module有bundler错误$passenger-install-nginx-module/home/ubuntu/.rvm/gems/ruby-2.2.4/gems/bundler-1.13.1/lib/bundler/rubygems_ext.rb:45:in`full_gem_path':uninitializedconstantBundler::Plugin::API::Source(NameError)from/home/ubuntu/.r

ruby-on-rails - `rbenv install 2.2.0` 错误

尝试SetupRubyOnRailsonUbuntu14.04TrustyTahr控制台错误输出:rbenvinstall2.2.0Downloadingruby-2.2.0.tar.gz...->http://dqw8nmjcqpjn7.cloudfront.net/7671e394abfb5d262fbcd3b27a71bf78737c7e9347fa21c39e58b0bb9c4840fcInstallingruby-2.2.0...BUILDFAILED(Ubuntu14.04usingruby-build20150112)Inspectorcleanuptheworkingt

ruby - 通过 gem install mechanize 安装 gems 时显示错误 "invalid switch in RUBYOPT: -F (RuntimeError)"

我尝试通过以下命令在我的计算机上安装gem(Mechanize):>>geminstallmechanize--platform=ruby>>geminstallmechanize错误ERROR:Errorinstallingmechanize:ERROR:Failedtobuildgemnativeextension."C:/ProgramFiles/Ruby200-x64/bin/ruby.exe"extconf.rbC:/ProgramFiles/Ruby200-x64/bin/ruby.exe:invalidswitchinRUBYOPT:-F(RuntimeError)在我尝

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 - 我得到 rvm : command not found after installation of rvm

我知道上面的问题是很常见的问题。我已经阅读了关于这个主题的多篇文章。但是我没有得到任何解决方案。我已经在本地安装了rvm。我们已经有了安装文件。所以进入文件夹并运行安装命令。$./install然后我检查了Users主文件夹中的./rvm文件夹$cd~/.rvm文件夹存在。至此安装成功。现在我在命令行输入rvm$rvm我正在低于异常$rvm-sh:rvm:commandnotfound在阅读了stackoverflow中有关此问题的多篇文章后,我了解到我必须在.bash_profile中添加以下行,因为我使用的是MacOSX10.7.3[[-s"$HOME/.rvm/scripts/r

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