![使用 Apt-Get](https://linux22.com/image/1630188/%E4%BD%BF%E7%94%A8%20Apt-Get.png)
我已经下载了 sagemath 9.1 的预编译二进制文件(sage-9.1-Ubuntu_18.04-x86_64.tar.bz2),我使用的是 ubuntu 20.04。提取文件后,我./sage
在终端中运行时,它显示bash: ./sage: Permission denied
。我通过更改权限使文件可执行,但随后它显示./sage: no Sage installation found in $SAGE_ROOT = /home/my_pc/Downloads/SageMath
。有人能帮我吗?
答案1
Sage 安装指南说道:
If your operating system does not provide SageMath, you can also use a pre-built binary...
Installation from a pre-built binary tarball is an easy and fast way to install Sage.
Note that on GNU/Linux a preferred way is to use your package manager (e.g. apt, pacman, yum).
Sagemath 有适用于以下操作系统的软件包:
On GNU/Linux Debian version >= 9, Ubuntu version >= 18.04, Arch Linux
there are three packages to install
• sagemath (for the binaries)
• sagemath-jupyter (for the browser interface)
• and the documentation
which is called sagemath-doc-en on Debian/Ubuntu and sagemath-doc on
Arch Linux.
使用 Apt-Get
首先,尝试在终端中使用以下命令安装 sagemath,因为您的操作系统高于 Ubuntu 18.04。
sudo apt-get install sagemath sagemath-jupyter sagemath-doc-en
然后您应该能够sage
从命令行运行。
使用预构建的二进制文件
它说你可以将 tarball 解压到主目录中的文件夹并运行./sage
,看来你已经这样做了。如果从那里不起作用,你可以尝试从包管理器安装。
来源链接:Sage 安装指南