# 在线更新成功，但重建失败

**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:** 3

<div class="post-metadata">

作者： ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)\
发布日期： [2025 年1 月 8 日 11:45 UTC](https://meta.discourse.org/t/online-update-succeeds-but-rebuild-fails/346158/3 "2025-01-08T11:45:12Z")

</div>

@featheredtoast 知道这是否可能影响了 rmagick gem 吗？：

> <https://github.com/discourse/discourse_docker/commit/5ed07ecc93309003eeca589f7e526f872a098d4a>
>
> compiles to a single portable binary
> 
> Create a base builder package with compi…le time dependencies. Create an
> imagemagick\_builder to build imagemagick.
> 
> The base builder can be extended for other builders.
> 
> Add imagemagick runtime dependencies to discourse\_dependencies image
> avoid -dev libs
> 
> Statically compile as much as possible with --disable-shared and
> \--enable-delegate-build flags.
> References:
> https://stackoverflow.com/questions/47031789/imagemagick-100-static-build-for-linux
> https://www.imagemagick.org/discourse-server/viewtopic.php?t=14259
> 
> Add fonts-urw-base35 for NimbusSans-Regular, needed for letter avatar generation
> 
> Copy over the resulting magick bin, as well as etc and share files from the
> compilation. etc is needed for magick to run, share is not, but contains
> translations for errors which Discourse tests are dependent on reading from.
> 
> Create symlinks for other magick tooling - imagemagick creates symlink tool
> names that Discourse uses. These \*could\* be dropped if Discourse decided to use
> \`magick {toolname}\` rather than \`{toolname}\`.
> 
> Add nginx compile dependency - building nginx still needs libfreetype6
> This was implicitly installed previously. Removing the imagemagick build from
> base broke the next nginx build. Add this dependency back in. This dependency
> can be removed once we build nginx separately as well.

是否同时升级了 imagemagick 版本？

---

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