[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-glpk] [Fwd: compilation error]
From: |
Noli Sicad |
Subject: |
Re: [Bug-glpk] [Fwd: compilation error] |
Date: |
Thu, 25 Oct 2012 20:48:08 +1100 |
Hi Robin,
> macosx 10.7.5; gcc 4.2; glpk 4.47.
>
>
> after an apparently successful ./configure --with-gmp, 'make' fails with
> a bunch of error messages:
>
>
> wt118:~/Downloads/glpk-4.47% make
> make all-recursive
> Making all in src
> /bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I.
> -I.. -g -O2 -MT glpapi07.lo -MD -MP -MF .deps/glpapi07.Tpo -c -o
> glpapi07.lo glpapi07.c
> libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -g -O2 -MT glpapi07.lo
> -MD -MP -MF .deps/glpapi07.Tpo -c glpapi07.c -fno-common -DPIC
> -o .libs/glpapi07.o
> In file included from glpbfx.h:28,
> from glpssx.h:28,
> from glpapi07.c:26:
> glpgmp.h:34:17: error: gmp.h: No such file or directory
> In file included from glpssx.h:28,
> from glpapi07.c:26:
Did you install gmp? What's the version?
Get the latest version 5.0.5 from here
http://ftp.gnu.org/gnu/gmp/
I just downloaded it and installed it in my Mac OS X.
Now, I did
./configure --with-gmp --enable-odbc --enable-dl
make
make check
make install
Here's the logs (below). It is installed properly.
Noli
...
Making install in src
test -z "/usr/local/lib" || .././install-sh -c -d "/usr/local/lib"
/bin/sh ../libtool --mode=install /usr/bin/install -c libglpk.la
'/usr/local/lib'
libtool: install: /usr/bin/install -c .libs/libglpk.0.dylib
/usr/local/lib/libglpk.0.dylib
libtool: install: (cd /usr/local/lib && { ln -s -f libglpk.0.dylib
libglpk.dylib || { rm -f libglpk.dylib && ln -s libglpk.0.dylib
libglpk.dylib; }; })
libtool: install: /usr/bin/install -c .libs/libglpk.lai
/usr/local/lib/libglpk.la
libtool: install: /usr/bin/install -c .libs/libglpk.a /usr/local/lib/libglpk.a
libtool: install: chmod 644 /usr/local/lib/libglpk.a
libtool: install: ranlib /usr/local/lib/libglpk.a
ranlib: file: /usr/local/lib/libglpk.a(amd_dump.o) has no symbols
----------------------------------------------------------------------
Libraries have been installed in:
/usr/local/lib
If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
- add LIBDIR to the `DYLD_LIBRARY_PATH' environment variable
during execution
See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
test -z "/usr/local/include" || .././install-sh -c -d "/usr/local/include"
/usr/bin/install -c -m 644 glpk.h '/usr/local/include'
Making install in examples
test -z "/usr/local/bin" || .././install-sh -c -d "/usr/local/bin"
/bin/sh ../libtool --mode=install /usr/bin/install -c glpsol
'/usr/local/bin'
libtool: install: /usr/bin/install -c .libs/glpsol /usr/local/bin/glpsol
make[2]: Nothing to be done for `install-data-am'.
make[2]: Nothing to be done for `install-exec-am'.
make[2]: Nothing to be done for `install-data-am'.
Nolis-MacBook-Pro:glpk-4.47 nsicad$
Nolis-MacBook-Pro:glpk-4.47 nsicad$ glpsol --help
Usage: glpsol [options...] filename
General options:
--mps read LP/MIP problem in fixed MPS format
--freemps read LP/MIP problem in free MPS format (default)
--lp read LP/MIP problem in CPLEX LP format
--glp read LP/MIP problem in GLPK format
--math read LP/MIP model written in GNU MathProg modeling