[Cbc] 2.10 version on Ubuntu

Ted Ralphs ted at lehigh.edu
Mon Sep 9 17:41:14 EDT 2019


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.coin-or.org/pipermail/cbc/attachments/20190909/401fb6cc/attachment.html>


More information about the Cbc mailing list