我要评分
获取效率
正确性
完整性
易理解

Failed to Install GLPK

Symptom

The GLPK installation failed.

Key Process and Cause Analysis

The downloaded installation package is incorrect or the installation method is incorrect.

Conclusion and Solution

Use the source code for installation.

  1. Download the GLPK installation package.
    1
    wget https://ftp.gnu.org/gnu/glpk/glpk-5.0.tar.gz
    
  2. Decompress the installation package.
    1
    tar zxvf glpk-5.0.tar.gz
    
  3. Go to the glpk-5.0 directory and run the configuration script.
    1
    2
    cd glpk-5.0
    ./configure
    
  4. Perform compilation and installation.
    1
    2
    make
    make install