草庐IT

easy_install-HY

全部标签

ruby-on-rails - 错误 - "gem install rails"- 缺少 libxml2

我一直在按照Rails安装说明(http://railsapps.github.io/installrubyonrails-mac.html)进行操作,一切正常,直到我到达新Rails应用程序下的geminstallrails部分。当我运行时,我发现libxml2丢失了。这是日志:http://codecascade.com/sIjhQ/raw我在安装nokogiri时遇到了类似的问题,我能够解决它的唯一方法是geminstallnokogiri----use-system-libraries我使用的是OSX10.10.2。如果可能相关,我还安装了RubyMine。

ruby-on-rails - 我在 rails generate devise :install 之前运行了 rails generate devise MODEL

我在运行初始Devise生成器之前不小心添加了我的Devise模型。我先运行的代码:$railsgeneratedeviseMODEL初始设计生成器(我应该先运行的):$railsgeneratedevise:install我现在有一个名为Model的设计Controller,它不允许我运行“rakedb:migrate”错误:rakeaborted!Userdoesnotrespondto'devise'method.Thisusuallymeansyouhaven'tloadedyourORMfileorit'sbeingloadedtoolate.Tofixit,besureto

ruby - Bundler::GemfileNotFound 每当我尝试运行 bundle install

我正在使用kali-linux(Linux发行版女巫是Back-Track的延续,基于Ubuntu,只是现在基于Debianwheezy)进行一些渗透测试。一切正常,直到我决定更新我的系统工具。现在,每当我尝试运行基于ruby​​的工具时,它都会给我带来麻烦:Couldnotfindgem'ruby-progressbar(>=1.1.0)ruby'inthegemsavailableonthismachine.Run`bundleinstall`toinstallmissinggems.我继续运行bundleinstall但随后出现了Bundler::GemfileNotFound错

ruby-on-rails - 从设计 "User does not respond to ' 设计方法中获取错误“运行 "rails generate devise:install"时

当运行“railsgeneratedevise:install”时,我从设计中收到错误“用户不响应‘设计’方法”。想法重新如何解决?事实上,当我尝试运行“railsgeneratedevise:install”时,我也注意到了这个错误。注意事项:Gregs-MacBook-Pro:testappgreg$railsgeneratedevise:install/Library/Ruby/Gems/1.8/gems/devise-2.0.1/lib/devise/rails/routes.rb:406:in`raise_no_devise_method_error!':Userdoesno

ruby-on-rails - Capistrano bundler :install fails

我正在尝试使用Capistrano3.0将我的Rails应用程序部署到EC2实例中。我现在在运行“capproductiondeploy”或“capproductionbundler:install”时出现以下输出。DEBUG[5b379979]Running/usr/bin/enviftest!-d/var/www/app/current;thenecho"Directorydoesnotexist'/var/www/app/current'"1>&2;false;fionec2-75-101-200-185.compute-1.amazonaws.comDEBUG[5b379979

ruby-on-rails - 错误 : Error installing oj:

我刚刚第一次从GitHub克隆了一个存储库。我去我的本地机器上检查了它,所以在我的mac上的本地存储库中我运行了以下命令bin/rails服务器我收到以下错误:无法在任何来源中找到activesupport-5.0.0.1运行bundleinstall以安装缺少的gem。然后我按照建议运行了bundleinstall命令,但是它给了我以下错误安装oj(2.12.14)时出错,Bundler无法继续。确保geminstalloj-v'2.12.14'在捆绑之前成功。所以我按照建议运行了:geminstalloj-v'2.12.14'然后我收到一条非常长的消息,其中包含警告和错误(见下文)

Ruby Guard 问题 - 'Please install the sqlite3 adapter' - railstutorial.org

我正在关注RubyonRailsTutorial并且在测试部分变得有些困惑,特别是-3.6.2-AutomatedtestswithGuard按照部署到Heroku的教程说明,我已切换到Postgresql并从我的gemfile中删除了sqlite3,并进行了捆绑安装以进行更新。但是,一旦我运行bundleexecguard我收到消息:/Users/username/.rvm/gems/ruby-1.9.3-p125@global/gems/bundler-1.1.3/lib/bundler/rubygems_integration.rb:147:inblockinreplace_ge

ruby - gem install rmagick 在 OS X El Capitan 上失败

几天前我升级到ElCapitan并运行了一个brewupdate&&brewupgrade它更新了imagemagick,导致ruby​​的rmagickgem停止工作。我想没问题,我就跑geminstallrmagick它会重新编译。除了没有,当我运行它时我看到了这个:geminstallrmagickBuildingnativeextensions.Thiscouldtakeawhile...ERROR:Errorinstallingrmagick:ERROR:Failedtobuildgemnativeextension./Users/sam/.rbenv/versions/2.

ruby-on-rails - gem install nokogiri -v '1.5.11' 由于 make :/usr/local/bin/gmkdir: No such file or directory 而失败

Rubyversion:2.2.5MacOSX:10.11.5Gemversion:2.4.8Bundlerversion:1.12.5当我运行geminstallnokogiri-v'1.5.11'时,出现以下错误:Buildingnativeextensions.Thiscouldtakeawhile...ERROR:Errorinstallingnokogiri:ERROR:Failedtobuildgemnativeextension./Users/hwpeng/.rvm/rubies/ruby-2.2.5/bin/ruby-r./siteconf20160707-31800-

ruby-on-rails - gem install json 失败,重新定义了 struct timezone/timespec

我在Windows上使用带有DevKit的Ruby1.9.3(在Win764位上都是32位)。现在我尝试安装rails,但从bundle中得到一个错误。如果我尝试运行(包在提示什么)geminstalljson我收到以下错误消息:D:\RubyTest>geminstalljsonTemporarilyenhancingPATHtoincludeDevKit...Buildingnativeextensions.Thiscouldtakeawhile...ERROR:Errorinstallingjson:ERROR:Failedtobuildgemnativeextension.D: