<div dir="ltr">OK, it took a little digging, but I got everything fixed up and added a few more enhancements to coinbrew in the meantime. The errors similar to<div><span style="font-family:monospace"><br></span></div><div><span style="font-family:monospace">rm: cannot remove '/usr/local/share/coin/Data/</span><span style="font-family:monospace">miplib3/harp2': Permission denied</span></div><div><span style="font-family:monospace"><br></span></div>during the build step were due to an embarassing bug that has now been fixed. The build should not need to be be run with sudo by design---that is the reason for separating the build and install steps.<div><br></div><div>As for the install, I was able to replicate what you saw. As far as I can tell, you most likely did successfully in installing the release version (despite Cbc's version message), but when Cbc was built, it seems to have pulled in the configuration header file from the previously installed master version and the wrong version string got injected into the code. I'm still verifying this, but in any case, it was almost certainly some sort of corruption due to the previous install. </div><div><br></div><div>This possibility never occurred to me, so thanks once again for the detailed reports! I have an idea how to fix it, but it may take a little work. </div><div><br></div><div>In general, it's best to uninstall one version before starting to build and install another. Just run</div><div><br></div><div>./coinbrew Cbc uninstall</div><div><br></div><div>With what I think happened, you should actually now be able to simply re-build and re-install Cbc itself (no need to rebuild the dependencies) and it will be fixed. I add the option now to rebuild a  project, so you should in principle be able to do</div><div><br></div><div>./coinbrew build --rebuild Cbc --skip-dependencies</div><div><br></div><div>and it will rebuild. However, since I also just changed that way build configurations are cached (sorry for the moving target), I would actually suggest that you reconfigure and rebuild everything with</div><div><br></div><div><div>./coinbrew build --rebuild --reconfigure Cbc --prefix=/usr/local</div></div><div><br></div><div>Alternatively, you can also just remove the build directory altogether with "rm -rf build". After you rebuild, you can install again and everything should be fixed up.</div><div><br></div><div>Cheers,</div><div><br></div><div>Ted</div><div> </div><div><br></div><div><br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Sep 13, 2019 at 9:07 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">I tried a fresh checkout of the latest released code and the build seemed to work, but didn't.<div>I did:</div><div><ul><span class="gmail-m_722980291829416007gmail-m_1460707179127764764gmail-im" style="color:rgb(80,0,80)"><li style="margin-left:15px"><font face="monospace">wget <a href="https://raw.githubusercontent.com/coin-or/coinbrew/master/coinbrew" target="_blank">https://raw.githubusercontent.com/coin-or/coinbrew/master/coinbrew</a>  </font></li><li style="margin-left:15px"><font face="monospace">chmod +x coinbrew</font></li></span><li style="margin-left:15px"><font face="monospace">./coinbrew fetch Cbc:releases/2.10.3 --no-prompt >fetchConsole.log 2>&1</font></li><li style="margin-left:15px"><font face="monospace">./coinbrew build Cbc --no-prompt --prefix=/usr/local  >buildConsole.log 2>&1</font></li><li style="margin-left:15px"><font face="monospace">sudo ./coinbrew install Cbc  >installConsole.log 2>&1</font></li></ul></div><div>When I run cbc, I see</div><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><div><font face="monospace">jpfasano@WitOpenSource:~/coinCbc$ cbc</font></div><div><font face="monospace">Welcome to the CBC MILP Solver</font></div><div><font face="monospace">Version: Trunk (unstable)</font></div><div><font face="monospace">Build Date: Sep 13 2019</font></div><div><font face="monospace"><br></font></div><div><font face="monospace">CoinSolver takes input from arguments ( - switches to stdin)</font></div><div><font face="monospace">Enter ? for list of commands or help</font></div><div><font face="monospace">Coin:</font></div></blockquote><div>Notice that the version is Trunk (unstable).</div><div>So the released version of cbc didn't get installed.</div><div><br></div><div>The last lines of the buildConsole.log look suspicious:</div></div><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><div dir="ltr"><div><font face="monospace">jpfasano@WitOpenSource:~/coinCbc$ tail buildConsole.log</font></div></div></blockquote><div dir="ltr"><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><div><font face="monospace">rm: cannot remove '/usr/local/share/coin/Data/miplib3/harp2': Permission denied</font></div><div><font face="monospace">rm: cannot remove '/usr/local/share/coin/Data/miplib3/vpm1': Permission denied</font></div><div><font face="monospace">rm: cannot remove '/usr/local/share/coin/Data/miplib3/set1ch': Permission denied</font></div><div><font face="monospace">rm: cannot remove '/usr/local/share/coin/Data/miplib3/qnet1_o': Permission denied</font></div><div><font face="monospace">rm: cannot remove '/usr/local/share/coin/Data/miplib3/pk1': Permission denied</font></div><div><font face="monospace">rm: cannot remove '/usr/local/share/coin/Data/miplib3/misc03': Permission denied</font></div><div><font face="monospace">rm: cannot remove '/usr/local/share/coin/Data/miplib3/fixnet6': Permission denied</font></div><div><font face="monospace">rm: cannot remove '/usr/local/share/coin/Data/miplib3/gen': Permission denied</font></div><div><font face="monospace">rm: cannot remove '/usr/local/share/coin/Data/miplib3/mitre': Permission denied</font></div><div><font face="monospace">rm: cannot remove '/usr/local/share/coin/Data/miplib3/rout': Permission denied</font></div></blockquote><div>Perhaps "<font face="monospace">./coinbrew build"</font> needs to be run with sudo?</div><div><br></div><div>Here are links to the console logs:</div><div><ul><li style="margin-left:15px">fetch: <a href="https://1drv.ms/u/s!ArBmlTcrk72FoL1xP8WgHK50ARsLTQ?e=OEkV7M" target="_blank">link</a></li><li style="margin-left:15px">build: <a href="https://1drv.ms/u/s!ArBmlTcrk72FoL1ynKuLKJWe9Vzldw?e=cYyXr5" target="_blank">link</a></li><li style="margin-left:15px">install: <a href="https://1drv.ms/u/s!ArBmlTcrk72FoL1wM48QUYfsbZNDRg?e=hU2jkV" target="_blank">link</a></li></ul></div></div>
</div>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail-m_722980291829416007gmail_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>