title: How to install the program depending on libstdc++ library
body: <p>My program is written in C++, using GCC on Ubuntu 9.10 64 bit. If depends on /usr/lib64/libstdc++.so.6 which actually points to /usr/lib64/libstdc++.so.6.0.13. Now I copy this program to virgin Ubuntu 7.04 system and try to run it. It doesn't run, as expected. Then I add to the program directory the following files:</p>
  
  <ul>
  <li>libstdc++.so.6.0.13</li>
  <li>libstdc++.so.6 (links to libstdc++.so.6.0.13)</li>
  </ul>
  
  <p>Execute command:</p>
  
  <pre><code>LD_LIBRARY_PATH=. ./myprogram
  </code></pre>
  
  <p>Now everything is OK. The question: how can I write installation script for such program? myprogram file itself should be placed to /usr/local/bin. What can I do with dependencies? For example, on destination computer, /usr/lib64/libstdc++.so.6 link points to /usr/lib64/libstdc++.so.6.0.8. What can I do with this?</p>
  
  <p>Note: the program is closed-source, I cannot provide source code and makefile.</p>