# オンラインアップデートは成功したが、リビルドは失敗した。

**URL:** <https://meta.discourse.org/t/online-update-succeeds-but-rebuild-fails/346158>\
**Category:** Development\
**Created:** [2025 年 1 月 8 日午前 11:14 UTC](https://meta.discourse.org/t/online-update-succeeds-but-rebuild-fails/346158 "2025-01-08T11:14:00Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)\
**Post date:** [2025 年 1 月 8 日午前 11:14 UTC](https://meta.discourse.org/t/online-update-succeeds-but-rebuild-fails/346158/1 "2025-01-08T11:14:00Z")

</div>

オンラインアップデートとコマンドラインアップデートの違いを示す可能性のある興味深い問題を見つけました。

[rmagick gem](https://github.com/rmagick/rmagick) を使用したプラグインのオンラインアップデートを実行すると、成功します。

しかし、CLIで再構築すると、次のエラーが発生します。

```plaintext
ERROR: Error installing rmagick:
	ERROR: Failed to build gem native extension.

    current directory: /var/www/discourse/plugins/discourse-topic-previews-sidecar/gems/3.3.6/gems/rmagick-6.0.1/ext/RMagick
/usr/local/bin/ruby extconf.rb
checking for brew... no
checking for pacman... no
checking for Ruby version >= 3.0.0... yes
***extconf.rb failed***
Could not create Makefile due to some reason, probably lack of necessary
libraries and/or headers. Check the mkmf.log file for more details. You may
need configuration options.

Provided configuration options:
	--with-opt-dir
	--without-opt-dir
	--with-opt-include=${opt-dir}/include
	--without-opt-include
	--with-opt-lib=${opt-dir}/lib
	--without-opt-lib
	--with-make-prog
	--without-make-prog
	--srcdir=.
	--curdir
	--ruby=/usr/local/bin/$(RUBY_BASE_NAME)
	--with-pkg-config
	--without-pkg-config
	--with-override-variables
	--without-override-variables
/var/www/discourse/plugins/discourse-topic-previews-sidecar/gems/3.3.6/gems/pkg-config-1.5.6/lib/pkg-config.rb:504:in `parse_pc': .pc doesn't exist: <MagickCore> (PackageConfig::NotFoundError)

```

gem は完全なビルド中にのみビルドされますか？それとも、Ruby のバージョンがインクリメントされ、完全な再ビルドでのみ実行される可能性がありますか？（これにより、gem の再作成が強制されますか？）

---

_[View the full topic](https://meta.discourse.org/t/online-update-succeeds-but-rebuild-fails/346158)._
