mersenneforum.org  

Go Back   mersenneforum.org > Extra Stuff > Linux

Reply
 
Thread Tools
Old 2021-10-30, 12:56   #23
rogue
 
rogue's Avatar
 
"Mark"
Apr 2003
Between here and the

5×1,307 Posts
Default

Quote:
Originally Posted by MJansen View Post
Hi I am looking for some help:

I have been using Ubuntu for a short while now and am not that advanced a user. I have been trying to get pfgw64 running and I succeeded in getting the source files from pfgw64 unzipped in the right place under Ubuntu, as well as GMP and Gwnum.

I found some links as to getting it running, but I guess the main find was an older website, since most of the suggested changes did not make a difference (https://wiki.deac.wfu.edu/user/Software:OpenPFGW).

Running the make -f makefile command gives me the following error that I cannot fix myself:


So I guess the crux is in this: undefined reference to `gwsquare2', but where is this function and how do I get this function to be seen?

Kind regards
Michiel Jansen
It is likely not finding the library or the correct version of the gwnum library to link into the executable.
rogue is offline   Reply With Quote
Old 2021-10-30, 13:28   #24
MJansen
 
Jan 2018

5516 Posts
Default

Quick reply. thanks for that!

Quote:
Originally Posted by rogue View Post
It is likely not finding the library or the correct version of the gwnum library to link into the executable.
Reminds me: somewhere there was a hickup, i.e. makefile asked me for *.h files in the packages/gwnum/ directory instead of the packages/gwnum/64bit/ directory, I copied the *.h files from the sourceforge source there but not the created *.h files. I will look into that!

Quote:
i have just downloaded the latest OpenPFGW from sourceforge and it compiled for me straight way, although I did not put libgmp.a and gwnum.a in place so it did not complete.

I get:

Code:
g++: error: packages/gmp/64bit/libgmp.a: No such file or directory
g++: error: packages/gwnum/64bit/gwnum.a: No such file or directory
which can be remedied by compiling gmp and mprime, and putting libgmp,a and gwnum.a in the right directories.
If the previous mentioned try does not work, I will start anew clean from the source

(ps what file did you use, the snapshot from https://sourceforge.net/p/openpfgw/code/HEAD/tree/ or another file?)

Kind regards
Michiel

Last fiddled with by MJansen on 2021-10-30 at 13:30
MJansen is online now   Reply With Quote
Old 2021-10-30, 13:39   #25
paulunderwood
 
paulunderwood's Avatar
 
Sep 2002
Database er0rr

3·1,327 Posts
Default

I used the latest snapshot.

Make sure you compile 64 bits for both gwnum and gmp.
paulunderwood is offline   Reply With Quote
Old 2021-10-30, 14:02   #26
MJansen
 
Jan 2018

10101012 Posts
Default

Quote:
Originally Posted by paulunderwood View Post
I used the latest snapshot.

Make sure you compile 64 bits for both gwnum and gmp.
I get the same error, but without the intermitting errors after a clean re install. I thought that it could be caused by two files that were placed in the packages/gmp/64bit directory that I had not copied the last time (have been struggling with GMP for a while, before I finally succeeded in compiling it under Ubuntu and it is working fine now for some time in 64 bits).

So my guess is, the problem should be in the gwnum.a file. I copied the source file from here:
http://www.mersenne.org/ftp_root/gim...3b6.source.zip

Or should I use the ready made Linux version:
http://www.mersenne.org/ftp_root/gim...linux64.tar.gz

Kind regards
Michiel
MJansen is online now   Reply With Quote
Old 2021-10-30, 14:17   #27
MJansen
 
Jan 2018

5×17 Posts
Default

Quote:
Originally Posted by MJansen View Post
I get the same error, but without the intermitting errors after a clean re install. I thought that it could be caused by two files that were placed in the packages/gmp/64bit directory that I had not copied the last time (have been struggling with GMP for a while, before I finally succeeded in compiling it under Ubuntu and it is working fine now for some time in 64 bits).

So my guess is, the problem should be in the gwnum.a file. I copied the source file from here:
http://www.mersenne.org/ftp_root/gim...3b6.source.zip

Or should I use the ready made Linux version:
http://www.mersenne.org/ftp_root/gim...linux64.tar.gz

Kind regards
Michiel
To answer my own question: use the source ;-)
It ran through the make process without hick-ups this time round!

Note: use the source linked here, not the P95v306b4.source.zip I used earlier ...

Thanks for the help!
Kind regards
Michiel
MJansen is online now   Reply With Quote
Old 2021-10-30, 14:21   #28
paulunderwood
 
paulunderwood's Avatar
 
Sep 2002
Database er0rr

398110 Posts
Default

To get gwnum.a I compiled with make -f make64 in Prime95's gwnum directory from your download link. Then I copied with cp gwnum.a ~/Downloads/openpfgw-code-r669/packages/gwnum/64bit.

For gmp I just did cp /usr/lib/x86_64-linux-gnu/libgmp.a ~/Downloads/openpfgw-code-r669/packages/gmp/64bit.

pfgw64 compiled fully.
paulunderwood is offline   Reply With Quote
Old 2021-10-30, 14:25   #29
MJansen
 
Jan 2018

5·17 Posts
Default

Quote:
Originally Posted by paulunderwood View Post
To get gwnum.a I compiled with make -f make64 in Prime95's gwnum directory from your download link. Then I copied with cp gwnum.a ~/Downloads/openpfgw-code-r669/packages/gwnum/64bit.

For gmp I just did cp /usr/lib/x86_64-linux-gnu/libgmp.a ~/Downloads/openpfgw-code-r669/packages/gmp/64bit.

pfgw64 compiled fully.
Crosspost ;-) found it just before you posted, thanx again!
Kund regards
Michiel
MJansen is online now   Reply With Quote
Old 2021-10-30, 14:26   #30
paulunderwood
 
paulunderwood's Avatar
 
Sep 2002
Database er0rr

76158 Posts
Default

Quote:
Originally Posted by MJansen View Post
Crosspost ;-) found it just before you posted, thanx again!
Kund regards
Michiel
You're welcome!
paulunderwood is offline   Reply With Quote
Old 2021-10-30, 14:40   #31
MJansen
 
Jan 2018

5×17 Posts
Default

And I just found my first PRP under Ubuntu using pfgw64, so it works fine!

For the other starters out there that wonder how to run pfgw64 under Ubuntu:
Make a .txt file that has some prime candidates, say:
10000455041*3607#/210-2
10000455041*3607#/210-47298

and save it in the same directory as pfgw64 under the name test3607.txt

In the terminal type
./pfgw64 test3607.txt [enter]

And a PRP-3 is found ;-)
MJansen is online now   Reply With Quote
Reply

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
(Open)PFGW 32 bit linux Rincewind Software 0 2016-03-10 09:18
PFGW latest well-tested version mdettweiler Conjectures 'R Us 109 2010-09-29 20:20
Linux newpgen pfgw llr jasong Linux 10 2008-02-16 23:55
src2414 how to compile 64 bit in Linux Unregistered Software 1 2005-08-22 13:19
How to Compile mprime Under Linux Blaise Pascal Software 12 2005-01-13 14:40

All times are UTC. The time now is 11:50.


Mon Jan 24 11:50:05 UTC 2022 up 185 days, 6:19, 0 users, load averages: 1.53, 1.54, 1.44

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

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.

≠ ± ∓ ÷ × · − √ ‰ ⊗ ⊕ ⊖ ⊘ ⊙ ≤ ≥ ≦ ≧ ≨ ≩ ≺ ≻ ≼ ≽ ⊏ ⊐ ⊑ ⊒ ² ³ °
∠ ∟ ° ≅ ~ ‖ ⟂ ⫛
≡ ≜ ≈ ∝ ∞ ≪ ≫ ⌊⌋ ⌈⌉ ∘ ∏ ∐ ∑ ∧ ∨ ∩ ∪ ⨀ ⊕ ⊗ 𝖕 𝖖 𝖗 ⊲ ⊳
∅ ∖ ∁ ↦ ↣ ∩ ∪ ⊆ ⊂ ⊄ ⊊ ⊇ ⊃ ⊅ ⊋ ⊖ ∈ ∉ ∋ ∌ ℕ ℤ ℚ ℝ ℂ ℵ ℶ ℷ ℸ 𝓟
¬ ∨ ∧ ⊕ → ← ⇒ ⇐ ⇔ ∀ ∃ ∄ ∴ ∵ ⊤ ⊥ ⊢ ⊨ ⫤ ⊣ … ⋯ ⋮ ⋰ ⋱
∫ ∬ ∭ ∮ ∯ ∰ ∇ ∆ δ ∂ ℱ ℒ ℓ
𝛢𝛼 𝛣𝛽 𝛤𝛾 𝛥𝛿 𝛦𝜀𝜖 𝛧𝜁 𝛨𝜂 𝛩𝜃𝜗 𝛪𝜄 𝛫𝜅 𝛬𝜆 𝛭𝜇 𝛮𝜈 𝛯𝜉 𝛰𝜊 𝛱𝜋 𝛲𝜌 𝛴𝜎 𝛵𝜏 𝛶𝜐 𝛷𝜙𝜑 𝛸𝜒 𝛹𝜓 𝛺𝜔