title: error while loading shared libraries in sudo
body: <p>I read documentation on <a href="https://github.com/openyou/libomron/blob/master/README.asciidoc" rel="nofollow noreferrer">https://github.com/openyou/libomron/blob/master/README.asciidoc</a></p>
  
  <p>Exec:</p>
  
  <pre><code>cd /
  sudo find . | grep libomron.so.0.9.0
  </code></pre>
  
  <p>result:</p>
  
  <pre><code>./home/splincode/Develop/omron/c++_modules/libomron/omron-build/lib/
  </code></pre>
  
  <p>Okey, I add library in global path</p>
  
  <pre><code>LD_LIBRARY_PATH=/usr/local/lib
  LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/splincode/Develop/omron/c++_modules/libomron/omron-build/lib/
  export LD_LIBRARY_PATH
  </code></pre>
  
  <p>Then it's work:</p>
  
  <pre><code> cd ~/Develop/omron/usr/local/bin/
   ./omron_790IT_test
  </code></pre>
  
  <p>But, not access in hardware, result</p>
  
  <pre><code> Found 1 omron 790ITs
   Cannot open omron 790IT!
  </code></pre>
  
  <p>as a result, I began to run as administrator, but he does not see the library, what to do?</p>
  
  <pre><code>sudo ./omron_790IT_test
  </code></pre>
  
  <p>Result:</p>
  
  <pre><code> ./omron_790IT_test: error while loading shared libraries: libomron.so.0.9.0: cannot open shared object file: No such file or directory
  </code></pre>