Instalando o Maculay 2

4

Eu tenho que instalar o Macaulay 2 (um sistema de software dedicado a apoiar pesquisas em geometria algébrica e álgebra comutativa) no Ubuntu 16.04 LTS. Eu baixei o arquivo Macaulay2-1.9.2-amd64-Linux-Ubuntu-16.04.deb mas não consigo instalá-lo.

    
por Shahnawaz Ahmad 14.05.2017 / 07:28

3 respostas

4

Como já instalei este pacote, executo este comando:

apt show macaulay2

E sua saída é:

Package: macaulay2
Version: 1.9.2
Status: install ok installed
Priority: extra
Section: math
Maintainer: Daniel R. Grayson <[email protected]>
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.

Como você vê, macaulay2-common (= 1.9.2), libblas3, libc6, libgc1c2, libgcc1, libgdbm3, liblapack3, libmpfr4, libreadline7, libxml2 packages são necessários para que o macaulay2 tenha sido instalado com êxito.

Então, você também precisa instalar bibliotecas dependentes antes de instalar o macaulay2 :

sudo apt update    
sudo apt install libblas3 libc6 libgc1c2 libgcc1 libgdbm3 liblapack3 libmpfr4 libreadline6 libxml2

Então você precisa fazer o download de macaulay2 e macaulay2-common do seu site oficial .

Portanto, instale macaulay2-common antes e tente instalar macaulay2 :

sudo dpkg -i Macaulay2-1.9.2-common.deb
sudo dpkg -i Macaulay2-1.9.2-amd64-Linux-Ubuntu-16.04.deb

E para testar você pode digitar M2 no seu shell e digitar 2+2

M2
Macaulay2, version 1.9.2
with packages: ConwayPolynomials, Elimination, IntegralClosure, LLLBases,
               PrimaryDecomposition, ReesAlgebra, TangentCone

i1 : 2+2

o1 = 4
    
por Ali Razmdideh 27.05.2017 / 02:51
1
 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.)

de

    
por tso 28.05.2017 / 10:55
0

Se você clicar duas vezes no arquivo, ele deve abrir o Ubuntu Software Center para instalar o arquivo deb. Se isso não funcionar, você pode abrir um terminal e digitar sudo dpkg -i /path/to/deb/file.deb (replace / path / to / deb / file com o caminho para o arquivo deb) e clicar em enter e depois digitar (ou colar) sudo apt-get install -f . / p>     

por Ray Antebioni 31.05.2017 / 05:19