Friday, May 3, 2024
4
rated 0 times [  4] [ 0]  / answers: 1 / hits: 2308  / 2 Years ago, sat, november 27, 2021, 12:05:11

I am trying to install Macaulay2. I am running Ubuntu 12.10.



I have modified /etc/apt/sources.list as explained at the official site and followed the steps but somehow when I use synaptic package manager it says that cannot load UIUC repositories. When I use apt-get I get the message that it couldn't locate Macaulay2.



Using Gdebi I get this error:



Dependency is not satisfiable Macaulay 1.5 *


I am not sure how I should go about it and any help is highly appreciated.



*: I am running intel i-5 processor and the (architecture) dependent version seems to be i3. But I do not think that is an issue.


More From » installation

 Answers
0

The instructions at the official site are a little verbose and hard to follow, so here's how I got Macaulay2 installed.



Note: It is probably best to reverse anything that you have already done and remove anything related to macaulay2, so that the method below will be successful and without errors.



The easiest thing is to put the Macaulay repository in a separate list file in /etc/apt/sources.list.d/. This is what I do with all external, non-Ubuntu repositories.



1) Create and open the list with



sudo nano /etc/apt/sources.list.d/Macaulay2.list


2) Now paste into that file the following (For future readers: substitute quantal for your Ubuntu version):



deb http://www.math.uiuc.edu/Macaulay2/Repositories/ubuntu quantal main


Save the file with Ctrl+O and exit with Ctrl+X.



3) Add the repository key with



wget -q http://www.math.uiuc.edu/Macaulay2/PublicKeys/Macaulay2-key -O - | sudo apt-key add -


4) Update your repository lists with



sudo apt-get update


5) As the official page mentions, you may need to install liblapack3gf as well before you install macaulay2:



sudo apt-get install liblapack3gf 


6) In addition, you may need libntl-5.4.2 if you are running Quantal (12.10) or later as it is no longer in that repository. I already had it installed, but you should be ok to install it from the Precise repos as listed above, but just choose the right architecture and use



sudo dpkg -i file.deb 


There are no dependencies to cause any concerns in this case. Other people running 12.10 have noted that this is also necessary.



7) Now install the program with



sudo apt-get install macaulay2 


Note: If apt-get keeps failing then download and install the correct files (Macaulay2 and Macaulay2-common) for your architecture manually from the repository and install each with gdebi so any further dependencies can be resolved.



8) The command to launch it is M2 (uppercase M) and the man page can be reached by entering man M2.



enter image description here


[#32090] Saturday, November 27, 2021, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
eving

Total Points: 162
Total Questions: 102
Total Answers: 112

Location: Trinidad and Tobago
Member since Thu, Dec 1, 2022
1 Year ago
eving questions
;