[Couenne] Configure, build and install Couenne

Pietro Belotti petr.7b6 at gmail.com
Sat Aug 17 09:23:52 EDT 2013


Thanks Virginia. I think the command that's currently used is wget, which
is quite standard for downloading even large files. As Stefan said, it's
probably just a matter of finding alternative URLs.

Pietro


On Wed, Aug 14, 2013 at 12:36 PM, Virginia Costa <virscosta at gmail.com>wrote:

> Hi Stefan and Pietro,
> A temporary way to download the AMPL solvers could be to use the HTTrack
> program (http://www.httrack.com/ ). We can also find this program in apt
> repositories for Ubuntu users and we can use its console version by the
> command httrack, fact that allow us to write a script. With this program,
> we can download the directory http://www.netlib.org/ampl/solvers/completely. I used HTTrack in its web browser version, but I think that
> it's possible to write a script with it.
> It's just an idea.
> Now, I have to learn how to use Couenne. :-)
> Thank you so much.
> Virginia.
> --
> Programa de Engenharia de Sistemas e Computação
> PESC/COPPE/UFRJ
> Visite nossa página web: http://www.cos.ufrj.br
> Visite a página de nossa universidade: http://www.ufrj.br<http://www.ufrj.br/#>
> Skype: virscosta
>
>
> 2013/8/14 Stefan Vigerske <stefan at math.hu-berlin.de>
>
>> Hi,
>>
>> the latest stable branches and releases of ThirdParty projects have some
>> workarounds for the broken FTP access to netlib.
>> For Blas and Lapack, they use HTTP access.
>> For ASL, this does not work (there is no solvers.tar via http), but it
>> now downloads from the Sandia mirror, if netlib-ftp doesn't work.
>> Unfortunately, also sandia.gov was offline from time to time recently.
>>
>> Anyhow, we are working on a solution that makes us more independent of
>> netlib (and more dependent on the coin-or server, instead).
>>
>> Stefan
>>
>>
>> On 08/14/2013 11:27 AM, Pietro Belotti wrote:
>>
>>> 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>
>>>>>>>>>>>> <http**s://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<http://projects.coin-or.org/svn/**Couenne/stable/0.4>
>>>>>>>>>>>> <h**ttps://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>
>>>>>>>>>>>> >
>>>>>>>>>>>> <http:**//list.coin-or.org/**mailman/**listinfo/couenne<http://list.coin-or.org/mailman/**listinfo/couenne>
>>>>>>>>>>>> <htt**p://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<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/20130817/9515c362/attachment.html>


More information about the Couenne mailing list