LoginSignup
0
0

More than 3 years have passed since last update.

libMagickWand-6.Q16.so.3: cannot open shared object file: No such file or directory - /home/circleci/project/vendor/bundle/gems/rmagick-2.16.0/lib/RMagick2.so

Posted at

事象

CircleCiでbundle installを実行し、rspecのテストを走らせた時に発生。

An error occurred while loading ./spec/models/hoge_spec.rb.
Failure/Error: require File.expand_path('../../config/environment', FILE)

LoadError:
libMagickWand-6.Q16.so.3: cannot open shared object file: No such file or directory - /home/circleci/project/vendor/bundle/gems/rmagick-2.16.0/lib/RMagick2.so

原因

不明。特にrmagick絡みは弄っていなかったが、急に発生した。

対処

アンインストールしてインストールしたら直るよ的な投稿を発見。
https://stackoverflow.com/questions/16684544/libmagickcore-so-4-cannot-open-shared-object-file-no-such-file-or-directory

CircleCiでvendor/bundleフォルダをキャッシュ→リストアしていたので、一時的にコメントアウトしてをリストアしないようにした。

# Restore bundle cache
# - restore_cache:
#     keys:
#       - rails-hoge-{{ checksum "Gemfile.lock" }}
#       - rails-hoge-

問題なくテストが通りました。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0