title: "Can't locate Fcntl.pm in @INC" error running "sensors-detect" on Yocto
body: <p>I am using Yocto, and as per my project requirement I need to include <code>lmsensors</code> package in yocto image. I have included <code>lmsensors</code> package, and I am able to run <code>sensors</code> command but get following errors while running <code>sensors-detect</code>:</p>
  <pre class="lang-none prettyprint-override"><code>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.
  </code></pre>
  <p>(Line breaks added for readability.)</p>
  <p>When I try to find <code>Fcntl.pm</code> module, I can see it is present here <code>/usr/lib64/perl5/5.28.1/x86_64-linux/Fcntl.pm</code>.</p>
  <p>Questions?</p>
  <ul>
  <li>Why <code>sensors-detect</code> doesn't look into <code>lib64</code> and only look into <code>lib</code>(32 bit) folders?</li>
  <li>Why <code>32 bit</code> Fcntl.pm is not getting generated?</li>
  <li>How to resolve above error?</li>
  </ul>
  <p><strong>Edit:</strong>
  I am using <code>multilib</code> in machine config. Can it cause this issue?</p>
  <pre><code>require conf/multilib.conf                                                                                                                                         
  MULTILIBS = &quot;multilib:lib32&quot;
  DEFAULTTUNE_virtclass-multilib-lib32 = &quot;corei7-32&quot;
  </code></pre>