Rate This Document
Findability
Accuracy
Completeness
Readability

Installing Octave

Procedure

  1. Use PuTTY to log in to the server as the root user.
  2. Download the source code to the /home directory:
    cd /home
    wget https://mirrors.tuna.tsinghua.edu.cn/gnu/octave/octave-6.4.0.tar.gz
  3. Decompress the installation package and perform the installation.
    tar -zxvf octave-6.4.0.tar.gz
    cd /home/octave-6.4.0
    ./configure --prefix=/opt/octave --disable-readline
    make

    make install
  4. Set the environment variables.
    export PATH=/path/to/octave/bin:$PATH
    export LD_LIBRARY_PATH=/path/to/octave/lib:$LD_LIBRARY_PATH
  5. Perform the verification.
    octave-cli

    If the following information is displayed, the installation is successful: