Comments (3)
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.
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.
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from go-glpk.