-   EdH (
-   -   How I Install msieve onto my Ubuntu Machines (

EdH 2018-02-23 14:43

How I Install msieve onto my Ubuntu Machines
(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* msieve 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 this instance "install" is referring to the acquiring and compilation of the msieve package only. The binary will have to be called using its respective path.

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 procedures in:

[URL=""]How I Install GMP onto my Ubuntu Machines[/URL] (Optionally, if you would prefer to use the repository version of GMP, you can add "libgmp-dev" to the install list below.)
[URL=""]How I Install GMP-ECM onto my Ubuntu Machines[/URL]

If you have already installed the following packages, you can skip the next two steps, although performing them wouldn't hurt anything.

Open a terminal and Enter:
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, type:
sudo apt-get install g++ m4 zlib1g-dev make p7zip subversion
[/code]Accept the prompt.

Download the msieve package:
svn co $HOME/Math/msieve
[/code]Move into the msieve folder:
cd Math/msieve
[/code]Now you have a choice to make. If you will be installing YAFU, then you need to use the NO_ZLIB switch.

If you will be installing YAFU, compile msieve with the following:
make all ECM=1 NO_ZLIB=1
[/code]Otherwise, use:
make all ECM=1
[/code]Note: There are other switches to compile msieve for use with GPUs and/or clusters. I will not be covering those options here.

Return to your home directory:
cd ~/
[/code]You can check your installation by running a test factor instance:
Math/msieve/msieve -v 115367564564210182766242534110944507919869313713243756429
[/code]You should see something like:
Msieve v. 1.53 (SVN 993)
Sun Aug 30 08:06:40 2020
random seeds: 02fd7c73 6110f1e7
factoring 115367564564210182766242534110944507919869313713243756429 (57 digits)
p7 factor: 3387679
p50 factor: 34055046113935288073705488067477617542827792631251
elapsed time 00:00:00
[/code]Or, you can open the log with your preferred text editor. To learn more about msieve see the Readme files located in the msieve directory or try msieve/msieve -h.

All times are UTC. The time now is 00:29.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2022, Jelsoft Enterprises Ltd.