![]() |
How I Install CADO-NFS onto my Ubuntu Machines
([B]Note:[/B] I expect to keep the first post of each of these "How I Install..." threads up-to-date with the latest version. Please read the rest of each thread to see what may have led to the current set of instructions.)
This thread will explain the steps I use to install* CADO-NFS onto a computer which is already running Ubuntu. This procedure should work for other linux distributions as well but the only other one I've currently tested is Debain. In my case I needed to install python3 from the repository on my Debian based machines. More details about CADO-NFS and my early experiments can be found in the [URL="http://www.mersenneforum.org/showthread.php?t=11948"]CADO-NFS thread[/URL]. *In this instance "install" is referring to the acquiring and compilation of the CADO-NFS package only. The binaries will have to be called using their respective paths. I will expect the user of these steps to be able to use the sudo command. I will use a directory called Math for these installations. You may elect to replace "Math" with your own choice. These instructions can be used as a reference only, if you want, but I will provide specifics that work for me. If you follow these steps as I provide them, you should end up with a working installation. [B]Ubuntu 18.04 Special Note:[/B] I've recently upgraded some 16.04 machines to 18.04 and have found that Python was removed, which caused CADO-NFS to crash. Simply using "sudo apt install python" resolved the issue. Because of this, I have added "python" to the below list of packages to install. First, follow the procedure in: [URL="http://www.mersenneforum.org/showthread.php?t=23079"] How I Install GMP on my Ubuntu Machines[/URL] or, install GMP from the repositories. If you have already installed most of the following packages, you can skip them, however, notice I have added the packages python and git to the list. You will now need git to retrieve the latest version of CADO-NFS using my steps, and if you are using Ubuntu 18.04, you may need to install python. Open a terminal and enter: [code] sudo apt-get update [/code]You should be prompted for your password. This prompt should only appear once for your terminal session, unless you leave it idle for a long time. After the update completes and the user prompt reappears, enter: [code] sudo apt-get install g++ m4 zlib1g-dev make python git [/code]Accept the prompt. In your terminal, enter : [code] cd Math git clone https://gitlab.inria.fr/cado-nfs/cado-nfs.git cd cado-nfs make [/code]If prompted to download CMAke, choose y. Note: The step above and the next step are described in the README file within the cado-nfs folder. It is recommended that it and the other READMEs referenced within be read for further details. After CADO-NFS finishes compiling, its basic operation can be tested (per the README) by entering: [code] ./cado-nfs.py 90377629292003121684002147101760858109247336549001090677693 [/code]You should see lots of activity similar to: [code] Info:root: Using default parameter file ./parameters/factor/params.c60 Info:root: No database exists yet Info:root: Created temporary directory /tmp/cado.1lafrwdi Info:Database: Opened connection to database /tmp/cado.1lafrwdi/c60.db Info:root: Set tasks.threads=8 based on detected logical cpus Info:root: tasks.polyselect.threads = 2 Info:root: tasks.sieve.las.threads = 2 ... Info:Quadratic Characters: Total cpu/real time for characters: 0.16/0.0801561 Info:Square Root: Total cpu/real time for sqrt: 2.07/0.413262 Info:HTTP server: Shutting down HTTP server Info:Complete Factorization: Total cpu/elapsed time for entire factorization: 47.08/38.8295 Info:root: Cleaning up computation data in /tmp/cado.1lafrwdi 760926063870977 773951836515617 260938498861057 588120598053661 [/code] |
What is the minimum Ubuntu version? Can this be installed on Ubuntu 14.04?
|
I am no linux expert, but I believe I ran it on 14.04 a few yrs ago. I believe you'll need python3, but the CADO installer may adapt to environments with only python.
Edit: The cado-nfs site states gcc 4.7 or newer is required. |
[QUOTE=scole;519942]What is the minimum Ubuntu version? Can this be installed on Ubuntu 14.04?[/QUOTE]
Yes, 14.04 runs fine. I don't think I had to install python3, as I did with the Debian machines. Edit: My 14.04 machine had gcc 4.8.4. |
All times are UTC. The time now is 21:16. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2022, Jelsoft Enterprises Ltd.