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 <[email protected]>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: [email protected] > > >> 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 > > >> [email protected] > > >> https://lists.gnu.org/mailman/**listinfo/help-glpk<https://lists.gnu.org/mailman/listinfo/help-glpk> > > >> > > > > > > _______________________________________________ Help-glpk mailing list [email protected] https://lists.gnu.org/mailman/listinfo/help-glpk
