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

2021-09-24, 14:16   #23
EdH

"Ed Hall"
Dec 2009

2×1,999 Posts

OK, this may take a little bit, but let's do some stepping. It was late when I threw out my question last night, but I expect (hope) to be more available today.
Quote:
 Originally Posted by Plutie Code: ggnfs_cmd = bash /home/uwu/Math/aliqueit/cado.sh Here it is. I renamed the script from alitest.sh to cado.sh.
That's fine. I should use something different, but I just went ahead and left it as what it was when I built it.

Let's move to the errors list and break it down with some closer examination:

Quote:
 Originally Posted by Plutie I'm having trouble running CADO as a replacement for ggnfs. It doesn't seem to be finding the directory with the number to factor.
The number is provided by Aliqueit in test.n in the ggnfs_... directory. Then test.n is read by the cado.sh script as described below.
Code:
mkdir: cannot create directory ‘ggnfs_67216810256844675480477157025988578680922317601701866734537817412464452765665954902870790052675237179’: File exists
This is probably fine. The first time you ran it, Aliqueit made this directory and there is nothing coded to remove it. The important file in this directory ATM is test.n. Make sure it exists and holds the composite after the "n: " prefix.
Code:
cannot open input file 'worktodo.ini'
I don't understand where this is coming from. This is the default input for Msieve if no name is provided with its call. cado.sh shouldn't be doing anything with Msieve and Aliqueit should only be relying on cado.sh. cado.sh is clearly being called or you wouldn't have the following error.
Code:
cat: ggnfs_67216810256844675480477157025988578680922317601701866734537817412464452765665954902870790052675237179/test.n: No such file or directory
This is important and we should focus here first. The composite has to be harvested from this file for the rest to work.
Code:
rm: cannot remove '/tmp/alicado': No such file or directory
This wouldn't exist if there were no previous runs. It is normal if CADO-NFS never ran.

Where to work:

Let's verify that Aliqueit is properly supplying the needed composite in test.n.
- First manually remove the ggnfs_<composite> directory.
Code:
comp=${comp:3} echo "filename is$1"
echo "comp is $comp" sleeping. . . sleep 300 #remove work from prior number so we can use the same names Run Aliqueit and see if it displays the composite correctly. If it does, let it continue. If it doesn't, check for the test.n file and whether it contains "n: <composite>" with nothing extra.  2021-09-24, 14:24 #24 Plutie "Evan" Dec 2020 Montreal 71 Posts Code: filename: ggnfs_67216810256844675480477157025988578680922317601701866734537817412464452765665954902870790052675237179/test comp: [blank] test.n contains the correct composite. The real confusing part is that this file exists. Code: cat: ggnfs_67216810256844675480477157025988578680922317601701866734537817412464452765665954902870790052675237179/test.n: No such file or directory Last fiddled with by Plutie on 2021-09-24 at 14:31 2021-09-24, 14:33 #25 EdH "Ed Hall" Dec 2009 Adirondack Mtns 2×1,999 Posts Quote:  Originally Posted by Plutie Code: filename: ggnfs_67216810256844675480477157025988578680922317601701866734537817412464452765665954902870790052675237179/test comp: [blank] test.n contains the correct composite. The filename should include the ".n" extension. Is that a c/p problem or is it really truncated? 2021-09-24, 14:34 #26 Plutie "Evan" Dec 2020 Montreal 71 Posts Quote:  Originally Posted by EdH The filename should include the ".n" extension. Is that a c/p problem or is it really truncated? It is truncated. 2021-09-24, 14:40 #27 EdH "Ed Hall" Dec 2009 Adirondack Mtns 2×1,999 Posts Quote:  Originally Posted by Plutie It is truncated. I forgot earlier that Aliqueit only sends "test," not "test.n" and the ".n" is added in the call in line 2 of cado.sh, "comp=$(cat $1.n)." Let me step back a moment and think on this...  2021-09-24, 14:49 #28 EdH "Ed Hall" Dec 2009 Adirondack Mtns 399810 Posts This just a wild shot, but the code blocks are constantly messing with me by adding extra characters. If you used copy/paste to create cado.sh, try manually removing and retyping the two "comp=" lines. 2021-09-24, 14:52 #29 Plutie "Evan" Dec 2020 Montreal 10001112 Posts Quote:  Originally Posted by EdH This just a wild shot, but the code blocks are constantly messing with me by adding extra characters. If you used copy/paste to create cado.sh, try manually removing and retyping the two "comp=" lines. As funny as that would be if it fixed it, unfortunately that didn't work. Same error occurs.  2021-09-24, 14:58 #30 EdH "Ed Hall" Dec 2009 Adirondack Mtns 399810 Posts How about, if you provide an absolute path in line 2: Code: comp=$(cat $HOME/Math/aliqueit/${1}.n) And does that same absolute path work on the command line?
 2021-09-24, 15:02 #31 Plutie   "Evan" Dec 2020 Montreal 71 Posts That fixed it! Thank you so much for the help :D
2021-09-24, 15:05   #32
EdH

"Ed Hall"
Dec 2009

2×1,999 Posts

Quote:
 Originally Posted by Plutie That fixed it! Thank you so much for the help :D
Excellent! Glad I could help. Let me know if anything else hangs up.

2021-09-24, 15:12   #33
EdH

"Ed Hall"
Dec 2009

2×1,999 Posts

Quote:
 Originally Posted by EdH Excellent! Glad I could help. Let me know if anything else hangs up.
I'm concerned that if you needed an absolute path for the composite, that you will need absolute paths elsewhere. You might be on the lookout for that and modify other relative paths as needed.

 Similar Threads Thread Thread Starter Forum Replies Last Post EdH EdH 3 2019-06-24 03:42 EdH EdH 12 2019-04-16 09:28 EdH EdH 0 2019-04-04 22:33 EdH EdH 0 2018-02-22 03:31 EdH EdH 0 2018-02-21 23:48

All times are UTC. The time now is 08:09.

Sat Oct 16 08:09:13 UTC 2021 up 85 days, 2:38, 0 users, load averages: 0.96, 1.22, 1.23