title: Run SWI-Prolog binary without swipl installed on the machine
body: <p>I want to run swi-prolog program on the machine (actually a server) where there is no prolog installed.</p>
  
  <p>The prolog code <code>swipl_test.pl</code>:</p>
  
  <pre><code> main :- write('Hello, world\n').
  </code></pre>
  
  <p>On the local machine <code>4.4.0-64-generic #85~14.04.1-Ubuntu SMP Mon Feb 20 12:10:54 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux</code> making the binary <code>hello</code> with <code>SWI-Prolog version 7.2.3 for amd64</code>:</p>
  
  <pre><code>swipl  --goal=main --toplevel=halt --stand_alone=true  --foreign=save  -o hello1 -c swipl_test.pl
  </code></pre>
  
  <p>Moving <code>hello</code> on the remote machine <code>2.6.32-5-amd64 #1 SMP Wed Jun 17 16:09:06 UTC 2015 x86_64 GNU/Linux</code> gives the following error:</p>
  
  <pre><code>error while loading shared libraries: libswipl.so.7.2: cannot open shared object file: No such file or directory 
  </code></pre>
  
  <p>How I can prepare a self-contained binary from a prolog code?
  I do not have sudo rights on the remote machine.</p>