|
From: | Nigel Galloway |
Subject: | Re: [Help-glpk] glpk on amazon linux ami |
Date: | Mon, 15 Apr 2013 07:01:55 -0700 |
Thanks Nigel I got a ltdl.h error when i tried to compile glpk.BTWsudo yum install glpk-utilsworks so at least glpsol is easy to get on amazon ec2 amiDavidOn 15 April 2013 11:41, Nigel Galloway <address@hidden> wrote:David,As well as gcc you will need to install libtool-2.2.10 for libltdlOn Fri, Apr 12, 2013, at 05:35 AM, David Curran wrote:Thanks NigelI will try thoseDavidOn 12 April 2013 13:33, Nigel Galloway <address@hidden> wrote:AWS has a discussion forum, currently with no questions about installing the AWS GLPK package. That may be a better place to ask. I notice the available packages include gcc4.7, there are many questions and answers about installing that, see https://forums.aws.amazon.com/search.jspa?objID=f30&q=gcc&x=14&y=14. Given that the AWS package is GLPK4.40, you may be better installing gcc with help from the above forum if needed, then obtaining the latest glpk (4.48) and compiling it, with help from this group and the wiki as needed.A final option is that rpm packages can be installed on AWS. You could obtain any rpm for 4.48 and install that.On Thu, Apr 11, 2013, at 08:06 AM, David Curran wrote:HiHas anyone used glpk on an Amazon ec2 micro instance? I am having trouble getting it workingsudo yum install glpkworks finesudo yum list installedincludes "glpk.x86_64 4.40-1.1.4.amzn1 @amzn-main"andyum search glpkgives============================== N/S Matched: glpk ===============================glpk-devel.x86_64 : Development headers and files for GLPKglpk-doc.x86_64 : Documentation for glpkglpk-static.x86_64 : Static version of GLPK librariesglpk-utils.x86_64 : GLPK-related utilities and examplesglpk.i686 : GNU Linear Programming Kitglpk.x86_64 : GNU Linear Programming KitBut from here how do you actually run glpsol or even call glpk.h as a library?<glpk.h> is not found if I include it in a c file or if I try gem install of rglpk[ec2-user rubygems-1.8.11]$ sudo gem install rglpkI getchecking for main() in -lglpk... noERROR: Cannot find the GLPK library, aborting.a 'find / -name glpk*' does not find glpk files either.I could be doing something stupid with linux rather than linux on ec2. But any help you can provide me on how to get a "hello world" glpk example running on amazon ec2 linux would be great.David_______________________________________________Help-glpk mailing list-- http://www.fastmail.fm - The professional email service-- http://www.fastmail.fm - Choose from over 50 domains or use your own
-- http://www.fastmail.fm - A no graphics, no pop-ups email service
[Prev in Thread] | Current Thread | [Next in Thread] |