<div dir="ltr">Just to close the loop, I made some additional improvements based on JP's feedback. ldconfig is now run automatically after the install on Linux whenever the install directory is not writable. It turns out that ldconfig is run automatically by libtool EXCEPT in the case of installing a directory that is in the system default library path. There doesn't seem to be a very good reason for this, but that's what it is.<div><br></div><div>I added some additional output explaining this and also changed the default verbosity level to 1 to remove some of the visual chaff. </div><div><br></div><div>By the way, another useful tidbit is that the default version that is fetched is the git master version, which is the development version (under our current workflow). The script now suggests that you might want to try the latest release, which you can get with</div><div><br></div><div>coinbrew fetch Cbc:releases/2.10.3 --no-prompt</div><div><br></div><div>Have fun!</div><div><br></div><div>Cheers,</div><div><br></div><div>Ted</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Sep 9, 2019 at 5:41 PM Ted Ralphs <<a href="mailto:ted@lehigh.edu">ted@lehigh.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">JP,<div><br></div><div>A huge thanks to you, too, for the feedback. It helps a lot hearing from people who are using these tools, especially as they are in development. I actually don't have too much occasion to install to /usr/local, as I've always got many different builds that I'm working with locally. It helps to know what the experience is like for someone who just wants to install in /usr/local and leave it. I thought we were actually embedding the location of the libraries in the binary and that this issue shouldn't come up. I'll check into why that doesn't seem to be working.</div><div><br></div><div>For posterity, a general solution to your issue would have been to add</div><div><br></div><div>export LD_LIBRARY_PATH=/usr/local/lib</div><div><br></div><div>to your ~/.bashrc, which should work on any platform. The ldconfig solutions is easier on Ubuntu, but it is only a bit of luck that it works because /usr/local/lib is listed in /etc/ld.so.conf.d/libc.conf. </div><div><br></div><div>I'm going to update the documentation and also put some messages into coinbrew itself to prompt people to what to do if they encounter this issue. Thanks again for your feedback!</div><div><br></div><div>Cheers,</div><div><br></div><div>Ted</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Sep 9, 2019 at 4:28 PM JP Fasano <<a href="mailto:jpfasano@gmail.com" target="_blank">jpfasano@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi Ted,<div><br></div><div>Everything is now building and running.</div><div>A huge thank you for your help.</div><div><br></div><div>After successfully doing the install with</div><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><div>sudo ./coinbrew install Cbc</div></blockquote><div>the cbc standalone executable was not running (even after rebooting the machine).</div><div>Here is what happened:</div><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><div><div><font face="monospace">jpfasano@WitOpenSource:~/coinCbc$ cbc</font></div></div><div><div><font face="monospace">cbc: error while loading shared libraries: libCbcSolver.so.0: cannot open shared object file: No such file or directory</font></div></div></blockquote><div><div></div></div><div>After googling around I found that the command <br></div><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><div><div>sudo /sbin/ldconfig -v</div></div></blockquote><div><div>fixed the problem (web page <a href="https://itsfoss.com/solve-open-shared-object-file-quick-tip/" target="_blank">link</a>).</div><div><br></div></div><div>So in summary, these are the commands that worked for me (with a lot of your help) to checkout and build Cbc:</div><div><ul><li>wget <a href="https://raw.githubusercontent.com/coin-or/coinbrew/master/coinbrew" target="_blank">https://raw.githubusercontent.com/coin-or/coinbrew/master/coinbrew</a></li><li>chmod +x coinbrew</li><li>./coinbrew fetch Cbc</li><li>./coinbrew build Cbc --no-prompt --prefix=/usr/local</li><li>sudo ./coinbrew install Cbc</li><li>sudo /sbin/ldconfig -v</li></ul>Thanks. I don't think I could have figured this out without your help.</div><div><br></div><div>JP</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Sep 9, 2019 at 12:51 PM Ted Ralphs <<a href="mailto:ted@lehigh.edu" target="_blank">ted@lehigh.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Ah, yes, forgot to back out one change. If you just pull the changes, the install should work now, no need to rebuild.<div><br></div><div>And thanks very much for posting the complete log of the build each time! That makes it immensely easier to tell what's going on.</div><div><br></div><div>If you want to suppress the output once everything is working, you can use --verbosity 1 or -v 1 to just get minimal output. </div><div><div><br></div><div>Ted</div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Sep 9, 2019 at 12:35 PM JP Fasano <<a href="mailto:jpfasano@gmail.com" target="_blank">jpfasano@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Hi Ted,</div><div>"<font face="monospace">./coinbrew build Cbc --no-prompt --prefix=/usr/local</font>" works great now! </div><div>Very impressive.</div><div>There is a lot going on.    </div><div><br></div><div><i>>  sudo ./coinbrew install Cbc  </i></div><div><i><br></i></div><div>Thank you for sending this additional command.</div><div>Your timing was perfect, because I had just realized that the built libraries and executables were still in my local directories. I was trying to figure out what needed to be done next, when your posting arrived.</div><div><br></div><div>Something with the "<font face="monospace">sudo ./coinbrew install Cbc</font>"  isn't working for me.</div><div>Here is the console log:</div><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><div><font face="monospace">jpfasano@WitOpenSource:~/coinCbc$ sudo ./coinbrew install Cbc</font></div><div><font face="monospace">[sudo] password for jpfasano: </font></div><div><font face="monospace">Welcome to the COIN-OR fetch and build utility</font></div><div><font face="monospace"><br></font></div><div><font face="monospace">For help, run script with --help.</font></div><div><font face="monospace"><br></font></div><div><font face="monospace">Entering interactive mode (suppress with --no-prompt)...</font></div><div><font face="monospace"><br></font></div><div><font face="monospace">Disabling uninstalled packages</font></div><div><font face="monospace"><br></font></div><div><font face="monospace">##################################################</font></div><div><font face="monospace">### Installing ThirdParty/ASL </font></div><div><font face="monospace">##################################################</font></div><div><font face="monospace"><br></font></div><div><font face="monospace">./coinbrew: line 916: cd: /home/jpfasano/coinCbc/build/ThirdParty/ASL/1.4: No such file or directory</font></div></blockquote> <div>LIne 916 of coinbrew is</div><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><div> <font face="monospace">cd $build_dir/$dir/$version_num</font></div></blockquote><div><br></div>The directory <font face="monospace">/home/jpfasano/coinCbc/build/ThirdParty/ASL</font>  does not contain a directory named 1.4.<div>Here is what the directory <font face="monospace">/home/jpfasano/coinCbc/build/ThirdParty/ASL</font> contains:<br></div><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><div><font face="monospace" size="1">jpfasano@WitOpenSource:~/coinCbc/build/ThirdParty/ASL$ ls</font></div><div><font face="monospace" size="1">arith.h  coinasl.pc  coinasl-uninstalled.pc  compile_MS_ASL  compile_Unix_ASL  config.log  config.status  funcadd0.o  libamplsolver.a  <a href="http://libcoinasl.la" target="_blank">libcoinasl.la</a>  libtool  Makefile  stdio1.h</font></div></blockquote><div>If helpful, here is <font face="monospace">/home/jpfasano/coinCbc/build/ThirdParty/ASL/config.log</font>: <a href="https://1drv.ms/u/s!ArBmlTcrk72FoL1kzS-r6Mbfs2-aeQ?e=kFwn4o" target="_blank">link</a></div><div> </div><div>The console log from running "<font face="monospace">./coinbrew build Cbc --no-prompt --prefix=/usr/local</font>"  is here: <a href="https://1drv.ms/u/s!ArBmlTcrk72FoL1jmQEhQA-yi3XLWg?e=hfckLc" target="_blank">link</a><div><div><br></div><div>Any help is appreciated. (no hurry).</div><div>Thank you.</div><div>JP</div></div></div></div>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail-m_7334475095281475441gmail-m_5886094553939871907gmail-m_7113427555882437246gmail-m_-7306356740705599757gmail-m_5284893315872992775gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr">Dr. Ted Ralphs<br>Professor, Industrial and Systems Engineering<br>Lehigh University<br>(610) 628-1280<br>ted 'at' lehigh 'dot' edu<br><a href="http://coral.ie.lehigh.edu/~ted" target="_blank">coral.ie.lehigh.edu/~ted</a><br></div></div></div></div></div></div></div></div>
</blockquote></div>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail-m_7334475095281475441gmail-m_5886094553939871907gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr">Dr. Ted Ralphs<br>Professor, Industrial and Systems Engineering<br>Lehigh University<br>(610) 628-1280<br>ted 'at' lehigh 'dot' edu<br><a href="http://coral.ie.lehigh.edu/~ted" target="_blank">coral.ie.lehigh.edu/~ted</a><br></div></div></div></div></div></div></div></div>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr">Dr. Ted Ralphs<br>Professor, Industrial and Systems Engineering<br>Lehigh University<br>(610) 628-1280<br>ted 'at' lehigh 'dot' edu<br><a href="http://coral.ie.lehigh.edu/~ted" target="_blank">coral.ie.lehigh.edu/~ted</a><br></div></div></div></div></div></div></div></div>