首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >安装Maculay 2

安装Maculay 2
EN

Ask Ubuntu用户
提问于 2017-05-14 05:28:37
回答 4查看 737关注 0票数 6

我必须在ubuntu16.04LTS上安装Macaulay 2(一个支持代数几何和交换代数研究的软件系统)。我下载了Macaulay2-1.9.2-AMD 64-Linux 16.04.deb文件,但我无法安装它。

EN

回答 4

Ask Ubuntu用户

发布于 2017-05-27 00:51:41

既然我已经安装了这个包,我就运行以下命令:

代码语言:javascript
复制
apt show macaulay2

其产出是:

代码语言:javascript
复制
Package: macaulay2
Version: 1.9.2
Status: install ok installed
Priority: extra
Section: math
Maintainer: Daniel R. Grayson <dan@math.uiuc.edu>
Installed-Size: 65.2 MB
Depends: macaulay2-common (= 1.9.2), libblas3, libc6, libgc1c2, libgcc1, libgdbm3, liblapack3, libmpfr4, libreadline7, libxml2
Download-Size: unknown
APT-Manual-Installed: yes
APT-Sources: /var/lib/dpkg/status
Description: a software system for algebraic geometry research
 Macaulay 2 is a software system for algebraic geometry research, written by
 Daniel R. Grayson and Michael E. Stillman.  Based on Groebner bases, it
 provides algorithms for computing homological invariants of rings and
 modules.
 .
 Home page: http://www.math.uiuc.edu/Macaulay2/.
 .
 This package contains the architecture dependent portion of Macaulay2.

如您所见,已成功安装了macaulay2-common (= 1.9.2), libblas3, libc6, libgc1c2, libgcc1, libgdbm3, liblapack3, libmpfr4, libreadline7, libxml2包才能安装macaulay2

因此,在安装macaulay2之前,还需要安装依赖库:

代码语言:javascript
复制
sudo apt update    
sudo apt install libblas3 libc6 libgc1c2 libgcc1 libgdbm3 liblapack3 libmpfr4 libreadline6 libxml2

然后,您需要从它的macaulay2macaulay2-common下载官方网站

所以先安装macaulay2-common,然后尝试安装macaulay2

代码语言:javascript
复制
sudo dpkg -i Macaulay2-1.9.2-common.deb
sudo dpkg -i Macaulay2-1.9.2-amd64-Linux-Ubuntu-16.04.deb

为了进行测试,您可以在shell中键入M2,然后键入2+2

代码语言:javascript
复制
M2
Macaulay2, version 1.9.2
with packages: ConwayPolynomials, Elimination, IntegralClosure, LLLBases,
               PrimaryDecomposition, ReesAlgebra, TangentCone

i1 : 2+2

o1 = 4
票数 5
EN

Ask Ubuntu用户

发布于 2017-05-28 08:55:26

代码语言:javascript
复制
 Install packages with:
      sudo apt-get install -y -q autoconf bison emacs flex g++ gcc gfortran libc6-dev libcdd-dev libatomic-ops-dev libgc-dev libgdbm-dev libglpk-dev liblapack-dev libmpfr-dev libncurses-dev libncurses5-dev libntl-dev libpari-dev libreadline-dev libxml2-dev liblzma-dev libz-dev make openssh-server patch subversion time unzip xbase-clients zlib1g-dev libtool pkg-config libmpc-dev
        # note: libz-dev seems to have been replaced by zlib1g-dev
        # note: libncurses-dev seems to have been replaced by libncurses5-dev
        # note: libreadline-gplv2-dev is an older GPL v2 version of libreadline
    On all systems, add
        FC=gfortran
      to the environment or to the "configure" command line below.  (The
      program "make" has a default value of "f77" for "FC", the Fortran
      compiler, but "f77" isn't available.)
    On a 32-bit system, add
        --with-mpir-config-options="ABI=32 --build=i686-pc-linux-gnu"
      to the "configure" command line below.  (The --build option is necessary
      only to enable distribution of the resulting binaries to users of other
      hardware.) 
    On Ubuntu 14.10 and later, add
        --enable-build-libraries="pari givaro fflas_ffpack"
      to the "configure" command line below.  (The version of pari possibly installed there
      will crash when M2 exits.  The version of givaro that might be installed by Ubuntu
      might be too recent for us.)
    On all systems, add
        CPPFLAGS=-I/usr/include/cdd
      to the "configure" command line below.  Otherwise the configure script will
      decide to build cddlib from downloaded sources.
    (To upgrade to a new release of Ubuntu, run "update-manager" if you want a GUI, or run
"do-release-upgrade" for a command line interface.)

从…

票数 2
EN

Ask Ubuntu用户

发布于 2017-05-31 03:19:23

如果你双击文件,它应该打开Ubuntu软件中心来安装deb文件。如果这样做不起作用,您可以打开一个终端并在sudo dpkg -i /path/to/deb/file.deb (替换/ path / to / deb /file中使用deb文件的路径)中键入,然后单击enter,然后键入(或粘贴) sudo apt-get install -f

票数 0
EN
页面原文内容由Ask Ubuntu提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://askubuntu.com/questions/914994

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档