<span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; ">I ran a simple program using boost mpi but I found some problems with that. I have given the code and actions I have done. The ldd clearly says it cant find many libraries. I am not sure how to fix this. Could anybody help me ?<br>

<div><br></div><div>main.cpp</div><div><span style="font-family: sans-serif; font-size: medium; "><pre style="white-space: pre-wrap; word-wrap: break-word; font-size: 9pt; display: block; margin-top: 1pc; margin-right: 49px; margin-bottom: 0pc; margin-left: 49px; padding-top: 0.5pc; padding-right: 0.5pc; padding-bottom: 0.5pc; padding-left: 0.5pc; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: rgb(220, 220, 220); border-right-color: rgb(220, 220, 220); border-bottom-color: rgb(220, 220, 220); border-left-color: rgb(220, 220, 220); ">

<span style="color: rgb(64, 32, 128); ">#include</span> <span style="color: rgb(112, 112, 112); ">&lt;</span><span style="color: rgb(0, 0, 0); ">boost</span><span style="color: rgb(112, 112, 112); ">/</span><span style="color: rgb(0, 0, 0); ">mpi</span><span style="color: rgb(112, 112, 112); ">/</span><span style="color: rgb(0, 0, 0); ">environment</span><span style="color: rgb(112, 112, 112); ">.</span><span style="color: rgb(0, 0, 0); ">hpp</span><span style="color: rgb(112, 112, 112); ">&gt;</span>
<span style="color: rgb(64, 32, 128); ">#include</span> <span style="color: rgb(112, 112, 112); ">&lt;</span><span style="color: rgb(0, 0, 0); ">boost</span><span style="color: rgb(112, 112, 112); ">/</span><span style="color: rgb(0, 0, 0); ">mpi</span><span style="color: rgb(112, 112, 112); ">/</span><span style="color: rgb(0, 0, 0); ">communicator</span><span style="color: rgb(112, 112, 112); ">.</span><span style="color: rgb(0, 0, 0); ">hpp</span><span style="color: rgb(112, 112, 112); ">&gt;</span>
<span style="color: rgb(64, 32, 128); ">#include</span> <span style="color: rgb(112, 112, 112); ">&lt;</span><span style="color: rgb(0, 0, 0); ">iostream</span><span style="color: rgb(112, 112, 112); ">&gt;</span>
<span style="color: rgb(0, 0, 170); ">namespace</span> <span style="color: rgb(0, 0, 0); ">mpi</span> <span style="color: rgb(112, 112, 112); ">=</span> <span style="color: rgb(0, 0, 0); ">boost</span><span style="color: rgb(112, 112, 112); ">::</span><span style="color: rgb(0, 0, 0); ">mpi</span><span style="color: rgb(112, 112, 112); ">;</span>

<span style="color: rgb(0, 0, 170); ">int</span> <span style="color: rgb(0, 0, 0); ">main</span><span style="color: rgb(112, 112, 112); ">(</span><span style="color: rgb(0, 0, 170); ">int</span> <span style="color: rgb(0, 0, 0); ">argc</span><span style="color: rgb(112, 112, 112); ">,</span> <span style="color: rgb(0, 0, 170); ">char</span><span style="color: rgb(112, 112, 112); ">*</span> <span style="color: rgb(0, 0, 0); ">argv</span><span style="color: rgb(112, 112, 112); ">[])</span> 
<span style="color: rgb(112, 112, 112); ">{</span>
  <span style="color: rgb(0, 0, 0); ">mpi</span><span style="color: rgb(112, 112, 112); ">::</span><span style="color: rgb(0, 0, 0); ">environment</span> <span style="color: rgb(0, 0, 0); ">env</span><span style="color: rgb(112, 112, 112); ">(</span><span style="color: rgb(0, 0, 0); ">argc</span><span style="color: rgb(112, 112, 112); ">,</span> <span style="color: rgb(0, 0, 0); ">argv</span><span style="color: rgb(112, 112, 112); ">);</span>
  <span style="color: rgb(0, 0, 0); ">mpi</span><span style="color: rgb(112, 112, 112); ">::</span><span style="color: rgb(0, 0, 0); ">communicator</span> <span style="color: rgb(0, 0, 0); ">world</span><span style="color: rgb(112, 112, 112); ">;</span>
  <span style="color: rgb(0, 0, 0); ">std</span><span style="color: rgb(112, 112, 112); ">::</span><span style="color: rgb(0, 0, 0); ">cout</span> <span style="color: rgb(112, 112, 112); ">&lt;&lt;</span> <span style="color: teal; ">&quot;I am process &quot;</span> <span style="color: rgb(112, 112, 112); ">&lt;&lt;</span> <span style="color: rgb(0, 0, 0); ">world</span><span style="color: rgb(112, 112, 112); ">.</span><span style="color: rgb(0, 0, 0); ">rank</span><span style="color: rgb(112, 112, 112); ">()</span> <span style="color: rgb(112, 112, 112); ">&lt;&lt;</span> <span style="color: teal; ">&quot; of &quot;</span> <span style="color: rgb(112, 112, 112); ">&lt;&lt;</span> <span style="color: rgb(0, 0, 0); ">world</span><span style="color: rgb(112, 112, 112); ">.</span><span style="color: rgb(0, 0, 0); ">size</span><span style="color: rgb(112, 112, 112); ">()</span>
            <span style="color: rgb(112, 112, 112); ">&lt;&lt;</span> <span style="color: teal; ">&quot;.&quot;</span> <span style="color: rgb(112, 112, 112); ">&lt;&lt;</span> <span style="color: rgb(0, 0, 0); ">std</span><span style="color: rgb(112, 112, 112); ">::</span><span style="color: rgb(0, 0, 0); ">endl</span><span style="color: rgb(112, 112, 112); ">;</span>
  <span style="color: rgb(0, 0, 170); ">return</span> <span style="color: teal; ">0</span><span style="color: rgb(112, 112, 112); ">;</span>
<span style="color: rgb(112, 112, 112); ">}</span></pre></span></div><div><br></div><div><br></div><div><br></div><div><div>[pragatheeswaran@prairiefire ~]$ mpic++ -I bin/boostpath/include main.cpp -L bin/boostpath/lib/ -lboost_mpi -lboost_serialization</div>

<div>[pragatheeswaran@prairiefire ~]$ ldd a.out�</div><div><span style="white-space: pre; ">	</span>libboost_mpi.so.1.41.0 =&gt; not found</div><div><span style="white-space: pre; ">	</span>libboost_serialization.so.1.41.0 =&gt; not found</div>

<div><span style="white-space: pre; ">	</span>libmpi_cxx.so.0 =&gt; not found</div><div><span style="white-space: pre; ">	</span>libmpi.so.0 =&gt; not found</div><div><span style="white-space: pre; ">	</span>libopen-rte.so.0 =&gt; not found</div>

<div><span style="white-space: pre; ">	</span>libopen-pal.so.0 =&gt; not found</div><div><span style="white-space: pre; ">	</span>libdl.so.2 =&gt; /lib64/libdl.so.2 (0x0000003b54200000)</div><div><span style="white-space: pre; ">	</span>libnsl.so.1 =&gt; /lib64/libnsl.so.1 (0x0000003b57200000)</div>

<div><span style="white-space: pre; ">	</span>libutil.so.1 =&gt; /lib64/libutil.so.1 (0x0000003b64400000)</div><div><span style="white-space: pre; ">	</span>libstdc++.so.6 =&gt; /usr/lib64/libstdc++.so.6 (0x0000003c63800000)</div>

<div><span style="white-space: pre; ">	</span>libm.so.6 =&gt; /lib64/libm.so.6 (0x0000003b54600000)</div><div><span style="white-space: pre; ">	</span>libgcc_s.so.1 =&gt; /lib64/libgcc_s.so.1 (0x0000003c66600000)</div><div>

<span style="white-space: pre; ">	</span>libpthread.so.0 =&gt; /lib64/libpthread.so.0 (0x0000003b54a00000)</div><div><span style="white-space: pre; ">	</span>libc.so.6 =&gt; /lib64/libc.so.6 (0x0000003b53e00000)</div><div>

<span style="white-space: pre; ">	</span>/lib64/ld-linux-x86-64.so.2 (0x0000003b53a00000)</div><div>[pragatheeswaran@prairiefire ~]$ mpirun -np 4 a.out�</div><div>a.out: error while loading shared libraries: libboost_mpi.so.1.41.0: cannot open shared object file: No such file or directory</div>

<div>a.out: error while loading shared libraries: libboost_mpi.so.1.41.0: cannot open shared object file: No such file or directory</div><div>a.out: error while loading shared libraries: libboost_mpi.so.1.41.0: cannot open shared object file: No such file or directory</div>

<div>a.out: error while loading shared libraries: libboost_mpi.so.1.41.0: cannot open shared object file: No such file or directory</div><div>[pragatheeswaran@prairiefire ~]$�</div><div><br></div><div><br></div><div><br>
</div>
</div></span>Thanks,<br>Praga.<br>