[Lemon-user] Enabling GLPK library after LEMON had been installed

Cherif Mouaouia Bouzid cherifmouaouia.bouzid at gmail.com
Tue Aug 2 16:47:30 CEST 2011


Hello, thank you for your answers

>The ./configure command will show a summary of configuration options (they
are automatically detected). This summary
>should contain the following line if you have GLPK properly installed:

>GLPK support.................. : yes

After running the ./configure command, I had this:

...
****************************** SUMMARY ******************************
...
Compiler supports long long... : yes

GLPK support.................. : yes
CPLEX support................. : no
...

> ... finish the installation by 'make' and 'make install'.

I did it and I'm now able to compile and run mip_demo.cc with the commands
"g++ -o mip_demo mip_demo.cc -lemon -lglpk" and "./mip_demo". Output is:

Objective function value: 67
x1 = 8
x2 = 9

>On a side note, the autotool based build system is going to be
>deprecated in favor of CMAKE, so I suggest using

>mkdir build
>cd build
>cmake -L ..

>instead of ./configure

>The option -L above has cmake printed various config settings (including
>the location of GLPK if is was found).

Sorry Alpar but I used the "./configure" command.

Thank you both of you :] !
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lemon.cs.elte.hu/pipermail/lemon-user/attachments/20110802/15acb863/attachment.html>


More information about the Lemon-user mailing list