I am using Yocto, and as per my project requirement I need to include lmsensors package in yocto image. I have included lmsensors package, and I am able to run sensors command but get following errors while running sensors-detect:
Can't locate Fcntl.pm in @INC (you may need to install the Fcntl module)
(@INC contains:
/usr/lib/perl5/site_perl/5.28.1/i686-linux
/usr/lib/perl5/site_perl/5.28.1
/usr/lib/perl5/vendor_perl/5.28.1/i686-linux
/usr/lib/perl5/vendor_perl/5.28.1
/usr/lib/perl5/5.28.1/i686-linux
/usr/lib/perl5/5.28.1
.) at /usr/sbin/sensors-detect line 26.
BEGIN failed--compilation aborted at /usr/sbin/sensors-detect line 26.
(Line breaks added for readability.)
When I try to find Fcntl.pm module, I can see it is present here /usr/lib64/perl5/5.28.1/x86_64-linux/Fcntl.pm.
Questions?
- Why
sensors-detectdoesn't look intolib64and only look intolib(32 bit) folders? - Why
32 bitFcntl.pm is not getting generated? - How to resolve above error?
Edit:
I am using multilib in machine config. Can it cause this issue?
require conf/multilib.conf
MULTILIBS = "multilib:lib32"
DEFAULTTUNE_virtclass-multilib-lib32 = "corei7-32"