Opened 14 years ago

Closed 14 years ago

#2 closed defect (fixed)

building cbc ampl driver fails at ./configure stage

Reported by: leolopes Owned by: andreasw
Priority: major Component: component1
Version: Keywords:
Cc:

Description

There are actually two related issues here. One is a bug, the other is more of a questions. Both seem related to buildTools

1 Specifying location for asl dir causes problems to configure script. Output:

[leolopes@host Cbc]$ ./configure --with-asldir --prefix=/usr/local
checking build system type... i686-pc-linux-gnu
checking whether we want to compile in debug mode... no
checking for xlc... no
[...]
checking if user provides library for Xpress... no
checking for yes/amplsolver.a... no
configure: error: ASL directory "yes" specified, but library missing

2 Should this option be available at the root directory after the svn download? IOW, if we get cbc by svn co https://pr..../Cbc/trunk cbc then should the --with-asldir option be available in the configure script in the cbc directory or only in the one in the cbc/Cbc directory?

BTW I am marking the bug major bc I am hoping to demo this @ DIMACS.

Thanks, Leo.

Change History (3)

comment:1 Changed 14 years ago by andreasw

There is no bug, it just isn't documented for Cbc it seems.

To build the Ampl Cbc executable, you need to go into the ThirdParty?/ASL directory and run ./get.ASL (or read INSTALL.ASL). Then, when you run the configure scripts, they will automatically detect the ASL, compile it for you, and build the cbc executable with AMPL support.

If you want to use the --with-asldir flag, you need to specify the directory as argument where the compiled ASL library, as well as the ASL source code is, just as the help for that flag from the configure script says.

Also, one should always run the configure script from the base directory, not from any subdirectory, unless one understand the autotools.

If you want more information, please have a look at the ASL related documentation for Ipopt, e.g. http://www.coin-or.org/Ipopt/documentation/node145.html

For some reason I'm not able to close this ticket.

comment:2 Changed 14 years ago by leolopes

Actually this was my mistake. I entered:

./configure --with-asldir --prefix=/usr/local

instead of

./configure --with-asldir=/home/leolopes/lib/ampl/solvers --prefix=/usr/local

Once I did this step correctly, cbc was built correctly.

I can't close the ticket either!

comment:3 Changed 14 years ago by forrest

  • Resolution set to fixed
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.