自己紹介
株式会社digitalbigmoのパイプラインエンジニアの小池@plinecomです。
これは何?
pythonのOpenEXRモジュールをpipで入れようとすると、以下のようなエラーが出ることがある。
RockyLinux 8 での対処方法を記す。
terminal
OpenEXR.cpp:36:10: fatal error: ImfIO.h: No such file or directory
#include <ImfIO.h>
^~~~~~~~~
compilation terminated.
error: command 'gcc' failed with exit status 1
対処方法
terminal
dnf install -y python3 python3-devel gcc gcc-c++ epel-release zlib-devel
dnf config-manager --set-enabled powertools
dnf localinstall -y --nogpgcheck https://download1.rpmfusion.org/free/el/rpmfusion-free-release-8.noarch.rpm
dnf install -y OpenEXR-devel
pip3 install OpenEXR
おまじないのように上記の呪文を1行ずつ順番に唱える。
簡単に解説すると、pipで引っ張ってきているOpenEXRのソースが足りないっぽいので、いっそのこと別のところからコンパイル済みのバイナリをもらってきて、それで充足している。
宣伝
株式会社digitalbigmoでは美肌プラグインの販売や映像VFXの制作業務を行なっています。ご興味のある方は、webページを見にきてください。一緒にお仕事しましょう。