[Couenne] Configure, build and install Couenne

Pietro Belotti petr.7b6 at gmail.com
Wed Aug 14 05:27:36 EDT 2013


I had some problem with the netlib FTP server before. Stefan, is there any
other URL we can wget those files from?

Pietro


On Wed, Aug 14, 2013 at 1:37 AM, Virginia Costa <virscosta at gmail.com> wrote:

> Hello Pietro and Stefan,
>
> Thanks so much for your help!
> It's working now! The binary file of Couenne was generated.
> But the get.* script of ASL directory is not ok. We can't download the
> solvers.tar from Netlib ftp site. I had to download each file of ampl from
> http site.
> Great!!! :-)
> Thanks one more time.
> Virginia.
>
>
> 2013/8/13 Pietro Belotti <petr.7b6 at gmail.com>
>
>> Hi Virginia,
>>
>> the libraries can be built without ASL, but the Couenne executable needs
>> the ASL, which you can download in the ThirdParty directories. You should
>> most of the ThirdParty software (ASL, Blas, Lapack, Metis, Mumps are
>> required) with the get.* scripts in each of the subdirectories of
>> ThirdParty, and then remove the option "--without-asl" from the configure
>> command.
>>
>> Pietro
>>
>>
>> On Tue, Aug 13, 2013 at 11:43 PM, Virginia Costa <virscosta at gmail.com>wrote:
>>
>>> Hi Pietro,
>>>
>>> Yes, I saw this explanation in the Couenne documentation. But, I don't
>>> know what happens that there are just these files in Couenne/src/main/
>>> directory:
>>> BonCouenneSetup.lo  CouenneBab.lo  libBonCouenne.la  Makefile
>>>  SmartAslDestr.lo
>>>
>>> I did the following:
>>>
>>> 1) download the couenne package (v. 0.4.4).
>>> 2) extract the files in home.
>>> 3) cd Couenne,  mkdir build and cd build;
>>> 4) ../configure -C --without-asl --without-scip
>>> 5) make
>>> 6) make install.
>>>
>>> It creates the following directories inside build:
>>>
>>> drwxrwxr-x 16 virscosta virscosta   4096 Ago 13 16:01 .
>>> drwxr-xr-x 14 virscosta virscosta   4096 Ago 13 15:42 ..
>>> drwxrwxr-x  2 virscosta virscosta   4096 Ago 13 16:01 bin
>>> drwxrwxr-x  6 virscosta virscosta   4096 Ago 13 15:37 Bonmin
>>> drwxrwxr-x  6 virscosta virscosta   4096 Ago 13 15:37 Cbc
>>> drwxrwxr-x  6 virscosta virscosta   4096 Ago 13 15:37 Cgl
>>> drwxrwxr-x  6 virscosta virscosta   4096 Ago 13 15:37 Clp
>>> -rw-rw-r--  1 virscosta virscosta     62 Ago 13 15:36 coin_subdirs.txt
>>> drwxrwxr-x  5 virscosta virscosta   4096 Ago 13 15:37 CoinUtils
>>> -rw-rw-r--  1 virscosta virscosta   9047 Ago 13 15:37 config.cache
>>> -rw-rw-r--  1 virscosta virscosta  45899 Ago 13 15:37 config.log
>>> -rwxrwxr-x  1 virscosta virscosta  32232 Ago 13 15:36 config.status
>>> drwxrwxr-x  4 virscosta virscosta   4096 Ago 13 15:37 Couenne
>>> drwxrwxr-x  2 virscosta virscosta   4096 Ago 13 15:36 doxydoc
>>> drwxrwxr-x  3 virscosta virscosta   4096 Ago 13 16:01 include
>>> drwxrwxr-x  7 virscosta virscosta   4096 Ago 13 15:37 Ipopt
>>> drwxrwxr-x  3 virscosta virscosta   4096 Ago 13 16:01 lib
>>> -rwxrwxr-x  1 virscosta virscosta 228735 Ago 13 15:36 libtool
>>> -rw-rw-r--  1 virscosta virscosta  24770 Ago 13 15:36 Makefile
>>> drwxrwxr-x  6 virscosta virscosta   4096 Ago 13 15:37 Osi
>>> drwxrwxr-x  3 virscosta virscosta   4096 Ago 13 16:01 share
>>> drwxrwxr-x  3 virscosta virscosta   4096 Ago 13 15:36 ThirdParty
>>>
>>> Inside Couenne, I have:
>>>
>>> drwxrwxr-x  4 virscosta virscosta  4096 Ago 13 15:37 .
>>> drwxrwxr-x 16 virscosta virscosta  4096 Ago 13 16:01 ..
>>> -rw-rw-r--  1 virscosta virscosta 42626 Ago 13 15:37 config.log
>>> -rwxrwxr-x  1 virscosta virscosta 53831 Ago 13 15:37 config.status
>>> -rw-rw-r--  1 virscosta virscosta   352 Ago 13 15:37 couenne.pc
>>> -rw-rw-r--  1 virscosta virscosta   760 Ago 13 15:37
>>> couenne-uninstalled.pc
>>> -rw-rw-r--  1 virscosta virscosta 37695 Ago 13 15:37 Makefile
>>> drwxrwxr-x 16 virscosta virscosta  4096 Ago 13 16:00 src
>>> drwxrwxr-x  2 virscosta virscosta  4096 Ago 13 15:37 test
>>>
>>> Inside src:
>>>
>>> drwxrwxr-x 16 virscosta virscosta  4096 Ago 13 16:00 .
>>> drwxrwxr-x  4 virscosta virscosta  4096 Ago 13 15:37 ..
>>> drwxrwxr-x  5 virscosta virscosta  4096 Ago 13 15:59 bound_tightening
>>> drwxrwxr-x  4 virscosta virscosta  4096 Ago 13 16:00 branch
>>> -rw-rw-r--  1 virscosta virscosta   544 Ago 13 15:37 config_couenne.h
>>> -rw-rw-r--  1 virscosta virscosta  3549 Ago 13 15:37 config.h
>>> drwxrwxr-x  4 virscosta virscosta  4096 Ago 13 15:59 convex
>>> drwxrwxr-x  3 virscosta virscosta  4096 Ago 13 15:37 cut
>>> drwxrwxr-x  4 virscosta virscosta  4096 Ago 13 16:00 disjunctive
>>> drwxrwxr-x  4 virscosta virscosta  4096 Ago 13 15:58 expression
>>> drwxrwxr-x  4 virscosta virscosta  4096 Ago 13 16:00 heuristics
>>> drwxrwxr-x  4 virscosta virscosta  4096 Ago 13 16:00 interfaces
>>> -rw-rw-r--  1 virscosta virscosta   837 Ago 13 16:00 libCouenne.la
>>> drwxrwxr-x  2 virscosta virscosta  4096 Ago 13 16:00 .libs
>>> drwxrwxr-x  4 virscosta virscosta  4096 Ago 13 16:01 main
>>> -rw-rw-r--  1 virscosta virscosta 35886 Ago 13 15:37 Makefile
>>> drwxrwxr-x  4 virscosta virscosta  4096 Ago 13 15:58 problem
>>> drwxrwxr-x  3 virscosta virscosta  4096 Ago 13 15:37 readnl
>>> -rw-rw-r--  1 virscosta virscosta    27 Ago 13 15:37 stamp-h1
>>> -rw-rw-r--  1 virscosta virscosta    35 Ago 13 15:37 stamp-h2
>>> drwxrwxr-x  4 virscosta virscosta  4096 Ago 13 15:58 standardize
>>> drwxrwxr-x  4 virscosta virscosta  4096 Ago 13 15:56 util
>>>
>>> Inside main, just this: BonCouenneSetup.lo  CouenneBab.lo
>>>  libBonCouenne.la  Makefile  SmartAslDestr.lo
>>>
>>> Do you have any idea what happened?
>>> Many Thanks.
>>> Virginia.
>>>
>>>
>>>
>>>
>>> 2013/8/13 Pietro Belotti <petr.7b6 at gmail.com>
>>>
>>>> Virginia,
>>>>
>>>> it depends on what you set with the --prefix option in configure, if
>>>> you used it. If you want to have the executable in $HOME/bin, then you
>>>> should give the option
>>>>
>>>> --prefix=$HOME
>>>>
>>>> Otherwise, the executable should be in Couenne/src/main/couenne, from
>>>> the directory where you launched the make command.
>>>>
>>>> Regards,
>>>> Pietro
>>>>
>>>>
>>>> On Tue, Aug 13, 2013 at 7:05 PM, Virginia Costa <virscosta at gmail.com>wrote:
>>>>
>>>>> Hi again,
>>>>>
>>>>> Now, I try to install Couenne with --without-scip confguration option.
>>>>> There was no more erros. So, I executed "make install". But, when I look
>>>>> inside the bin directory, there's no couenne binary file.
>>>>> Do you know what I did wrong?
>>>>> Many Thanks.
>>>>> Virginia.
>>>>>
>>>>>
>>>>> 2013/8/13 Stefan Vigerske <stefan at math.hu-berlin.de>
>>>>>
>>>>>> Hi,
>>>>>>
>>>>>>
>>>>>> On 08/13/2013 07:42 PM, Virginia Costa wrote:
>>>>>>
>>>>>>> Hi Stefan,
>>>>>>>
>>>>>>> Thanks for your answer. I have another question: what about SCIP?
>>>>>>> Does
>>>>>>> couenne need it to run?
>>>>>>> After your answer, I try to build again the package with
>>>>>>> --without-glpk
>>>>>>> configure option. There's no more error with amd.h, but, now, scip is
>>>>>>> returning some errors.
>>>>>>> Do you know if scip is necessary to install Couenne?
>>>>>>>
>>>>>>
>>>>>> No, SCIP may only used in the feaspump heuristic, which is off by
>>>>>> default.
>>>>>>
>>>>>> Stefan
>>>>>>
>>>>>>  Thanks one more time.
>>>>>>> Virginia.
>>>>>>>
>>>>>>>
>>>>>>> 2013/8/13 Stefan Vigerske <stefan at math.hu-berlin.de>
>>>>>>>
>>>>>>>  Hi,
>>>>>>>>
>>>>>>>> your Glpk installation does not seem to bring the amd.h that
>>>>>>>> usually comes
>>>>>>>> with Glpk. Clp assumes that if it has Glpk, then also amd.h will be
>>>>>>>> available.
>>>>>>>> However, Couenne does not make any use of Glpk, there is no need to
>>>>>>>> include it.
>>>>>>>> Further, if you have blas and lapack installed in your system, then
>>>>>>>> it
>>>>>>>> should be picked up by configure automatically.
>>>>>>>>
>>>>>>>> Stefan
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> On 08/13/2013 04:04 AM, Virginia Costa wrote:
>>>>>>>>
>>>>>>>>  Hello everybody,
>>>>>>>>> I'm a new user of Couenne and I'd like to install this package in
>>>>>>>>> my
>>>>>>>>> machine, which has Ubuntu 13.04. I tried to install it so many
>>>>>>>>> times, but,
>>>>>>>>>    unfortunately, I didn't get it.
>>>>>>>>>
>>>>>>>>> I downloaded the Couenne package by svn, as follows:
>>>>>>>>> svn co https://projects.coin-or.org/****svn/Couenne/stable/0.4<https://projects.coin-or.org/**svn/Couenne/stable/0.4>
>>>>>>>>> <https:**//projects.coin-or.org/svn/**Couenne/stable/0.4<https://projects.coin-or.org/svn/Couenne/stable/0.4>
>>>>>>>>> >Couenne
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> In the operation system, I have glpk, zlib, blas and lapack
>>>>>>>>> installed. I
>>>>>>>>> also installed soplex 1.7.0 in the ThirdParty  directory and I
>>>>>>>>> installed
>>>>>>>>> the packages Metis, SCIP and Mumps by using the get.XXXX script,
>>>>>>>>> avaiable
>>>>>>>>> inside the Couenne package.
>>>>>>>>>
>>>>>>>>> After all, I configure the package as following:
>>>>>>>>>
>>>>>>>>> #!/bin/bash
>>>>>>>>> GLPKLIB="/usr/lib"
>>>>>>>>> GLPKINC="/usr/include"
>>>>>>>>> BLASLIB="/usr/lib/libblas"
>>>>>>>>> LAPACKLIB="/usr/lib/lapack"
>>>>>>>>>
>>>>>>>>> ../configure -C --with-glpk-lib=${GLPKLIB}
>>>>>>>>> --with-glpk-incdir=${GLPKINC}
>>>>>>>>> --with-blas-lib=${BLASLIB} --with-lapack-lib=${LAPACKLIB}
>>>>>>>>> --without-asl
>>>>>>>>> --with-gnu-ld
>>>>>>>>>
>>>>>>>>> And I got the output showed in the file attached.
>>>>>>>>>
>>>>>>>>> When I try to buid the package, It's returns the following error:
>>>>>>>>>
>>>>>>>>> (...)
>>>>>>>>>
>>>>>>>>>    g++ -DHAVE_CONFIG_H -I. -I../../../Clp/src
>>>>>>>>> -I/home/virscosta/coinor/****Couenne/ThirdParty/Mumps/****
>>>>>>>>> MUMPS/libseq
>>>>>>>>> -I/home/virscosta/coinor/****Couenne/ThirdParty/Mumps/****
>>>>>>>>> MUMPS/include
>>>>>>>>> -I/home/virscosta/coinor/****Couenne/ThirdParty/Metis/****
>>>>>>>>> metis-4.0/Lib
>>>>>>>>> -I/usr/include -I/home/virscosta/coinor/****Couenne/CoinUtils/src
>>>>>>>>> -I/home/virscosta/coinor/****Couenne/build/CoinUtils/src
>>>>>>>>> -DCOIN_HAS_CLP -O3
>>>>>>>>>
>>>>>>>>> -pipe -DNDEBUG -pedantic-errors -Wparentheses -Wreturn-type
>>>>>>>>> -Wcast-qual
>>>>>>>>> -Wall -Wpointer-arith -Wwrite-strings -Wconversion
>>>>>>>>> -Wno-unknown-pragmas
>>>>>>>>> -Wno-long-long -DCLP_BUILD -MT ClpCholeskyUfl.lo -MD -MP -MF
>>>>>>>>> .deps/ClpCholeskyUfl.Tpo -c ../../../Clp/src/****ClpCholeskyUfl.cpp
>>>>>>>>>  -fPIC
>>>>>>>>> -DPIC -o .libs/ClpCholeskyUfl.o
>>>>>>>>> ../../../Clp/src/****ClpCholeskyUfl.cpp:13:17: fatal error:
>>>>>>>>> amd.h: No such
>>>>>>>>>
>>>>>>>>> file
>>>>>>>>> or directory
>>>>>>>>> compilation terminated.
>>>>>>>>> make[4]: ** [ClpCholeskyUfl.lo] Erro 1
>>>>>>>>> make[4]: Saindo do diretório `/home/virscosta/coinor/**
>>>>>>>>>
>>>>>>>>> Couenne/build/Clp/src'
>>>>>>>>> make[3]: ** [all-recursive] Erro 1
>>>>>>>>> make[3]: Saindo do diretório `/home/virscosta/coinor/**
>>>>>>>>>
>>>>>>>>> Couenne/build/Clp/src'
>>>>>>>>> make[2]: ** [all] Erro 2
>>>>>>>>> make[2]: Saindo do diretório `/home/virscosta/coinor/**
>>>>>>>>>
>>>>>>>>> Couenne/build/Clp/src'
>>>>>>>>> make[1]: ** [all-recursive] Erro 1
>>>>>>>>> make[1]: Saindo do diretório `/home/virscosta/coinor/****
>>>>>>>>> Couenne/build/Clp'
>>>>>>>>>
>>>>>>>>> make: ** [all-recursive] Erro 1
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> Could somebody help me please?
>>>>>>>>>
>>>>>>>>> Thanks for advance.
>>>>>>>>>
>>>>>>>>> Virginia Costa
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> ______________________________****_________________
>>>>>>>>> Couenne mailing list
>>>>>>>>> Couenne at list.coin-or.org
>>>>>>>>> http://list.coin-or.org/****mailman/listinfo/couenne<http://list.coin-or.org/**mailman/listinfo/couenne>
>>>>>>>>> <http:**//list.coin-or.org/mailman/**listinfo/couenne<http://list.coin-or.org/mailman/listinfo/couenne>
>>>>>>>>> >
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Programa de Engenharia de Sistemas e Computação
>>>>> PESC/COPPE/UFRJ
>>>>> Visite nossa página web (http://www.cos.ufrj.br)
>>>>> Skype: virscosta
>>>>>
>>>>> _______________________________________________
>>>>> Couenne mailing list
>>>>> Couenne at list.coin-or.org
>>>>> http://list.coin-or.org/mailman/listinfo/couenne
>>>>>
>>>>
>>>>
>>>
>>>
>>> --
>>> Programa de Engenharia de Sistemas e Computação
>>> PESC/COPPE/UFRJ
>>> Visite nossa página web (http://www.cos.ufrj.br)
>>> Skype: virscosta
>>>
>>
>>
>
>
> --
> Programa de Engenharia de Sistemas e Computação
> PESC/COPPE/UFRJ
> Visite nossa página web (http://www.cos.ufrj.br)
> Skype: virscosta
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.coin-or.org/pipermail/couenne/attachments/20130814/badbd36a/attachment.html>


More information about the Couenne mailing list