APT – How to Install Macaulay2 on Ubuntu


I am unable to install Macaulay2. I am following the guideline given in the website M2. I have added the repository in the sources list (see the attached screenshot). I have installed the key from the link above. Now when I search for the package with apt-cache search macaylay2 I get nothing.

I have also looked at the answer to an old related quiestion but I don't think that will work either, please help.screenshot

Best Answer

Although the Macauley2 Repository may not be working the Bionic Beaver Debian files work well enough when downloaded and installed directly. Install as follows:

sudo apt-get install libblas3 libgfortran4 liblapack3 libquadmath0
wget https://faculty.math.illinois.edu/Macaulay2/Repositories/Ubuntu/dists/bionic/main/binary-amd64/Macaulay2-1.14-amd64-Linux-Ubuntu-18.04.deb
wget https://faculty.math.illinois.edu/Macaulay2/Repositories/Ubuntu/dists/bionic/main/binary-amd64/Macaulay2-1.14-common.deb
sudo dpkg -i *.deb

This installed cleanly on my own Bionic system and appears to be functional:

andrew@corinth:~$ M2
Macaulay2, version 1.14
--storing configuration for package FourTiTwo in /home/andrew/.Macaulay2/init-FourTiTwo.m2
--storing configuration for package Topcom in /home/andrew/.Macaulay2/init-Topcom.m2
with packages: ConwayPolynomials, Elimination, IntegralClosure, InverseSystems, LLLBases, PrimaryDecomposition,
               ReesAlgebra, TangentCone, Truncations

i1 : 

And hopefully all will be well on your system as well :)

Related Question