前提・実現したいこと
Rails6.0
active_storageを利用して登録しているpdfのpreview機能を作成したいと思っています。
発生している問題・エラーメッセージ
そこで、poppler gemが必要になったので導入しようとしているのですが、エラーが出てしまいます。
bundle install
自体は完了したのですが、rails cなどでrailsを立ち上げようとすると以下のエラーが発生します。
/usr/local/bundle/gems/bootsnap-1.4.5/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require': Error loading shared library libgirepository-1.0.so.1: No such file or directory (needed by /usr/local/bundle/gems/gobject-introspection-3.4.1/lib/gobject_introspection.so) - /usr/local/bundle/gems/gobject-introspection-3.4.1/lib/gobject_introspection.so (LoadError)
試したこと
apk add
で以下のものを追加しています。
cairo-dev
gobject-introspection-dev
poppler-dev
あなたの回答
tips
プレビュー