jjzjj

bundle-version

全部标签

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 - Rails 服务器错误 : Ruby version is 1. 8.7,但您的 Gemfile 指定了 1.9.3

我输入了一个现有的ruby​​应用程序,然后输入:$rails想在这里启动railsserver。但它说:您的Ruby版本是1.8.7,但您的Gemfile指定为1.9.3其实我有一个1.8.7,但是我把它删掉了。如果我这样做:$ruby-v它说:ruby1.9.3p286(2012-10-12修订版37165)[x86_64-darwin11.4.2]所以我不知道该如何解决。你能帮我个忙吗? 最佳答案 如果您使用rvm,运行这个:$rvmuse1.9.3 关于ruby-on-rails

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 - 向 Ruby Thor CLI 添加 --version 选项

如何向我的Ruby添加--version选项Thor命令行界面应用程序。例如我希望能够运行$thor_app--version>thor_appversion1.0.0这个问题与RunaCLIThorappwithoutargumentsortaskname有关,但专门添加一个不需要任务的--version选项。注意这是在self-answerformat之后编写的.鼓励添加答案和更新 最佳答案 我在这种方法上运气不错:classCLI:__print_versiondesc"--version,-v","printtheversi

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