title: error while loading shared libraries: libPocoNet.so.60: cannot open shared object file: No such file or directory
body: <p>The below command returns</p>
  
  <pre><code>sudo find / -name libPocoNet.so
  
      /home/sandeep/server2/poco/cmake-build/lib/libPocoNet.so
      /home/sandeep/server/cmake_build/lib/libPocoNet.so
      /home/sandeep/server/poco/cmake_build/lib/libPocoNet.so
      /home/sandeep/server/poco/lib/Linux/x86_64/libPocoNet.so
      /usr/local/lib/libPocoNet.so
  </code></pre>
  
  <p>to compile code I am using </p>
  
  <pre><code>g++ poco.cpp  -lPocoNet
  </code></pre>
  
  <p>while execution</p>
  
  <p>I am getting the error
  error while loading shared libraries: libPocoNet.so.60: cannot open shared object file: No such file or directory</p>
  
  <p>how I built the source</p>
  
  <pre><code>$ git clone -b master https://github.com/pocoproject/poco.git
  $ cd poco
  $ mkdir cmake-build
  $ cd cmake-build
  $ cmake .. &amp;&amp; cmake --build .
  $ sudo cmake --build . --target install
  $ cd ..
  $ ./configure
  $ make -s -j4
  $ cd cmake-build
  $ make -s -j4
  $ cd ..
  $ sudo make install
  $ cd cmake-build
  $ sudo make install
  </code></pre>
  
  <p>-----------solved using-------------------</p>
  
  <pre><code>sandeep@sandeep:~$ LD_LIBRARY_PATH=/usr/local/lib
  sandeep@sandeep:~$ export LD_LIBRARY_PATH
  sandeep@sandeep:~$ g++ poco.cpp -lPocoNet
  sandeep@sandeep:~$ ./a.out
  </code></pre>