[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-glpk] static build workaround for 4.30

From: Andrew Makhorin
Subject: Re: [Bug-glpk] static build workaround for 4.30
Date: Thu, 14 Aug 2008 21:20:34 +0400

Hi Robbie,

> I had some trouble achieving a static build for GLPK
> 4.30.  However, I did succeed after installing two key
> files by hand instead of using "sudo make install".
> This posting describes the problem and my workaround.

> I started with one of these two presumably equivalent
> configure calls:

>   $ ./configure --disable-dl --with-gmp
>   $ ./configure              --with-gmp

> Both variants gave exactly the same console reporting,
> which included the lines:

>   checking whether to use the GNU MP bignum library... yes
>   checking whether to enable shared library support... no

Right. By default the shared library support is disabled.

> I then made the usual calls:

>   $ make
>   $ make check
>   $ sudo make install

> However, my application, named 'xeona', built with an
> unresolved dynamic link for GLPK, hence:

>   $ ldd xeona | grep libglpk
>     libglpk.so.0 => not found

> Which, for the record, also failed to run (no surprises
> there):

>   xeona: error while loading shared libraries: libglpk.so.0: cannot
>     open shared object file: No such file or directory
>   Command exited with non-zero status 127

Probably there is some confusion. Options --enable-dl and --disable-dl
concern the shared library support used by some glpk modules. If you
need to build the shared/static glpk library, you should pass options
--enable-shared and/or --enable-static to the configure script.

To see all available options, run 'configure --help'.

Andrew Makhorin

reply via email to

[Prev in Thread] Current Thread [Next in Thread]