質問をすることでしか得られない、回答やアドバイスがある。

15分調べてもわからないことは、質問しよう!

新規登録して質問してみよう
ただいま回答率
85.50%
Ruby

Rubyはプログラミング言語のひとつで、オープンソース、オブジェクト指向のプログラミング開発に対応しています。

Heroku

HerokuはHeroku社が開発と運営を行っているPaaSの名称です。RubyやNode.js、Python、そしてJVMベース(Java、Scala、Clojureなど)の複数のプログラミング言語をサポートしている。

Ruby on Rails

Ruby on Railsは、オープンソースのWebアプリケーションフレームワークです。「同じことを繰り返さない」というRailsの基本理念のもと、他のフレームワークより少ないコードで簡単に開発できるよう設計されています。

Q&A

解決済

1回答

1422閲覧

Herokuでbuildに失敗し続けています...

rickkkkk

総合スコア11

Ruby

Rubyはプログラミング言語のひとつで、オープンソース、オブジェクト指向のプログラミング開発に対応しています。

Heroku

HerokuはHeroku社が開発と運営を行っているPaaSの名称です。RubyやNode.js、Python、そしてJVMベース(Java、Scala、Clojureなど)の複数のプログラミング言語をサポートしている。

Ruby on Rails

Ruby on Railsは、オープンソースのWebアプリケーションフレームワークです。「同じことを繰り返さない」というRailsの基本理念のもと、他のフレームワークより少ないコードで簡単に開発できるよう設計されています。

0グッド

0クリップ

投稿2018/09/15 11:49

前提・実現したいこと

ruby初心者です。
herokuでgit push heroku masterコマンドを実行した所、
失敗してしまい、いまいち原因がわかりません...

remote: Installing nokogiri 1.6.8.1 with native extensions remote: Gem::Ext::BuildError: ERROR: Failed to build gem native extension.

nokogiriのせいなのかなんなのか...

発生しているエラーメッセージ

Counting objects: 1195, done. Delta compression using up to 4 threads. Compressing objects: 100% (981/981), done. Writing objects: 100% (1195/1195), 22.19 MiB | 4.08 MiB/s, done. Total 1195 (delta 132), reused 1 (delta 0) remote: Compressing source files... done. remote: Building source: remote: remote: -----> Ruby app detected remote: -----> Compiling Ruby/Rails remote: -----> Using Ruby version: ruby-2.4.4 remote: remote: ###### WARNING: remote: remote: You have the `.bundle/config` file checked into your repository remote: It contains local state like the location of the installed bundle remote: as well as configured git local gems, and other settings that should remote: not be shared between multiple checkouts of a single repo. Please remote: remove the `.bundle/` folder from your repo and add it to your `.gitignore` file. remote: https://devcenter.heroku.com/articles/bundler-configuration remote: remote: -----> Installing dependencies using bundler 1.15.2 remote: Running: bundle install --without development:test --path vendor/bundle --binstubs vendor/bundle/bin -j4 --deployment remote: Warning: the running version of Bundler (1.15.2) is older than the version that created the lockfile (1.15.3). We suggest you upgrade to the latest version of Bundler by running `gem install bundler`. remote: Fetching gem metadata from https://rubygems.org/.......... remote: Fetching version metadata from https://rubygems.org/.. remote: Fetching dependency metadata from https://rubygems.org/. remote: Fetching rake 11.3.0 〜 中略 〜 remote: Fetching nokogiri 1.6.8.1 remote: Installing nokogiri 1.6.8.1 with native extensions remote: Gem::Ext::BuildError: ERROR: Failed to build gem native extension. remote: remote: current directory: remote: /tmp/build_b24b6c3a0d1171b4904d72a16063ada3/vendor/bundle/ruby/2.4.0/gems/json-1.8.3/ext/json/ext/generator remote: /tmp/build_b24b6c3a0d1171b4904d72a16063ada3/vendor/ruby-2.4.4/bin/ruby -r remote: ./siteconf20180915-327-1ay33np.rb extconf.rb remote: creating Makefile remote: remote: current directory: remote: /tmp/build_b24b6c3a0d1171b4904d72a16063ada3/vendor/bundle/ruby/2.4.0/gems/json-1.8.3/ext/json/ext/generator remote: make "DESTDIR=" clean remote: remote: current directory: remote: /tmp/build_b24b6c3a0d1171b4904d72a16063ada3/vendor/bundle/ruby/2.4.0/gems/json-1.8.3/ext/json/ext/generator remote: make "DESTDIR=" remote: compiling generator.c remote: generator.c: In function ‘generate_json’: remote: generator.c:861:25: error: ‘rb_cFixnum’ undeclared (first use in this function) remote: } else if (klass == rb_cFixnum) { remote: ^ remote: generator.c:861:25: note: each undeclared identifier is reported only once for remote: each function it appears in remote: generator.c:863:25: error: ‘rb_cBignum’ undeclared (first use in this function) remote: } else if (klass == rb_cBignum) { remote: ^ remote: generator.c: At top level: remote: cc1: warning: unrecognized command line option ‘-Wno-self-assign’ remote: cc1: warning: unrecognized command line option ‘-Wno-constant-logical-operand’ remote: cc1: warning: unrecognized command line option ‘-Wno-parentheses-equality’ remote: cc1: warning: unrecognized command line option ‘-Wno-tautological-compare’ remote: Makefile:241: recipe for target 'generator.o' failed remote: make: *** [generator.o] Error 1 remote: remote: make failed, exit code 2 remote: remote: Gem files will remain installed in remote: /tmp/build_b24b6c3a0d1171b4904d72a16063ada3/vendor/bundle/ruby/2.4.0/gems/json-1.8.3 remote: for inspection. remote: Results logged to remote: /tmp/build_b24b6c3a0d1171b4904d72a16063ada3/vendor/bundle/ruby/2.4.0/extensions/x86_64-linux/2.4.0/json-1.8.3/gem_make.out remote: remote: An error occurred while installing json (1.8.3), and Bundler cannot continue. remote: Make sure that `gem install json -v '1.8.3'` succeeds before bundling. remote: remote: In Gemfile: remote: rails_admin was resolved to 1.1.1, which depends on remote: rails was resolved to 4.2.7, which depends on remote: actionmailer was resolved to 4.2.7, which depends on remote: actionpack was resolved to 4.2.7, which depends on remote: actionview was resolved to 4.2.7, which depends on remote: rails-dom-testing was resolved to 1.0.7, which depends on remote: rails-deprecated_sanitizer was resolved to 1.0.3, which depends on remote: activesupport was resolved to 4.2.7, which depends on remote: json remote: remote: ! remote: ! Failed to install gems via Bundler. remote: ! remote: ! Push rejected, failed to compile Ruby app. remote: remote: ! Push failed remote: Verifying deploy... remote: remote: ! Push rejected to lba2018. remote:

試したこと

nokogiriの入れ直しをしてみたのですが、結果は変わりませんでした。
むしろnokogiri自体もう使っていないので、gemから削除したいのですが、
それすらもやり方がわからず...

気になる質問をクリップする

クリップした質問は、後からいつでもMYページで確認できます。

またクリップした質問に回答があった際、通知やメールを受け取ることができます。

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

guest

回答1

0

ベストアンサー

bundle updateしてGemfile.lockを更新してみてはどうでしょう

投稿2018/09/15 11:53

asm

総合スコア15147

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

rickkkkk

2018/09/15 12:14

bundle update でうまくいきました! ありがとうございます!!!!!
guest

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

15分調べてもわからないことは
teratailで質問しよう!

ただいまの回答率
85.50%

質問をまとめることで
思考を整理して素早く解決

テンプレート機能で
簡単に質問をまとめる

質問する

関連した質問