草庐IT

adt-bundle-windows-x

全部标签

ruby - 无法运行 Jenkins Build - bundle : "command not found"

我目前正在尝试为我的一些cucumber任务运行jenkins构建。我所有的gem都是使用Bundler安装的。Gem存储在vendor文件夹中。但是,当我尝试在执行shell构建步骤中运行bundleinstall--deployment时,出现以下错误:StartedbyuseranonymousBuildinginworkspace/Users/Shared/Jenkins/Home/jobs/cukes/workspace[workspace]$/bin/sh-xe/var/folders/zz/zyxvpxvq6csfxvn_n0000004000001/T/hudson44

ruby-on-rails - 带@global gem 的 Ruby/RVM - bundle 运行失败,显示 `require' : cannot load such file — bundler (LoadError)

我学习了1个月的linux。当我尝试从MigratingfromMySQLtoPostgresonHeroku开始执行所有步骤时我遇到无法处理的错误。当我尝试从源代码安装mysqltopostgresgem时:$gitclonehttps://github.com/maxlapshin/mysql2postgres.git$cdmysql2postgres$bundleinstall$gembuildmysqltopostgres.gemspec$sudogeminstallmysqltopostgres-0.2.20.gem我在$bundleinstall上有一个错误:/home/f

ruby - bundle 安装到开发

出于某种原因,当我运行bundleinstall时,它会安装到生产环境中:您的包已完成!它被安装到./RAILS_ENV=production哎呀,我该如何切换回开发??注意事项:我没有修改任何环境文件当我从控制台运行Rails.env时,我得到了"development"gem文件:source'http://rubygems.org'gem'rails','3.0.3'gem'sqlite3-ruby','1.3.2',:require=>'sqlite3'group:developmentdogem'rspec-rails'gem'nokogiri'gem'will_pagina

ruby-on-rails - bundle install/在 rails 上安装 libv8 (3.3.10.4) 时出错(在 Lion 上运行)

我在我的gem文件中添加了gem'sunspot_rails'并运行了bundleinstall。我在安装libv8时一直报错,报错信息如下:Installinglibv8(3.3.10.4)withnativeextensionsGem::Installer::ExtensionBuildError:ERROR:Failedtobuildgemnativeextension./opt/local/bin/rubyextconf.rb***extconf.rbfailed***CouldnotcreateMakefileduetosomereason,probablylackofnec

ruby - 如何修复意外的 'sudo bundle install dir_name' ?

我不小心运行了sudobundleinstallsmtp_mail,现在我所有的gem都在我的Rails应用程序中这个名为smtp_mail的目录中。我不确定gem的默认位置?而且,我的Rails应用程序在启动时提示。有什么办法可以恢复原状吗? 最佳答案 经过一番谷歌搜索后,我找到了答案只需运行:sudobundleinstall--system然后您会将您的gem放回到它们适当的系统目录中。 关于ruby-如何修复意外的'sudobundleinstalldir_name'?,我们在S

ruby-on-rails - Rails bundler : how to undo bundle package?

如何撤销bundlepackage?我删除了vendor/cache中的所有内容,但是当我运行bundleinstall时它又重新安装在那里。 最佳答案 根据这个答案:https://stackoverflow.com/a/9471980/219883必须删除隐藏的.bundle目录,然后重新运行bundleinstall-否则会继续添加vendor/cache每次返回目录。 关于ruby-on-rails-Railsbundler:howtoundobundlepackage?,我们在

ruby - 无法从 `sudo bundle install` 恢复

我错误地在我的项目上运行了sudobundleinstall,现在当我以自己的身份运行它时bundleinstall我得到了权限被拒绝的错误(如下)。我在这里尝试了说明https://github.com/bundler/bundler/blob/master/ISSUES.md#other-problems,还尝试将我的项目克隆到一个新目录并从那里运行bundle,但没有用。请帮忙!error:cannotopen.git/FETCH_HEAD:PermissiondeniedRetryinggitfetch--force--quiet--tags"/home/akonsu/.bun

ruby - 使用 bundle exec 可以解决这个问题吗?

这是我的Gemfilesource:rubygemsgem'rake','0.9.2.2'gem'sinatra'gem'activerecord','3.0.9'gem'pg','~>0.12.2'gem'logger'gem'nokogiri'group:development,:testdogem'rack-test'gem'ruby-debug19'gem'sqlite3'end我运行在其他项目中工作的rakeconsole,现在我收到这条消息:您已经激活了activesupport3.1.3,但是您的Gemfile需要activesupport3.0.9。使用bundleex

ruby-on-rails - 为什么 'bundle install --without production' 命令在更新后不需要 '--without production'?

为什么第二个命令不$bundleinstall不需要--withoutproduction(因为这是教程中的内容,所以我认为它是正确的)不需要它背后发生了什么/原因是什么?来自http://ruby.railstutorial.org/chapters/a-demo-app#sec-demo_users_resource$bundleinstall--withoutproduction$bundleupdate$bundleinstall 最佳答案 我相信这是因为bundler在您的项目文件夹中创建了一个.bundle/config

ruby - 设置环境、OSX rbenv 和 bundle battle

所以我刚刚从ubuntu切换到mac,设置env并不像promise的那么容易。这是我遵循的过程。安装xcode-然后进入首选项并下载命令行工具然后通过运行gcc--version验证是否安装了正确的版本i686-apple-darwin11-llvm-gcc-4.2(GCC)4.2.1(BasedonAppleInc.build5658)(LLVMbuild2336.11.00)Copyright(C)2007FreeSoftwareFoundation,Inc.Thisisfreesoftware;seethesourceforcopyingconditions.ThereisNO