Installing glpkmex MAC I7 10.6.6 Matlab 32bit

Help
Anonymous
2011-10-19
2013-04-15
  • Anonymous - 2011-10-19

    Hello everyone,

    I have been trying to install glpkmex on my computer but it is not working. I actually had it installed before but I was having wrong solutions with glpk and decided to install the new versions of everything.
    Thus, I installed glpk-4.47 and now I am trying to install glpkmex-2.11. However, I am having the following message when applying glpkmex from matlab:

    GLPKMEX - A Matlab interface for GLPK. Script installer.
    Version 2.11 compatible with GLPK 4.40 (or higher)
    (C) 2001-2007, Nicolo' Giorgetti.
    Maintained by  Niels Klitogrd
    Last updated: Sept 2011.
    Do you want to use graphic installer? Y/N : n
    GLPK path: /Users/ragg005/Documents/simulations/matlab/cobra_toolbox/external/toolboxes/glpk-4.47
    GLPK path… /Users/ragg005/Documents/simulations/matlab/cobra_toolbox/external/toolboxes/glpk-4.47
    Warning: Specified directory does not contain GLPK include directory!
    GLPK include directory: cd /usr/local/include
    Warning: Specified directory does not contain GLPK include directory!
    GLPK include directory: /usr/local/include
    GLPK include files…OK
    Warning: Specified directory does not contain GLPK libglpk.a library!
    Specify full path to GLPK libglpk.a: /usr/local/lib/libglpk.a
    GLPK library file…OK
    Compile glpkmex using large arrays? Y/N : y
    Was glpk complied with gmp? Y/N : n
    attempting to run:
    mex '-largeArrayDims -I/usr/local/include glpkcc.cpp /usr/local/lib/libglpk.a'
    ld: warning: in /Developer/SDKs/MacOSX10.5.sdk/usr/local/lib/libglpk.a, file was built for unsupported file format which is not the architecture being linked (i386)
    Undefined symbols:
      "_glp_term_hook", referenced from:
          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*)in glpkcc.o
          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*)in glpkcc.o
      "_glp_get_status", referenced from:
          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*)in glpkcc.o
      "_glp_ipt_obj_val", referenced from:
          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*)in glpkcc.o
      "_glp_set_col_kind", referenced from:
          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*)in glpkcc.o
      "_glp_mem_usage", referenced from:
          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*)in glpkcc.o
      "_glp_set_obj_coef", referenced from:
          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*)in glpkcc.o
      "_glp_load_matrix", referenced from:
          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*)in glpkcc.o
      "_glp_ipt_col_dual", referenced from:
          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*)in glpkcc.o
      "_glp_ipt_row_dual", referenced from:
          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*)in glpkcc.o
      "__glp_lpx_set_real_parm", referenced from:
          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*)in glpkcc.o
      "_glp_delete_prob", referenced from:
          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*)in glpkcc.o
          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*)in glpkcc.o
      "_glp_get_col_dual", referenced from:
          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*)in glpkcc.o
      "_glp_get_row_dual", referenced from:
          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*)in glpkcc.o
      "_glp_add_rows", referenced from:
          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*)in glpkcc.o
      "_glp_add_cols", referenced from:
          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*)in glpkcc.o
      "_glp_ipt_status", referenced from:
          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*)in glpkcc.o
      "_glp_write_lp", referenced from:
          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*)in glpkcc.o
      "_glp_mip_col_val", referenced from:
          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*)in glpkcc.o
      "_glp_write_mps", referenced from:
          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*)in glpkcc.o
      "_glp_intopt", referenced from:
          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*)in glpkcc.o
      "_glp_free_env", referenced from:
          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*)in glpkcc.o
      "_glp_simplex", referenced from:
          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*)in glpkcc.o
      "_glp_mip_status", referenced from:
          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*)in glpkcc.o
      "_glp_init_iocp", referenced from:
          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*)in glpkcc.o
          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*)in glpkcc.o
      "_glp_adv_basis", referenced from:
          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*)in glpkcc.o
      "_glp_version", referenced from:
          _mexFunction in glpkcc.o
          _mexFunction in glpkcc.o
      "_glp_interior", referenced from:
          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*)in glpkcc.o
      "_glp_exact", referenced from:
          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*)in glpkcc.o
      "_glp_set_row_bnds", referenced from:
          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*)in glpkcc.o
          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*)in glpkcc.o
          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*)in glpkcc.o
      "_glp_set_col_bnds", referenced from:
          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*)in glpkcc.o
          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*)in glpkcc.o
          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*)in glpkcc.o
          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*)in glpkcc.o
          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*)in glpkcc.o
      "_glp_ipt_col_prim", referenced from:
          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*)in glpkcc.o
      "_glp_get_num_cols", referenced from:
          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*)in glpkcc.o
          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*)in glpkcc.o
          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*)in glpkcc.o
      "__glp_lpx_set_int_parm", referenced from:
          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*)in glpkcc.o
      "_glp_get_col_prim", referenced from:
          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*)in glpkcc.o
      "_glp_create_prob", referenced from:
          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*)in glpkcc.o
      "_glp_scale_prob", referenced from:
          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*)in glpkcc.o
          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*)in glpkcc.o
          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*)in glpkcc.o
          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*)in glpkcc.o
          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*)in glpkcc.o
      "_glp_init_smcp", referenced from:
          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*)in glpkcc.o
      "__glp_lpx_print_prob", referenced from:
          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*)in glpkcc.o
      "_glp_mip_obj_val", referenced from:
          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*)in glpkcc.o
      "_glp_get_obj_val", referenced from:
          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*)in glpkcc.o
      "_glp_set_obj_dir", referenced from:
          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*)in glpkcc.o
          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*)in glpkcc.o
    ld: symbol(s) not found
    collect2: ld returned 1 exit status

        mex: link of ' "glpkcc.mexmaci"' failed.

    ??? Error using ==> mex at 222
    Unable to complete successfully.

    Error in ==> makeglpkmex at 208
    eval();

    If anyone has a solution please let me know.

    Cheers!
    Raphael

     
  • Niels Klitgord

    Niels Klitgord - 2011-10-19

    Hello Raphael,
       Looks as if you're mac can't see the glpk lib files. Did you add the lib directory were you installed glpk lib files into to your DYLD_LIBRARY_PATH shell variable as indicted in the install file? (if you added it to your .bashrc, be sure to source it), also you can double check the variable is contains the dir by typing:
    echo $DYLD_LIBRARY_PATH
    from the command line.
    The makeglpkmex isn't' really reliable for the mac so once you've updated the variables of your environment, from the command line run:
    /<path to>/mex  -I/<path to >/include /<path to>/glpkcc.cpp /<path to>/libglpk.a

    where <path to> is the full path to each location (the include dir should contain your glpk.h file), also note there is no space between the -I and the <path to>.
    good luck and happy coding
    -n

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks