Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

There is no which on windows #14

Closed
cdiener opened this issue Nov 22, 2016 · 5 comments
Closed

There is no which on windows #14

cdiener opened this issue Nov 22, 2016 · 5 comments

Comments

@cdiener
Copy link
Member

cdiener commented Nov 22, 2016

When installing from source looking for glpk on windows the which glpsol step will fail since there is no which on windows (newer versions have where.exe which is similar).

@phantomas1234
Copy link
Contributor

Hmmm, I would rather like to add "if you're on Windows, you're on your own (check out the the appveyor.yml configuration)." to the installation instructions. Do you know if one can guess the location of glpk.h on Windows? When you install glpk on windows, is glpsol automatically added to the $PATH?

@cdiener
Copy link
Member Author

cdiener commented Nov 23, 2016

I would just put a try/except around subprocess... and not add anythinf to the path if there is an error. The error that there is no glpk.h is fine with me.

@Viech
Copy link
Contributor

Viech commented Nov 15, 2019

A similar issue just hit me when installing swiglpk via pip in a GitLab CI/CD environment running an Arch Linux image: https://gitlab.com/picos-api/picos/-/jobs/352226795

The problem here seems to be that /usr/bin/which is lacking from the default Arch installation as which is also a common shell built-in. Maybe this serves as another reason to detect the location differently.

@cdiener
Copy link
Member Author

cdiener commented Nov 15, 2019

Hi @Viech, you can work around that by downloading GLPK into the build directory. If there is a glpk.h in the current directory setup.py won't attempt to locate glpk any further.

@Viech
Copy link
Contributor

Viech commented Nov 15, 2019

@cdiener Thanks, but there's not much of a problem for me as I can install all missing dependencies. I just found this issue when first searching for a solution and wanted to share that which is not necessarily available as a standalone binary on GNU/Linux either.

@cdiener cdiener closed this as completed Jan 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants