<div dir="ltr"><div>If it still works on the machine you built on, then you still have the shared libraries present and as long as they are present, it will probably link to them. The idea of --disable-shared is not to have the shared libraries present, but it probably won&#39;t have that effect unless you do a &quot;make uninstall&quot; and/or &quot;make clean&quot; before reconfiguring and rebuilding. If I were you, I would blow away the whole src directory and start from scratch.<br><br></div>Cheers,<br><br>Ted<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Nov 13, 2014 at 11:07 AM, Jeffrey Milloy <span dir="ltr">&lt;<a href="mailto:jeffrey.a.milloy@gmail.com" target="_blank">jeffrey.a.milloy@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_default" style="font-size:small">In fact, not only does it look like cbc is still loading shared libraries, it looks like it is still loading them from the src (/usr/local/src/CoinMP), rather than the installation location (/opt/cbc)</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">







<p><span><font face="monospace">$ ldd /opt/cbc/bin/cbc </font></span></p>
<p><span><font face="monospace"><span>        </span>linux-vdso.so.1 =&gt;  (0x00007fff2beb0000)</font></span></p>
<p><span><font face="monospace"><span>        </span>libCgl.so.0 =&gt; /usr/local/src/CoinMP/Cgl/src/.libs/libCgl.so.0 (0x00007fb4de838000)</font></span></p>
<p><span><font face="monospace"><span>        </span>libOsiClp.so.0 =&gt; /usr/local/src/CoinMP/Clp/src/OsiClp/.libs/libOsiClp.so.0 (0x00007fb4de5f0000)</font></span></p>
<p><span><font face="monospace"><span>        </span>libClp.so.0 =&gt; /usr/local/src/CoinMP/Clp/src/.libs/libClp.so.0 (0x00007fb4de250000)</font></span></p>
<p><span><font face="monospace"><span>        </span>libOsi.so.0 =&gt; /usr/local/src/CoinMP/Osi/src/Osi/.libs/libOsi.so.0 (0x00007fb4ddff8000)</font></span></p>
<p><span><font face="monospace"><span>        </span>libCoinUtils.so.0 =&gt; /usr/local/src/CoinMP/CoinUtils/src/.libs/libCoinUtils.so.0 (0x00007fb4ddcc0000)</font></span></p>
<p><span><font face="monospace"><span>        </span>libstdc++.so.6 =&gt; /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007fb4dd9a8000)</font></span></p>
<p><span><font face="monospace"><span>        </span>libm.so.6 =&gt; /lib/x86_64-linux-gnu/libm.so.6 (0x00007fb4dd6a0000)</font></span></p>
<p><span><font face="monospace"><span>        </span>libgcc_s.so.1 =&gt; /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007fb4dd488000)</font></span></p>
<p><span><font face="monospace"><span>        </span>libc.so.6 =&gt; /lib/x86_64-linux-gnu/libc.so.6 (0x00007fb4dd0c0000)</font></span></p>
<p><span><font face="monospace"><span>        </span>/lib64/ld-linux-x86-64.so.2 (0x00007fb4deb50000)</font></span></p></div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Nov 13, 2014 at 1:53 PM, Jeffrey Milloy <span dir="ltr">&lt;<a href="mailto:jeffrey.a.milloy@gmail.com" target="_blank">jeffrey.a.milloy@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_default" style="font-size:small">I just tried that, still no success.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">I built all of coin-or:</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">./configure --enable-static --disable-shared --prefix=/opt/coin-or</div><div class="gmail_default" style="font-size:small">make </div><div class="gmail_default" style="font-size:small">make test</div><div class="gmail_default" style="font-size:small">sudo make install</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">The cbc binary is 1.7M, so it seems like it should work. It works on the machine I built on, but I copied the binary to my EC2 instance and got the missing shared library (libCgl) message again.</div></div><div><div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Nov 13, 2014 at 1:48 PM, Ted Ralphs <span dir="ltr">&lt;<a href="mailto:ted@lehigh.edu" target="_blank">ted@lehigh.edu</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Try also doing --disable-shared. I think that should get rid of the dependence on the COIN libraries. <br><br></div>Cheers,<br><br>Ted<br></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div>On Thu, Nov 13, 2014 at 10:14 AM, Jeffrey Milloy <span dir="ltr">&lt;<a href="mailto:jeffrey.a.milloy@gmail.com" target="_blank">jeffrey.a.milloy@gmail.com</a>&gt;</span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div><div dir="ltr"><div class="gmail_default" style="font-size:small">Hello</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">I am trying to run CBC through AWS EMR. I think I need to build CBC statically so that I can put a standalone binary onto S3 storage. Is it possible?</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">I tried with ./configure --enable-static but the cbc resulting cbc binary still tried to load the shared library libCgl.so.0.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Jeff</div></div>
<br></div></div>_______________________________________________<br>
Cbc mailing list<br>
<a href="mailto:Cbc@list.coin-or.org" target="_blank">Cbc@list.coin-or.org</a><br>
<a href="http://list.coin-or.org/mailman/listinfo/cbc" target="_blank">http://list.coin-or.org/mailman/listinfo/cbc</a><br>
<br></blockquote></div><span><font color="#888888"><br><br clear="all"><br>-- <br><div><div dir="ltr">Dr. Ted Ralphs<br>Professor, Lehigh University<br><a href="tel:%28610%29%20628-1280" value="+16106281280" target="_blank">(610) 628-1280</a><br>ted &#39;at&#39; lehigh &#39;dot&#39; edu<br><a href="http://coral.ie.lehigh.edu/~ted" target="_blank">coral.ie.lehigh.edu/~ted</a><br></div></div>
</font></span></div>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature"><div dir="ltr">Dr. Ted Ralphs<br>Professor, Lehigh University<br>(610) 628-1280<br>ted &#39;at&#39; lehigh &#39;dot&#39; edu<br><a href="http://coral.ie.lehigh.edu/~ted" target="_blank">coral.ie.lehigh.edu/~ted</a><br></div></div>
</div>