[Cbc] [External] Re: 2.10 version on Ubuntu

Ted Ralphs ted at lehigh.edu
Fri Sep 13 19:03:28 EDT 2019


It worked fine for me from a fresh checkout. I think things may have gotten
corrupted if you updated your version of coinbrew and/or fetched the
release after previously fetching master first. Can you try just starting
from scratch? Once things stabilize, you should be able to switch versions
"in place" without issues.

Ted

On Fri, Sep 13, 2019 at 4:40 PM Ted Ralphs <ted at lehigh.edu> wrote:

> OK, let me see if I can replicate the failure withe the release version.
>
> Ted
>
> On Fri, Sep 13, 2019 at 4:35 PM Naladimmu Sreelakshmi <
> naladimmu.sreelakshmi at fractal.ai> wrote:
>
>> Hi Ted,
>>
>> Yes, the back up location was firewalled but the issue is sorted and also
>> I am able to run the parallel successfully using multiple cores.
>>
>> On the installation through coinbrew, if I use the exact commands that JP
>> have as final from his side, it worked perfectly. But that installs the
>> most recent version which is trunk - this is still in development?
>>
>> If I fetch Cbc:releases:2.10.3 to get the exact stable version, the
>> installation fails since it cannot find master directory.
>>
>> Thanks,
>> Sree
>> ------------------------------
>> *From:* Ted Ralphs <ted at lehigh.edu>
>> *Sent:* Saturday, September 14, 2019 1:35:29 AM
>> *To:* Naladimmu Sreelakshmi <naladimmu.sreelakshmi at fractal.ai>
>> *Cc:* JP Fasano <jpfasano at gmail.com>; cbc at list.coin-or.org <
>> cbc at list.coin-or.org>
>> *Subject:* Re: [External] Re: [Cbc] 2.10 version on Ubuntu
>>
>> Which version of Cbc are you installing? We have seen 403s on some of the
>> third-party packages, but we now have backup download locations for
>> many/most of them and I've not seen the primary and all backups fail very
>> often. It shouldn't be a long-term issue. As an aside, you will probably
>> get a faster version of Cbc if you install the Lapack Ubuntu package, which
>> will be automatically picked up in the configuration.
>>
>> As far as I know, you should see multiple cores being used if you build
>> with --enable-cbc-parallel. If not, open an issue on Github and we'll try
>> to see what's happening.
>>
>> Ted
>>
>>
>>
>> On Fri, Sep 13, 2019 at 5:45 AM Naladimmu Sreelakshmi <
>> naladimmu.sreelakshmi at fractal.ai> wrote:
>>
>>> Hi Ted,
>>>
>>> Was able to install basis the commands what you and JP have helped with!
>>>
>>> But now I am facing an issue that lapack installation fails throwing 403
>>> error. Had also seen this happen with mumps (it was skipping earlier
>>> though).
>>>
>>> On a separate note, want to confirm if I use --enable-cbc-parallel while
>>> configuring, I still see only one core getting used?
>>>
>>> Thanks,
>>> [image: 1518440930887_PastedImage]
>>> Sreelakshmi Naladimmu | Senior Consultant
>>> +91 9176264380 | fractal.ai
>>> [image: 1518428993160_PastedImage]
>>>
>>> ------------------------------
>>> *From:* Ted Ralphs <ted at lehigh.edu>
>>> *Sent:* 10 September 2019 22:23
>>> *To:* JP Fasano <jpfasano at gmail.com>
>>> *Cc:* Naladimmu Sreelakshmi <naladimmu.sreelakshmi at fractal.ai>;
>>> cbc at list.coin-or.org <cbc at list.coin-or.org>
>>> *Subject:* [External] Re: [Cbc] 2.10 version on Ubuntu
>>>
>>> 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.
>>>
>>> I added some additional output explaining this and also changed the
>>> default verbosity level to 1 to remove some of the visual chaff.
>>>
>>> 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
>>>
>>> coinbrew fetch Cbc:releases/2.10.3 --no-prompt
>>>
>>> Have fun!
>>>
>>> Cheers,
>>>
>>> Ted
>>>
>>> On Mon, Sep 9, 2019 at 5:41 PM Ted Ralphs <ted at lehigh.edu> wrote:
>>>
>>> JP,
>>>
>>> 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.
>>>
>>> For posterity, a general solution to your issue would have been to add
>>>
>>> export LD_LIBRARY_PATH=/usr/local/lib
>>>
>>> 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.
>>>
>>> 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!
>>>
>>> Cheers,
>>>
>>> Ted
>>>
>>> On Mon, Sep 9, 2019 at 4:28 PM JP Fasano <jpfasano at gmail.com> wrote:
>>>
>>> Hi Ted,
>>>
>>> Everything is now building and running.
>>> A huge thank you for your help.
>>>
>>> After successfully doing the install with
>>>
>>> sudo ./coinbrew install Cbc
>>>
>>> the cbc standalone executable was not running (even after rebooting the
>>> machine).
>>> Here is what happened:
>>>
>>> jpfasano at WitOpenSource:~/coinCbc$ cbc
>>> cbc: error while loading shared libraries: libCbcSolver.so.0: cannot
>>> open shared object file: No such file or directory
>>>
>>> After googling around I found that the command
>>>
>>> sudo /sbin/ldconfig -v
>>>
>>> fixed the problem (web page link
>>> <https://itsfoss.com/solve-open-shared-object-file-quick-tip/>).
>>>
>>> So in summary, these are the commands that worked for me (with a lot of
>>> your help) to checkout and build Cbc:
>>>
>>>    - wget
>>>    https://raw.githubusercontent.com/coin-or/coinbrew/master/coinbrew
>>>    - chmod +x coinbrew
>>>    - ./coinbrew fetch Cbc
>>>    - ./coinbrew build Cbc --no-prompt --prefix=/usr/local
>>>    - sudo ./coinbrew install Cbc
>>>    - sudo /sbin/ldconfig -v
>>>
>>> Thanks. I don't think I could have figured this out without your help.
>>>
>>> JP
>>>
>>> On Mon, Sep 9, 2019 at 12:51 PM Ted Ralphs <ted at lehigh.edu> wrote:
>>>
>>> Ah, yes, forgot to back out one change. If you just pull the changes,
>>> the install should work now, no need to rebuild.
>>>
>>> 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.
>>>
>>> If you want to suppress the output once everything is working, you can
>>> use --verbosity 1 or -v 1 to just get minimal output.
>>>
>>> Ted
>>>
>>> On Mon, Sep 9, 2019 at 12:35 PM JP Fasano <jpfasano at gmail.com> wrote:
>>>
>>> Hi Ted,
>>> "./coinbrew build Cbc --no-prompt --prefix=/usr/local" works great now!
>>> Very impressive.
>>> There is a lot going on.
>>>
>>> *>  sudo ./coinbrew install Cbc  *
>>>
>>> Thank you for sending this additional command.
>>> 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.
>>>
>>> Something with the "sudo ./coinbrew install Cbc"  isn't working for me.
>>> Here is the console log:
>>>
>>> jpfasano at WitOpenSource:~/coinCbc$ sudo ./coinbrew install Cbc
>>> [sudo] password for jpfasano:
>>> Welcome to the COIN-OR fetch and build utility
>>>
>>> For help, run script with --help.
>>>
>>> Entering interactive mode (suppress with --no-prompt)...
>>>
>>> Disabling uninstalled packages
>>>
>>> ##################################################
>>> ### Installing ThirdParty/ASL
>>> ##################################################
>>>
>>> ./coinbrew: line 916: cd:
>>> /home/jpfasano/coinCbc/build/ThirdParty/ASL/1.4: No such file or directory
>>>
>>>
>>> LIne 916 of coinbrew is
>>>
>>>  cd $build_dir/$dir/$version_num
>>>
>>>
>>> The directory /home/jpfasano/coinCbc/build/ThirdParty/ASL  does not
>>> contain a directory named 1.4.
>>> Here is what the directory /home/jpfasano/coinCbc/build/ThirdParty/ASL
>>> contains:
>>>
>>> jpfasano at WitOpenSource:~/coinCbc/build/ThirdParty/ASL$ ls
>>> arith.h  coinasl.pc  coinasl-uninstalled.pc  compile_MS_ASL
>>>  compile_Unix_ASL  config.log  config.status  funcadd0.o  libamplsolver.a
>>> libcoinasl.la  libtool  Makefile  stdio1.h
>>>
>>> If helpful, here is
>>> /home/jpfasano/coinCbc/build/ThirdParty/ASL/config.log: link
>>> <https://1drv.ms/u/s!ArBmlTcrk72FoL1kzS-r6Mbfs2-aeQ?e=kFwn4o>
>>>
>>> The console log from running "./coinbrew build Cbc --no-prompt
>>> --prefix=/usr/local"  is here: link
>>> <https://1drv.ms/u/s!ArBmlTcrk72FoL1jmQEhQA-yi3XLWg?e=hfckLc>
>>>
>>> Any help is appreciated. (no hurry).
>>> Thank you.
>>> JP
>>>
>>>
>>>
>>> --
>>> Dr. Ted Ralphs
>>> Professor, Industrial and Systems Engineering
>>> Lehigh University
>>> (610) 628-1280
>>> ted 'at' lehigh 'dot' edu
>>> coral.ie.lehigh.edu/~ted
>>>
>>>
>>>
>>> --
>>> Dr. Ted Ralphs
>>> Professor, Industrial and Systems Engineering
>>> Lehigh University
>>> (610) 628-1280
>>> ted 'at' lehigh 'dot' edu
>>> coral.ie.lehigh.edu/~ted
>>>
>>>
>>>
>>> --
>>> Dr. Ted Ralphs
>>> Professor, Industrial and Systems Engineering
>>> Lehigh University
>>> (610) 628-1280
>>> ted 'at' lehigh 'dot' edu
>>> coral.ie.lehigh.edu/~ted
>>>
>>>
>>>
>>>
>>> ------------------------------
>>>
>>> This message contains information that may be privileged or confidential
>>> and is the property of the Fractal Analytics. It is intended only for the
>>> person to whom it is addressed. Access to this e-mail by anyone else is
>>> unauthorized. If you are not the intended recipient, you are not authorized
>>> to read, print, retain, copy, disseminate, distribute, or use this message
>>> or any part thereof. If you receive this message in error, please notify
>>> the sender immediately and delete all copies of this message.
>>> ------------------------------
>>>
>>>
>>>
>>
>>
>> --
>> Dr. Ted Ralphs
>> Professor, Industrial and Systems Engineering
>> Lehigh University
>> (610) 628-1280
>> ted 'at' lehigh 'dot' edu
>> coral.ie.lehigh.edu/~ted
>>
>>
>>
>>
>> ------------------------------
>>
>> This message contains information that may be privileged or confidential
>> and is the property of the Fractal Analytics. It is intended only for the
>> person to whom it is addressed. Access to this e-mail by anyone else is
>> unauthorized. If you are not the intended recipient, you are not authorized
>> to read, print, retain, copy, disseminate, distribute, or use this message
>> or any part thereof. If you receive this message in error, please notify
>> the sender immediately and delete all copies of this message.
>> ------------------------------
>>
>>
>>
>
>
> --
> Dr. Ted Ralphs
> Professor, Industrial and Systems Engineering
> Lehigh University
> (610) 628-1280
> ted 'at' lehigh 'dot' edu
> coral.ie.lehigh.edu/~ted
>


-- 
Dr. Ted Ralphs
Professor, Industrial and Systems Engineering
Lehigh University
(610) 628-1280
ted 'at' lehigh 'dot' edu
coral.ie.lehigh.edu/~ted
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.coin-or.org/pipermail/cbc/attachments/20190913/b85aad18/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Outlook-1518440930.png
Type: image/png
Size: 1543 bytes
Desc: not available
URL: <http://list.coin-or.org/pipermail/cbc/attachments/20190913/b85aad18/attachment-0002.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Outlook-1518428993.png
Type: image/png
Size: 21399 bytes
Desc: not available
URL: <http://list.coin-or.org/pipermail/cbc/attachments/20190913/b85aad18/attachment-0003.png>


More information about the Cbc mailing list