📜  install sage - Shell-Bash (1)

📅  最后修改于: 2023-12-03 15:31:25.006000             🧑  作者: Mango

Install Sage - Shell/Bash

SageMath is a free open-source mathematics software system that provides an extensive library of mathematics software to carry out computations in various fields of mathematics.

In this guide, we will show you how to install SageMath using Shell/Bash on Linux.

Prerequisites

Before we install SageMath, we need to ensure that our system is up-to-date and we have the following packages installed:

  • Python
  • gcc
  • g++
  • make
  • m4
Installation Steps

Follow the below steps to install SageMath using Shell/Bash:

  1. Open a terminal on your Linux system.

  2. Download the latest version of SageMath using the following command:

    wget https://mirrors.sage.org/sage/linux/64bit/sage-9.4-Ubuntu_20.04-x86_64.tar.bz2
    
  3. Extract the downloaded file using the following command:

    tar xvf sage-9.4-Ubuntu_20.04-x86_64.tar.bz2
    
  4. Navigate to the extracted SageMath directory using the following command:

    cd SageMath
    
  5. Run the following command to start the SageMath installation process:

    ./sage
    
  6. Wait for the installation process to complete. It might take some time to complete depending on your system's speed.

  7. Once the installation is complete, you will see a message indicating that SageMath has been successfully installed.

Testing SageMath

To test if SageMath has been successfully installed, open a terminal window and type the following command:

sage -v

The output should display the version of SageMath that you have installed.

Conclusion

We have successfully installed SageMath using Shell/Bash on Linux. SageMath is now ready for use on your system. Happy computing!