[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Help-glpk] about glplib.h: No such file or directory
From: |
Andrew Makhorin |
Subject: |
Re: [Help-glpk] about glplib.h: No such file or directory |
Date: |
Fri, 16 May 2008 12:46:50 +0400 |
> I want to ask a question about problem of installation.
> I got the following message when I run makeglpkmex to install glpkmex.
> ---------------------------------------------------------------------------------------------------------------
> GLPKMEX - A Matlab interface for GLPK. Script installer.
> Version 2.4 compatible with GLPK 4.20 (or higher)
> (C) 2001-2007, Nicolo #39; Giorgetti.
> Do you want to use graphic installer? Y/N [Y]:
> GLPK path... /home1/usr2/gnu
> GLPK include files...OK
> GLPK library file...OK
> glpkcc.cpp:37:22: glplib.h: No such file or directory
> glpkcc.cpp: In function `int glpk(int, int, int, double*, int, int*, int*,
> double*, double*, char*, int*, double*, int*, double*, int*, int, int, int,
> char*, char*, double*, double*, double*, double*, double*, double*, double*)
> #39;:
> glpkcc.cpp:314: error: `xassert #39; undeclared (first use this function)
> glpkcc.cpp:314: error: (Each undeclared identifier is reported only once for
> each function it appears in.)
> glpkcc.cpp:374: error: `glp_ulong #39; undeclared (first use this function)
> glpkcc.cpp:374: error: syntax error before `; #39; token
> glpkcc.cpp:375: error: `tpeak #39; undeclared (first use this function)
> glpkcc.cpp:375: error: `lib_mem_usage #39; undeclared (first use this
> function)
> mex: compile of #39;glpkcc.cpp #39; failed.
> ??? Error using ==> mex
> Unable to complete successfully
> Error in ==> makeglpkmex at 111
> eval([ #39;mex #39; cmd]);
> -------------------------------------------------------------------------------------------------------------
> I have installed glpk-4.28 as following command. I cannot become
> root because I use workstation, SuSE Linux.
> ./configure --prefix=/home/usr2/my_name/gnu/
> make
> make install
> I also tried
> ./configure --disable-shared --prefix=/home/usr2/my_name/gnu/
> make
> make install
> I think the problem isĀ glplib.h is not created but I cannot solve it.
> Could you advise me?
Unfortunately, glpkmex uses some internal glpk macros and routines,
which are not available on api level.
You can comment out '#include glplib.h' (line 37), 'xassert' (line 314),
and the fragment, where lib_mem_usage is used (lines 374-375). This must
resolve the problem not changing the functionality of glpkmex.