Heroku 仍在尝试安装开发 gem,即使我告诉它不要这样做

发布于 2024-10-30 02:54:02 字数 996 浏览 0 评论 0原文

我正在深入研究 RoR,并使用 Heroku 来托管我正在构建的测试应用程序。当我向 Heroku 进行推送时,在尝试安装 linecache19 gem(由 ruby​​-debug19 gem 使用)时崩溃了......

Installing ruby_core_source (0.1.4) 
Installing linecache19 (0.5.11) with native extensions /usr/ruby1.8.7/lib/ruby/site_ruby/1.8/rubygems/installer.rb:483:in `build_extensions': ERROR: Failed to build gem native extension. (Gem::Installer::ExtensionBuildError)

在整个网络上搜索这个问题后,每个人的解决方案都是......

heroku config: add BUNDLE_WITHOUT="test development" --app app_name

但是推送到即使我这样做之后,Heroku 仍然崩溃。这是我的 Gemfile...

source 'http://rubygems.org'

gem 'rails', '3.0.5'
gem "carrierwave"
gem "mini_magick"
gem "fog"

group :development do
  gem 'annotate-models', '1.0.4'
  gem 'sqlite3'
  gem 'ruby-debug19'
  gem 'sqlite3-ruby', :require => 'sqlite3'
end

我什至卸载了 ruby​​-debug19 gem,但它仍然崩溃并尝试安装 linecache19 gem。为什么这个 linecache19 gem 不会消失?我对这一切都很陌生,因此,我确信我错过了一些明显的东西。你的想法?

感谢您的智慧!

I'm diving into RoR and I'm using Heroku to host the test app I'm building. When I do a push to Heroku, it crashes when trying to intall the linecache19 gem (which is used by ruby-debug19 gem)...

Installing ruby_core_source (0.1.4) 
Installing linecache19 (0.5.11) with native extensions /usr/ruby1.8.7/lib/ruby/site_ruby/1.8/rubygems/installer.rb:483:in `build_extensions': ERROR: Failed to build gem native extension. (Gem::Installer::ExtensionBuildError)

After searching all over the web for this problem, everyone's solution was...

heroku config: add BUNDLE_WITHOUT="test development" --app app_name

But the push to Heroku still crashes even after I did that. Here's my Gemfile...

source 'http://rubygems.org'

gem 'rails', '3.0.5'
gem "carrierwave"
gem "mini_magick"
gem "fog"

group :development do
  gem 'annotate-models', '1.0.4'
  gem 'sqlite3'
  gem 'ruby-debug19'
  gem 'sqlite3-ruby', :require => 'sqlite3'
end

I even uninstalled the ruby-debug19 gem and it's still crashing and trying to install the linecache19 gem. Why won't this linecache19 gem go away? I'm new to all this and, as such, I'm sure I'm missing something obvious. Your thoughts?

Thanks for your wisdom!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

梦途 2024-11-06 02:54:02

您的 heroku config 命令格式错误。 add 之前有一个空格,并且 developmenttest 之间缺少冒号。

$ heroku config:add BUNDLE_WITHOUT="development:test" --app app_name

文档在这里。< /a>

另外,您是否还记得在本地运行 bundle install 并将您的 GemfileGemfile.lock 提交到 git?

Your heroku config command is malformed. You have a space before add and you are missing the colon between development and test.

$ heroku config:add BUNDLE_WITHOUT="development:test" --app app_name

Docs are here.

Also, are you remembering to run bundle install locally and commit both your Gemfile and Gemfile.lock into git?

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文