How to install GLPK on Alpine Linux?
<p>The installation of <code>swiglpk</code> package on Alpine Linux fails with the following trace:</p>

<pre><code>Collecting swiglpk&gt;=1.2.14; extra == "all" (from cameo[all]==0.6.3-&gt;-r requirements.txt (line 1))
   Downloading swiglpk-1.2.14.tar.gz
Complete output from command python setup.py egg_info:
which: no glpsol in (/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin)
Trying to determine glpk.h location
Traceback (most recent call last):
  File "&lt;string&gt;", line 1, in &lt;module&gt;
  File "/tmp/pip-build-_g57y7ed/swiglpk/setup.py", line 45, in &lt;module&gt;
    copy_glpk_header()
  File "/tmp/pip-build-_g57y7ed/swiglpk/setup.py", line 28, in copy_glpk_header
    glpsol_path = os.path.dirname(subprocess.check_output(['which', 'glpsol']))
  File "/usr/local/lib/python3.5/subprocess.py", line 626, in check_output
    **kwargs).stdout
  File "/usr/local/lib/python3.5/subprocess.py", line 708, in run
    output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '['which', 'glpsol']' returned non-zero exit status 1
</code></pre>

<p>So <code>glpsol</code> is not found in the path.</p>

<p>How can <code>glpk</code>/<code>glpsol</code> be installed on Alpine Linux, if possible?</p>

<p>Cause there is no <code>glpk</code> package for Alpine yet, it can be installed from source</p>

<pre><code>wget ftp://ftp.gnu.org/gnu/glpk/glpk-4.55.tar.gz
tar -xzvf glpk-4.55.tar.gz
cd glpk-4.55
./configure
make install
</code></pre>

<p>To make sure it worked, run <code>which glpsol</code></p>

python linux installation glpk alpine