Giter VIP home page Giter VIP logo

Comments (3)

lukpank avatar lukpank commented on August 14, 2024 2

You have to first install GLPK.
For example under Debian the package is named libglpk-dev.
It may have a different name on your system.

from go-glpk.

Manish-rai21bit avatar Manish-rai21bit commented on August 14, 2024

I'm also getting the same error while installing the glpk for my python. Below is the exact error that I face.

In file included from src/glpk.c:21:
src/lp.h:24:10: fatal error: 'glpk.h' file not found
#include "glpk.h"
^
1 error generated.
error: command '/usr/bin/clang' failed with exit status 1

from go-glpk.

seandunn avatar seandunn commented on August 14, 2024

Manish,

First of all, what you're describing is a problem with an unrelated project to go-glpk. You would probably get more help posting this on the page accompanying your python glpk interface library.

To be more helpful though, Glpk is written in C. Both go-glpk and whichever python library you are referring to are foreign function interfaces to that C code.

In order to use them you have to have the glpk c source code present on your machine and a path set to it so that clang can find it, as suggested by @lukpank.

I'm guessing you might be on a Mac from the clang error message. In which case I would suggest using homebrew to install the glpk dev package which includes the source code.

from go-glpk.

Related Issues (5)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.