![]() |
![]() |
#1 |
"Ed Hall"
Dec 2009
Adirondack Mtns
13·347 Posts |
![]()
(Note: 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 GMP-ECM 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-ECM in its repositories and it can be installed from the Software Installer provided. I will be describing here, how to acquire, compile and install the latest version of the 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, follow the procedure in: How I Install GMP onto my Ubuntu Machines or, install GMP from the repository. Open a terminal and Enter: Code:
sudo apt-get update After the update completes and the user prompt reappears, type the following. (If you have already installed any of these, you may omit them here, but if you don't omit them, all will still be fine): Code:
sudo apt-get install g++ m4 zlib1g-dev make p7zip libtool autoconf git Move into the Math folder: Code:
cd Math Code:
git@gitlab.inria.fr:zimmerma/ecm.git Code:
cd ecm Code:
libtoolize Code:
autoreconf -i Code:
./configure --with-gmp=/usr/local/ Code:
make Code:
make check Code:
sudo make install Code:
cd ~ Code:
echo 115367564564210182766242534110944507919869313713243756429 | ecm 1000000 Code:
GMP-ECM 7.0.5-dev [configured with GMP 6.1.1, --enable-asm-redc, --enable-assert] [ECM] Input number is 115367564564210182766242534110944507919869313713243756429 (57 digits) Using B1=1000000, B2=1045563762, polynomial Dickson(6), sigma=1:280903524 Step 1 took 744ms ********** Factor found in step 1: 3387679 Found prime factor of 7 digits: 3387679 Prime cofactor 34055046113935288073705488067477617542827792631251 has 50 digits Last fiddled with by EdH on 2022-04-01 at 18:00 Reason: Keep procedure up to latest steps |
![]() |
![]() |
![]() |
#2 | |
Einyen
Dec 2003
Denmark
3,313 Posts |
![]() Quote:
cd Math svn checkout svn://scm.gforge.inria.fr/svn/ecm/trunk rename trunk to ecm cd ecm libtoolize autoreconf -i then continue with ./configure Last fiddled with by ATH on 2018-02-22 at 09:59 |
|
![]() |
![]() |
![]() |
#3 |
"Ed Hall"
Dec 2009
Adirondack Mtns
13·347 Posts |
![]()
Thanks!
m4 is already listed in my apt-get install and subversion would have been listed in the msieve and yafu installs. I've not yet used libtool for anything. If this gets the very latest GMP-ECM, then it's what I'm really striving for and I will change over to your suggestion and rewrite my procedure. I need to play with it just a bit, first. I think I'll opt for sending it directly to an ecm folder: Code:
svn co svn://scm.gforge.inria.fr/svn/ecm/trunk $HOME/Math/ecm I appreciate the help. Last fiddled with by EdH on 2019-09-15 at 15:22 |
![]() |
![]() |
![]() |
#4 |
"Ed Hall"
Dec 2009
Adirondack Mtns
13×347 Posts |
![]()
I also needed to install autoconf.
|
![]() |
![]() |
![]() |
#5 |
Aug 2002
11·769 Posts |
![]() |
![]() |
![]() |
![]() |
#6 |
"Ed Hall"
Dec 2009
Adirondack Mtns
119F16 Posts |
![]() |
![]() |
![]() |
![]() |
#7 |
Aug 2002
11·769 Posts |
![]()
Rather than install individual packages this meta-package installs (via dependencies) everything you need to build programs.
|
![]() |
![]() |
![]() |
#8 | |
"Ed Hall"
Dec 2009
Adirondack Mtns
13×347 Posts |
![]() Quote:
Thanks for any and all help in my education... |
|
![]() |
![]() |
![]() |
#9 |
"Victor de Hollander"
Aug 2011
the Netherlands
2×19×31 Posts |
![]()
I just want to thank you for taking the time to write these excellent guides, quality stuff!
![]() |
![]() |
![]() |
![]() |
#10 |
"Ed Hall"
Dec 2009
Adirondack Mtns
13·347 Posts |
![]()
You're welcome! Thanks for the feedback.
|
![]() |
![]() |
![]() |
#11 |
"Victor de Hollander"
Aug 2011
the Netherlands
2×19×31 Posts |
![]()
You might want to run
Code:
make ecm-params Be sure to stop any other processes using CPU time (it takes a couple of minutes) |
![]() |
![]() |
![]() |
Thread Tools | |
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
How I install YAFU onto my Ubuntu Machines | EdH | EdH | 118 | 2021-09-29 12:42 |
How I Install CADO-NFS onto my Ubuntu Machines | EdH | EdH | 3 | 2019-06-24 03:42 |
How I Install msieve onto my Ubuntu Machines | EdH | EdH | 0 | 2018-02-23 14:43 |
How I Install ggnfs onto my Ubuntu Machines | EdH | EdH | 0 | 2018-02-22 03:31 |
How I Install GMP onto my Ubuntu Machines | EdH | EdH | 0 | 2018-02-21 23:48 |