|
From: | Kazi Moyeen ul Huq |
Subject: | Re: [Help-glpk] [Fwd: Need help running GLPK code in Ubuntu server] |
Date: | Sat, 8 Jun 2013 13:55:23 -0400 |
Hello Kazi,You seem to be on an outdated version of Ubuntu (lucid). The current
> When I used sudo apt-get install libglpk-java , the server installs
> libglpk-java: 1.0.1-1.1. Then when I tried to run my program ( also
version is Ubuntu 12.04 LTS (Precise Pangolin).
I suggest you uninstall GLPK and GLPK for Java on your Ubuntu server.
sudo apt-get remove libglpk0 libglpk-dev
sudo apt-get autoremove
Install the build-depends: debhelper, cdbs, libgmp-dev, libltdl-dev,
zlib1g-dev, libiodbc2-dev, libmysqlclient-dev, automake, autoconf, libtool
Then build GLPK and GLPK for Java from source as described on
http://glpk-java.sourceforge.net/gettingStarted.html
When you want to install with iODBC use this configure line for GLPK:
configure --enable-dl --enable-odbc --enable-mysql --with-gmp
If you prefer UnixODBC you will need unixodbc-dev instead of libiodbc2-dev, and may use this configuration line for GLPK:
configure --enable-dl --enable-odbc=unix --enable-mysql --with-gmp
Best regards
Heinrich Schuchardt
On 07.06.2013 16:41, Andrew Makhorin wrote:
-------- Forwarded Message --------
From: Kazi Moyeen ul Huq_______________________________________________Date: Fri, 7 Jun 2013 08:41:41 -0400
Hi,
I wrote a GLPK program in Windows-Java using the current vesrion of
GLPK-java (1.0.28). It works well in windows. Now, I have to port it to
a Ubuntu server. I'm an intermediate level Ubuntu user.
When I used sudo apt-get install libglpk-java , the server installs
libglpk-java: 1.0.1-1.1. Then when I tried to run my program ( also the
test program given in the glpk examples ) it gives the the message :
A. for lp = GLPK.glp_create_prob();
Exception in thread "main" java.lang.UnsatisfiedLinkError:
org.gnu.glpk.GLPKJNI.glp_create_prob()J
at org.gnu.glpk.GLPKJNI.glp_create_prob(Native Method)
B. for System.out.println(GLPK.glp_version());
Exception in thread "main" java.lang.UnsatisfiedLinkError:
org.gnu.glpk.GLPKJNI.glp_version()Ljava/lang/String;
Please suggest me what I should do next to make my program run in the
installed 1.0.1-1.1 version in server.( any modification required ? )
Thanks in advance,
Moyeen
=================================
for further information, I also tried these:
A. I tried to change the repository and install the 1.0.18-1
from http://us.archive.ubuntu.com/ubuntu/ precise/universe amd64
Packages instead of current " lucid/universe amd64 Packages" but the
server fails to install it. It says some dependencies can't be
installed.
B. similar thing happens when I tried to manually install by
using ./configure
then I received an error -
configure: error: glpk.h not found
The detail error message is attached.
===================================
Help-glpk mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/help-glpk
[Prev in Thread] | Current Thread | [Next in Thread] |