Tag: bundler

为什么我得到无法在任何来源中找到multi_json-1.3.1?

我有一个简单的Rails应用程序,我想部署到Heroku。 当我运行以下命令 git push heroku master 将显示以下错误消息。 Could not find multi_json-1.3.1 in any of the sources ! ! Failed to install gems via Bundler. ! ! Heroku push rejected, failed to compile Ruby/rails app 这是我的Gemfile gem ‘rails’, ‘3.2.3’ gem ‘pg’ group :assets do gem ‘sass-rails’, ‘~> 3.2.3’ gem ‘coffee-rails’, ‘~> 3.2.1’ gem ‘therubyracer’, :platform => […]

Rails:构建bundler gemfile的选项

我有一个gem,必须用一些选项来构建。 gem install pg –with-pg-include=/Library/PostgreSQL/9.0/include/ –with-pg-lib=/Library/PostgreSQL/9.0/lib/ 我可以在Gemfile中包含这些选项吗? 在我的Gemfile中, pg命令是 gem “pg”, “0.12.2” 我想在版本号后面提供一些选项。 thx,tux

切换到zsh会在命令行中断开rails

我刚刚切换到使用zsh和oh-my-zsh,我在使用rails命令行工具时遇到了问题。 以下是我遇到的步骤,以及我收到的错误。 我运行了github页面提供的curl命令: curl -L https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh | sh 然后我去运行rails s,这是我收到的以下错误消息: .rvm/rubies/ruby-1.9.3-p0/lib/ruby/site_ruby/1.9.1/rubygems/dependency.rb:247:in `to_specs’: Could not find railties (>= 0) amongst [bigdecimal-1.1.0, io-console-0.3, json-1.5.4, minitest-2.5.1, rake-0.9.2.2, rdoc-3.9.4] (Gem::LoadError) 这看起来像我有一个gem错误所以我重新安装rvm,rails和bundler没有解决问题。 但是,如果我将我的终端切换回bash,那么我没有任何问题,导轨工作得非常好。 还有其他人遇到过类似的问题吗? 我想使用zsh,因为它似乎有更好的function,但如果我不能使用rails,那么我必须将其转储到路边。 这些是我的.zshrc文件末尾的行: export PATH=/Users/thomascioppettini/.rvm/gems/ruby-1.9.3p0/bin:/Users/thomascioppettini/.rvm/gems/ruby-1.9.3-p0@global/bin:/Users/thomascioppettini/.rvm/rubies/ruby-1.9.3-p0/bin:/Users/thomascioppettini/.rvm/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/git/bin:/usr/X11/bin PATH=$PATH:$HOME/.rvm/bin # Add RVM to PATH for scripting

Bundler找不到某个版本的gem,但是同名的gem install有效

我创建了一个gem,由于某种原因,这个一直在烦我,并拒绝通过bundler正确安装。 这是Gemfile : source ‘https://rubygems.org’ gem ‘rails’, ‘3.2.9’ gem “switch_access-rails”, “~> 1.1.6” 捆绑安装失败: Could not find gem ‘switch_access-rails (~> 1.1.6) ruby’ in the gems available on this machine. 这有效: gem install switch_access-rails -v 1.1.6 gem出现在rubygems上: https ://rubygems.org/gems/switch_access-rails/versions/1.1.6 我甚至尝试从版本1.1.5升级到1.1.6,看看是否有帮助。 安装版本1.1.4 in bundle install工作。 关于从哪里开始查看/调试bundle install的任何提示?

Bundle install在./mysql2文件夹中安装gem

我最近在我的机器上升级了mysql。 结果我试图相应地更新我的mysql2 gem。 在这样做的过程中,我运行“bundle install”,由于某种原因,我的Gemfile中的所有gem都安装在./mysql2目录中? ruby-1.9.2-p180 [dev]:project.git$ bundle install NOTE: Gem.source_index is deprecated, use Specification. It will be removed on or after 2011-11-01. Gem.source_index called from /Users/al/.rvm/gems/ruby-1.9.2-p180/gems/bundler-1.0.10/lib/bundler/shared_helpers.rb:3. NOTE: Gem.source_index is deprecated, use Specification. It will be removed on or after 2011-11-01. Gem.source_index called from /Users/al/.rvm/gems/ruby-1.9.2-p180/gems/bundler-1.0.10/lib/bundler/source.rb:162. NOTE: Gem::SourceIndex#each is deprecated with no replacement. It will be […]

无法获取gemfile以允许更新包

我是一个ruby / rails新手。 这是我的gemfile: source ‘https://rubygems.org’ ruby ‘2.0.0’ #ruby-gemset=railstutorial_rails_4_0 gem ‘rails’, ‘4.0.0’ group :development do gem ‘sqlite3’, ‘1.3.8’ gem ‘ruby-debug-ide’ end gem ‘sass-rails’, ‘4.0.0’ gem ‘uglifier’, ‘2.1.1’ gem ‘coffee-rails’, ‘4.0.0’ gem ‘jquery-rails’, ‘3.0.4’ gem ‘turbolinks’, ‘1.1.1’ gem ‘jbuilder’, ‘1.0.2’ gem ‘wash_out’, :git => ‘git://github.com/inossidabile/wash_out.git’ gem ‘haml’ gem “railties”, “~> 4.0.0” group :doc do gem ‘sdoc’, […]

如何修复Rails 3(bundler)中的这个gem依赖问题?

由于某种原因,每次我尝试运行bundle install时,我的项目都搞砸了,现在它的抛出错误。 通过重新排序我的Gemfile的gem,我设法解决了一些错误,但现在我得到了这个: Bundler could not find compatible versions for gem “faraday”: In Gemfile: omniauth depends on faraday (~> 0.7.3) twitter depends on faraday (0.6.1) 我认为使用bundler应该删除依赖wtf’s ? 我假设这个消息意味着两个gem需要2个不同版本的faraday ..? 我怎么能解决这个问题呢? 为什么不安装这两个版本,每个gem加载它想要的版本? 我喜欢这方面的帮助! 谢谢 Gemfile.lock: https ://gist.github.com/1061722 的Gemfile: # Edit this Gemfile to bundle your application’s dependencies. source ‘http://rubygems.org’ gem ‘rails’, ‘3.0.9’ #, :git => ‘git://github.com/rails/rails.git’ […]

Gem / Bundler加载错误:无法激活…已激活

我运行了捆绑更新来更新我的gem。 现在,当我尝试启动本地开发服务器时,我得到了这个。 有谁知道如何解决? hostname:myapp username$ rails s /Users/username/.rvm/rubies/ruby-1.9.2-p0/lib/ruby/1.9.1/rubygems.rb:238:in `activate’: can’t activate i18n (~> 0.4.1, runtime) for [“mail-2.2.10”, “actionmailer-3.0.3”, “rails-3.0.3”], already activated i18n-0.5.0 for [“activemodel-3.0.3”, “actionpack-3.0.3”, “rails-3.0.3”] (Gem::LoadError) from /Users/username/.rvm/rubies/ruby-1.9.2-p0/lib/ruby/1.9.1/rubygems.rb:254:in `block in activate’ from /Users/username/.rvm/rubies/ruby-1.9.2-p0/lib/ruby/1.9.1/rubygems.rb:253:in `each’ from /Users/username/.rvm/rubies/ruby-1.9.2-p0/lib/ruby/1.9.1/rubygems.rb:253:in `activate’ from /Users/username/.rvm/rubies/ruby-1.9.2-p0/lib/ruby/1.9.1/rubygems.rb:254:in `block in activate’ from /Users/username/.rvm/rubies/ruby-1.9.2-p0/lib/ruby/1.9.1/rubygems.rb:253:in `each’ from /Users/username/.rvm/rubies/ruby-1.9.2-p0/lib/ruby/1.9.1/rubygems.rb:253:in `activate’ from /Users/username/.rvm/rubies/ruby-1.9.2-p0/lib/ruby/1.9.1/rubygems.rb:254:in `block in activate’ from […]

让ffmpeg与Heroku一起工作

我试图为我的Heroku Rails应用程序安装ffmpeg,现在我的应用程序崩溃了。 我使用以下命令添加了一个buildpack: heroku config:add BUILDPACK_URL=https://github.com/shunjikonishi/heroku-buildpack-ffmpeg 推送到Heroku后,根据我的日志得到以下错误: 2013-11-17T17:50:44.022351+00:00 heroku[web.1]: Starting process with command `bundle exec rails server -p 47171` 2013-11-17T17:50:46.295602+00:00 app[web.1]: bash: bundle: command not found 2013-11-17T17:50:47.589491+00:00 heroku[web.1]: Process exited with status 127 2013-11-17T17:50:47.597968+00:00 heroku[web.1]: State changed from starting to crashed 2013-11-17T17:50:48.620853+00:00 heroku[router]: at=error code=H10 desc=”App crashed” method=GET path=/ (…) fwd=”76.118.180.235″ dyno= connect= service= status=503 […]

即使我在开发块中有sqlite,Heroku也不接受推送

我的Gemfile有以下几行: gem ‘rails’, ‘3.1.1’ group :production do gem ‘pg’ end group :development, :test do gem ‘sqlite3’ end 我还运行了bundle install来更新我的Gemfile.lock 。 当我推送到heroku时,我仍然会收到以下错误: ! ! Failed to install gems via Bundler. ! ! Detected sqlite3 gem which is not supported on Heroku. ! http://devcenter.heroku.com/articles/how-do-i-use-sqlite3-for-development ! ! Heroku push rejected, failed to compile Ruby/rails app 我错过了什么?