[Top][All Lists]

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

RE: [Help-glpk] Problems with making glpk communicate with mysql on mac

From: Andrew Makhorin
Subject: RE: [Help-glpk] Problems with making glpk communicate with mysql on mac os 10.6
Date: Mon, 15 Nov 2010 22:11:54 +0300

> However, when I try to run the transp_mysql.mod example provided with
> the package, I get this:
> GLPSOL: GLPK LP/MIP Solver, v4.44
> Parameter(s) specified in the command line:
>  -m transp_mysql.mod
> Reading model section from transp_mysql.mod...
> Reading data section from transp_mysql.mod...
> 71 lines were read
> Reading plants...
> unable to open library libmysqlclient.dylib
> file not found
> transp_mysql.mod:17: error on opening table plants
> MathProg model processing error
> I have run the necessary script and created the database and tables,
> and MySQL is up and running. Would you happen to know what I get this
> message?

Maria, I think you need to re-install mysql. 

As a rule, on installation of a package all its headers and library
archives go into standard places, e.g. /usr/local/include,
usr/local/lib, etc. Otherwise, it is burdensome to specify all things 
properly. The message you received means that the shared library
libmysqlclient.dylib is located in some unknown place, so the control
program cannot access it. You can resolve this issue specifying the PATH
environment variable accordingly; however, it is much better to have all
mysql components properly installed.

Andrew Makhorin

reply via email to

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