<div dir="ltr">Oh, and I should have said that now when the install directory is not writable, you need to either invoke the install command explicitly at the same time as the build command, i.e.,<div><br></div><div>./coinbrew build install Cbc --no-prompt --prefix=/usr/local </div><div><br></div><div>or as a separate step afterwards, i.e.,</div><div><br></div><div>sudo ./coinbrew install Cbc</div><div><br></div><div>This because the install step must be invoked with sudo. Doing it as a separate step allows the install to be done unattended. If the install is invoked at the same time as the build, then you need to authenticate before the first package is installed, which come partway into the process. <br></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 10:14 AM 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">It should be fixed now. Thanks for the report, JP!<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 12:22 AM 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">OK, so now I was able to replicate this behavior and it seems I broke some things with recent changes. I'll fix it up tomorrow. Sorry for the confusion, coinbrew is a work in progress!<div><div><br></div><div>Cheers,</div><div><br></div><div>Ted <br></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Sep 8, 2019 at 10:27 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">Hey JP! <div><br></div><div>There are several  things are going on here. First, you don't seem to have pkg-config installed, which I thought was there on all Ubuntu systems. If you install it, everything should work with just the three steps, as expected. The fourth step of making coinbrew executable is also needed in some cases (I'm not 100 % sure why it is sometimes needed, but not always).</div><div><br></div><div>With that said, the recipe should still have worked for you, even without pkg-config. There is a workaround mechanism in case pkg-config fails that seems not to have worked for some reason. I will try to replicate exactly what went wrong so it can be fixed (I have a theory, but I don't know why it hasn't come up before). </div><div><br></div><div>On Ubuntu, you are also better off installing the Debian blas and lapack packages and in that case, you can skip building the third-packages altogether with --no-third-party, which will improve the speed of Cbc.</div><div><br></div><div>coinbrew actually has a lot of sophisticated capabilities, not all of which are fully documented, but there is at least some more documentation on how to use it here:</div><div><br></div><div><a href="https://coin-or.github.io/coinbrew/" target="_blank">https://coin-or.github.io/coinbrew/</a> </div><div><br></div><div>Cheers,</div><div><br></div><div>Ted</div><div><br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Sep 8, 2019 at 12:51 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 dir="ltr">Hi Ted,</div><div dir="ltr"><div><i>>Cbc is really easy to build on Ubuntu ...</i></div><i>>wget <a href="https://raw.githubusercontent.com/coin-or/coinbrew/master/coinbrew" target="_blank">https://raw.githubusercontent.com/coin-or/coinbrew/master/coinbrew</a>  <br>>./coinbrew fetch Cbc<br>>./coinbrew build Cbc --no-prompt --prefix=/usr/local</i><div></div><div><br></div><div>I tried to build Cbc on Ubuntu using the three steps.</div><div>I ran into this error on the third step:</div><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><div><font size="1">checking whether -lblas has BLAS... no</font></div><div><font size="1">checking for COIN-OR package Blas... skipped check via pkg-config, redirect to fallback</font></div><div><font size="1">checking for COIN-OR package Blas (fallback)... no, dependency coinblas not available</font></div><div><font size="1">configure: error: Required package BLAS not found.</font></div></blockquote><div>The prior step seemed to successfully build libcoinblas:</div><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><div><font size="1">/bin/bash ./libtool --tag=F77 --mode=link gfortran  -O3 -pipe     -o <a href="http://libcoinblas.la/" target="_blank">libcoinblas.la</a> -rpath /usr/local/lib -no-undefined dasum.lo daxpy.lo dcabs1.lo dcopy.lo ddot.lo dgbmv.lo dgemm.lo dgemv.lo dger.lo dnrm2.lo drot.lo drotg.lo drotm.lo drotmg.lo dsbmv.lo dscal.lo dsdot.lo dspmv.lo dspr2.lo dspr.lo dswap.lo dsymm.lo dsymv.lo dsyr2.lo dsyr2k.lo dsyr.lo dsyrk.lo dtbmv.lo dtbsv.lo dtpmv.lo dtpsv.lo dtrmm.lo dtrmv.lo dtrsm.lo dtrsv.lo idamax.lo isamax.lo izamax.lo lsame.lo sgemm.lo sgemv.lo sger.lo sscal.lo sswap.lo ssyr.lo strsm.lo xerbla.lo zaxpy.lo zcopy.lo zdscal.lo zdotc.lo zdotu.lo zgemm.lo zgemv.lo zgeru.lo zher.lo zscal.lo zswap.lo ztrsm.lo  </font></div><div><font size="1">gfortran -shared  .libs/dasum.o .libs/daxpy.o .libs/dcabs1.o .libs/dcopy.o .libs/ddot.o .libs/dgbmv.o .libs/dgemm.o .libs/dgemv.o .libs/dger.o .libs/dnrm2.o .libs/drot.o .libs/drotg.o .libs/drotm.o .libs/drotmg.o .libs/dsbmv.o .libs/dscal.o .libs/dsdot.o .libs/dspmv.o .libs/dspr2.o .libs/dspr.o .libs/dswap.o .libs/dsymm.o .libs/dsymv.o .libs/dsyr2.o .libs/dsyr2k.o .libs/dsyr.o .libs/dsyrk.o .libs/dtbmv.o .libs/dtbsv.o .libs/dtpmv.o .libs/dtpsv.o .libs/dtrmm.o .libs/dtrmv.o .libs/dtrsm.o .libs/dtrsv.o .libs/idamax.o .libs/isamax.o .libs/izamax.o .libs/lsame.o .libs/sgemm.o .libs/sgemv.o .libs/sger.o .libs/sscal.o .libs/sswap.o .libs/ssyr.o .libs/strsm.o .libs/xerbla.o .libs/zaxpy.o .libs/zcopy.o .libs/zdscal.o .libs/zdotc.o .libs/zdotu.o .libs/zgemm.o .libs/zgemv.o .libs/zgeru.o .libs/zher.o .libs/zscal.o .libs/zswap.o .libs/ztrsm.o   -Wl,-soname -Wl,libcoinblas.so.0 -o .libs/libcoinblas.so.0.0.0</font></div><div><font size="1">(cd .libs && rm -f libcoinblas.so.0 && ln -s libcoinblas.so.0.0.0 libcoinblas.so.0)</font></div><div><font size="1">(cd .libs && rm -f libcoinblas.so && ln -s libcoinblas.so.0.0.0 libcoinblas.so)</font></div><div><font size="1">creating <a href="http://libcoinblas.la/" target="_blank">libcoinblas.la</a></font></div><div><font size="1">(cd .libs && rm -f <a href="http://libcoinblas.la/" target="_blank">libcoinblas.la</a> && ln -s ../<a href="http://libcoinblas.la/" target="_blank">libcoinblas.la</a> <a href="http://libcoinblas.la/" target="_blank">libcoinblas.la</a>)</font></div></blockquote>The entire console.log is available here: <a href="https://1drv.ms/u/s!ArBmlTcrk72FoL1jmQEhQA-yi3XLWg?e=oTfdUi" target="_blank">link</a><div><br></div><div>BTW: I had to install FORTRAN and add a trivial additional step:</div><div><ol><li style="margin-left:15px">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 style="margin-left:15px">chmod +x coinbrew </li><span class="gmail-m_-3613811656489089291gmail-m_-7663554938397539521gmail-m_2430485161416955867gmail-m_-8855086016026528430gmail-m_-1578043374860548787gmail-im" style="color:rgb(80,0,80)"><li style="margin-left:15px">./coinbrew fetch Cbc</li><li style="margin-left:15px">./coinbrew build Cbc --no-prompt --prefix=/usr/local  </li></span></ol>Thank you for any help you can provide.</div><div class="gmail-m_-3613811656489089291gmail-m_-7663554938397539521gmail-m_2430485161416955867gmail-m_-8855086016026528430gmail-m_-1578043374860548787gmail-yj6qo gmail-m_-3613811656489089291gmail-m_-7663554938397539521gmail-m_2430485161416955867gmail-m_-8855086016026528430gmail-m_-1578043374860548787gmail-ajU" style="outline:none;padding:10px 0px;width:22px;margin:2px 0px 0px">JP</div></div></div>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail-m_-3613811656489089291gmail-m_-7663554938397539521gmail-m_2430485161416955867gmail-m_-8855086016026528430gmail_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-m_-3613811656489089291gmail-m_-7663554938397539521gmail-m_2430485161416955867gmail_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-m_-3613811656489089291gmail_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>