Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

building cbc ampl driver fails at ./configure stage #2

Closed
svigerske opened this issue Mar 3, 2019 · 3 comments
Closed

building cbc ampl driver fails at ./configure stage #2

svigerske opened this issue Mar 3, 2019 · 3 comments
Labels
bug Something isn't working

Comments

@svigerske
Copy link
Member

Issue created by migration from Trac.

Original creator: @lleeoo

Original creation time: 2006-07-12 21:06:48

Assignee: @andrea5w

Version:

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.

@svigerske svigerske added bug Something isn't working component1 labels Mar 3, 2019
@svigerske
Copy link
Member Author

Comment by @andrea5w created at 2006-07-12 21:24:26

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.

@svigerske
Copy link
Member Author

Comment by @lleeoo created at 2006-07-12 23:53:08

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!

@svigerske
Copy link
Member Author

Comment by @jjhforrest created at 2006-07-13 01:22:10

Resolution: fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant