mersenneforum.org > EdH How I Install GMP onto my Ubuntu Machines
 Register FAQ Search Today's Posts Mark Forums Read

 2018-02-21, 23:48 #1 EdH     "Ed Hall" Dec 2009 Adirondack Mtns 1110110011002 Posts How I Install GMP onto my Ubuntu Machines This thread will explain the steps I use to install GMP 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. Ubuntu does contain GMP in its repositories and they can be installed from the Software Installer provided. I will be describing here, how to acquire, compile and install the latest versions of the GMP package. 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. First, open a terminal and Enter: Code: sudo apt-get update 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, type: Code: sudo apt-get install g++ m4 zlib1g-dev make p7zip Accept the prompt. Special Note: As of the release of GMP-6.2.0, msieve, subsequently YAFU and Aliqueit can have segmentation faults. I will cover the fix for msieve, which takes care of YAFU, but I have no fix for Aliqueit as of yet. If you intend to compile Aliqueit from its source, I suggest you install GMP-6.1.2 rather than GMP-6.2.1. Download GMP-6.2.1 (or, download the GMP-6.1.2 release.) Using the files program open the Math directory and then open the gmp-6.x.x archive. Extract to the Math folder and close your archive manager. Rename the gmp-6.x.x folder to gmp. In the terminal move into the gmp folder: Code: cd Math/gmp Type: Code: ./configure When the configuration script ends, type: Code: make When make ends, type: Code: make check If all checked out, type: Code: sudo make install Note that gmp should be installed to /usr/local/... Return to your home directory: Code: cd ~/ Last fiddled with by EdH on 2021-03-12 at 00:48

 Similar Threads Thread Thread Starter Forum Replies Last Post EdH EdH 116 2021-05-30 18:45 EdH EdH 3 2019-06-24 03:42 EdH EdH 12 2019-04-16 09:28 EdH EdH 0 2018-02-23 14:43 EdH EdH 0 2018-02-22 03:31

All times are UTC. The time now is 12:02.

Thu Jun 24 12:02:12 UTC 2021 up 27 days, 9:49, 0 users, load averages: 2.27, 2.35, 2.33

This forum has received and complied with 0 (zero) government requests for information.

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation.
A copy of the license is included in the FAQ.