jjzjj

bundle-version

全部标签

ruby-on-rails - Bundle 不想安装 gem(尚未 checkout )

我想在Rails服务器上运行Ruby,但某个gem不想安装。这个rails程序与ruby​​2.0不兼容,所以我想使用我安装的ruby​​1.9.3,但是我不能再bundle安装了...$bundleinstall#...Yourbundleiscomplete!Use`bundleshow[gemname]`toseewhereabundledgemisinstalled.$bundleexecrailssgit://github.com/goodtouch/jbuilder.git(atmaster)isnotyetcheckedout.Run`bundleinstall`firs

ruby - 如何解析 "Your bundle only supports platforms ["x86-mingw3 2"] but your local platforms are ["ruby​​", "x86_64-linux"]"

我正在Windows机器上构建一个Rails站点,但是当我检查我的Gemfile.lock时,我在我的Travis构建中遇到以下错误:Yourbundleonlysupportsplatforms["x86-mingw32"]butyourlocalplatformsare["ruby","x86_64-linux"],andthere'snocompatiblematchbetweenthosetwo列表这是完整的日志:https://travis-ci.org/bikebike/BikeBike/builds/222395810#L654我查看了我的Gemfile.lock并指出:

ruby:别名为 bundled_ruby

当我输入whichruby​​时,它总是返回ruby:aliasedtobundled_ruby当我尝试whichbundled_ruby时,它返回:bundled_ruby(){_run-with-bundlerruby$@}然后我尝试which_run-with-bundler并返回:_run-with-bundler(){if_bundler-installed&&_within-bundled-projectthenbundleexec$@else$@fi}这一切从何而来?如何让我的whichruby​​再次工作?我正在使用OSX(v10.8.2)、brew、rbenv、rub

ruby-on-rails - 在你的命令前加上 `bundle exec` 可能会解决这个问题

我在将网站部署到AWS时遇到问题。Gem::LoadError:Youhavealreadyactivatedrake10.4.2,butyourGemfilerequiresrake10.5.0.Prepending`bundleexec`toyourcommandmaysolvethis./var/app/ondeck/config/boot.rb:3:in`'/var/app/ondeck/config/application.rb:1:in`'/var/app/ondeck/Rakefile:4:in`'LoadError:cannotloadsuchfile--bundler

ruby-on-rails - rake 数据库 :migrate is being aborted due to rake version difference

这个问题在这里已经有了答案:YouhavealreadyactivatedX,butyourGemfilerequiresY(11个答案)关闭8年前。我遇到了错误rakedb:migrate--tracerakeaborted!Youhavealreadyactivatedrake10.1.1,butyourGemfilerequiresrake10.1.0.Usingbundleexecmaysolvethis./Users/iang/.rvm/gems/ruby-2.0.0-p247@global/gems/bundler-1.3.5/lib/bundler/runtime.rb:

ruby - Homebrew 软件损坏 - "cannot load such file -- vendor/bundle/bundler/setup (LoadError)"

每次我尝试运行brew命令时,都会出现以下错误:/usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.3.7/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in`require':cannotloadsuchfile--vendor/bundle/bundler/setup(LoadError)from/usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.3.7/lib/ruby/2.3.0/r

ruby-on-rails - 如何使用来自 git hook post-receive 的特定 rvm gemset 进行 bundle 安装?

因此,我正在尝试在不使用capistrano的情况下实现类似heroku的部署。为了检查和安装gems,我尝试使用githook并将以下命令放入/hooks/post-receive:bundlecheck||bundleinstall但是当我运行gitpush时,我得到:remote:hooks/post-receive:line20:bundle:commandnotfound.我知道hook可能会从错误的环境中启动命令,并且我必须以某种方式从hook切换rvm环境。我尝试在接收后使用rvmuse1.8.7@rails3但它没有帮助。有什么想法吗? 最佳

ruby-on-rails - rails - postgres 错误 : Reason: Incompatible library version: libpq. 5.dylib 需要 1.0.0 或更高版本,

我无法在我的Mac(10.6.8)上设置Ruby(1.9.3)、Rails和Postgres(9.0.8)。每次运行railsconsole时,我都会收到以下错误:/Users/dc/.rvm/gems/ruby-1.9.3-head@global/gems/pg-0.13.2/lib/pg.rb:4:in`require':dlopen(/Users/dc/.rvm/gems/ruby-1.9.3-head@global/gems/pg-0.13.2/lib/pg_ext.bundle,9):Librarynotloaded:@loader_path/../lib/libssl.dy

ruby - bundle exec rspec spec/=> RUBYOPT : -F (RuntimeError) 中的无效开关

当我在Windows764位系统上运行bundleexecrspecspec/时,我收到以下错误:invalidswitchinRUBYOPT:-F(RuntimeError)我正在运行ruby​​1.9.2p136(2010-12-25)[i386-mingw32](安装在c:\ProgramFiles(x86)\Ruby192)和bundler1.0.15(作为ruby​​gem安装).关于如何解决这个问题的任何线索?谢谢,本 最佳答案 Bundler不喜欢Ruby的路径包含空格这一事实。为了解决这个问题,我编辑了runtime

ruby-on-rails - 运行 "bundle install"失败,让我运行 "bundle install"

事实上,当从我从git存储库克隆的现有Rails应用程序中运行时,所有与gem相关的命令都会产生相同的错误消息。$bundleinstallCouldnotfindtzinfo-0.3.27inanyofthesourcesRun`bundleinstall`toinstallmissinggems.$gemlistCouldnotfindtzinfo-0.3.27inanyofthesourcesRun`bundleinstall`toinstallmissinggems.$bundleupdateCouldnotfindtzinfo-0.3.27inanyofthesourcesR