[Cbc] cbc configure --prefix= option install for RPM inclusion

Ted Ralphs ted at lehigh.edu
Sun Feb 21 18:51:42 EST 2016


This looks like an easy fix. The test that is causing the error is
unnecessary and can just be eliminated. To propagate the change to all
configure scripts in all dependent projects and out to release is going to
take a while and we'll have to do some testing first.

In the meantime, though, I realized that the error does not cause the
configure script to fail for me---I just get the message and configure goes
through anyway. In this case, everything should be fine and you can make as
usual. If the error is causing the script to stop, then maybe you are
running with "set -e"? If so, just not doing that should allow things to go
through for now.

Alternatively, this should patch the scripts so that you don't get the
error:

for i in `find . -name configure`; do sed 's/full_prefix=`cd $full_prefix ;
pwd`//' $i > xxx; mv xxx $i; done

Let me know if this is good enough for now and I'll try to get that fix out
as soon as I can get it tested.

Ted

On Fri, Feb 19, 2016 at 6:36 PM, Ted Ralphs <ted at lehigh.edu> wrote:

> This error is due to a custom m4 function used by the COIN build system
> that assumes the existence of the prefix directory. It look like it's not
> really crucial that the directory exist for anything that comes later---we
> just made the implicit assumption that it does and no one complained before
> now. I'll see if we can fix this easily.
>
> Cheers,
>
> Ted
>
> On Thu, Feb 18, 2016 at 1:03 PM, Charles Lindsay <
> charlesclindsay at gmail.com> wrote:
>
>> Hi,
>>
>> I use Cbc via Pyomo for MIP models.
>>
>> I need to compile and build Cbc in a directory different than the install
>> directory.  In fact, what I want to do is build Cbc executables and
>> libraries, and then include them in an RPM with a bunch of other
>> executables for installation on another system.
>>
>> I had thought that I could do this via the --prefix option to configure
>> to specify the install directories on the target system.
>> However the configure script objects, saying it cannot find the prefix
>> directories on the build system:
>>         CFLAGS="$RPM_OPT_FLAGS -O2 -Wall -fno-strict-aliasing" \
>>         ./configure --prefix="/opt/foo/bar/cbc" --enable-threadsafe  >
>> /dev/null
>> ./configure: line 5844: cd: /opt/foo/bar/cbc: No such file or directory
>> ./configure: line 2236: cd: /opt/foo/bar/cbc: No such file or directory
>> ./configure: line 2308: cd: /opt/foo/bar/cbc: No such file or directory
>> ./configure: line 6877: cd: /opt/foo/bar/cbc: No such file or directory
>>
>> When I do this with GLPK, it does the configure and build with no
>> complaints,
>>
>> I can correctly install Cbc on a node, provided I create the prefix
>> directory in advance of the configure.
>>
>> Is there another option I should be using to configure Cbc?
>>
>> Thank you.
>>
>>
>>
>> _______________________________________________
>> Cbc mailing list
>> Cbc at list.coin-or.org
>> http://list.coin-or.org/mailman/listinfo/cbc
>>
>>
>
>
> --
> Dr. Ted Ralphs
> Professor, Lehigh University
> (610) 628-1280
> ted 'at' lehigh 'dot' edu
> coral.ie.lehigh.edu/~ted
>



-- 
Dr. Ted Ralphs
Professor, 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/20160221/aad474dc/attachment.html>


More information about the Cbc mailing list