Hi,
Looks like I made some progress ! But, I received these 2 messages, when I
was installing according to the
http://glpk-java.sourceforge.net/gettingStarted.html , GLPK /"LPK for Java
instructions :

1. In the glpk 4.50 installation, after make install (no error msg upto
this point) :
~/glpk-4.50$ glpsol --version
glpsol: error while loading shared libraries: libglpk.so.35: cannot open
shared object file: No such file or directory

2.During "make check" for glpk-java-1.0.28 :
The dynamic link library for GLPK for Java could not be loaded. Consider
using
java -Djava.library.path=

3. when I tried to test run my program, I got the following error :
The dynamic link library for GLPK for Java could not be loaded.
Consider using
java -Djava.library.path=
Exception in thread "Timer-0" java.lang.UnsatisfiedLinkError: no glpk_java
in java.library.path
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1681)
 at java.lang.Runtime.loadLibrary0(Runtime.java:840)
at java.lang.System.loadLibrary(System.java:1047)
 at org.gnu.glpk.GLPK.<clinit>(GLPK.java:20)
              ... ... ...

The detailed error messages are attached in the email,

Please suggest how I can take care of the dynamic link library error ?

Thanks a lot
Kazi

========================================================

On Sat, Jun 8, 2013 at 4:08 PM, <xypron.g...@gmx.de> wrote:

> Hello Kazi,
>
> GLPK can also be build without GMP.
>
> Try package libgmp3-dev.
>
> Best regards
>
> Heinrich Schuchardt
>
> http://www.xypron.de
>
> Am 08.06.13 um 19:55 schrieb Kazi Moyeen ul Huq
>
> > Hi,
> >
> > I tried to install the dependencies. Looks like the library "libgmp-dev "
> >
> > isn't available for the "lucid" suite.
> >
> > http://packages.ubuntu.com/search?keywords=libgmp-dev .
> >
> >
> >
> > I installed all the other build-depends: debhelper, cdbs, libltdl-dev,
> >
> > zlib1g-dev, libiodbc2-dev, libmysqlclient-dev, automake, autoconf,
> libtool.
> >
> > "libgmp-dev" gave me the error msg -- E: Couldn't find package
> libgmp-dev.
> >
> >
> >
> > Is there any work-around to that ? I'll try to install it from the other
> >
> > suites ( precise) but I get a feeling from previous experience that the
> >
> > server denies to install.
> >
> >
> >
> > Thanks.
> >
> > Kazi
> >
> >
> >
> >
> >
> > On Fri, Jun 7, 2013 at 3:34 PM, Heinrich Schuchardt <xypron.g...@gmx.de
> >wrote:
> >
> >
> >
> > > Hello Kazi,
> >
> > >
> >
> > >
> >
> > > > 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
> >
> > >
> >
> > > You seem to be on an outdated version of Ubuntu (lucid). The current
> >
> > > 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<
> 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
> >
> > >> To: help-glpk@gnu.org
> >
> > >> Subject: Need help running GLPK code in Ubuntu server
> >
> > >> 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/<
> 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
> >
> > >> Help-glpk@gnu.org
> >
> > >> https://lists.gnu.org/mailman/**listinfo/help-glpk<
> https://lists.gnu.org/mailman/listinfo/help-glpk>
> >
> > >>
> >
> > >
> >
> > >
>

Attachment: make
Description: Binary data

Attachment: make install glpk4.50
Description: Binary data

_______________________________________________
Help-glpk mailing list
Help-glpk@gnu.org
https://lists.gnu.org/mailman/listinfo/help-glpk

Reply via email to