mersenneforum.org

mersenneforum.org (https://www.mersenneforum.org/index.php)
-   Aliquot Sequences (https://www.mersenneforum.org/forumdisplay.php?f=90)
-   -   Aliqueit.exe discussion (https://www.mersenneforum.org/showthread.php?t=11618)

Ralf Recker 2012-09-30 19:05

Can you try

[CODE]LD_RUN_PATH=/usr/local/lib make[/CODE]If it builds type

[CODE]ldd aliqueit[/CODE]Without changing entries /etc/ld.so.conf or adding files in /etc/ld.so.conf.d the Makefile

[CODE]#
# aliqueit Makefile for linux
#

# you'll need to change this if your gmp headers aren't installed globally:
GMP_DIR = /usr/local/include

CC = g++
CFLAGS = -O3 -I$(GMP_DIR)

# you'll need to change this if your gmp headers aren't installed globally:
LIBS = -L/usr/local/lib -lgmp

OBJ = aliqueit.o cfg.o misc.o


aliqueit: $(OBJ)
$(CC) $(CFLAGS) $(LIBS) $(OBJ) -o aliqueit

%.o: %.cc
$(CC) $(CFLAGS) -c -o $@ $<[/CODE]links against distribution version of libgmp 5.0.5
[CODE]ralf@quadriga:~/Quellen.tmp/aliqueit112/src/aliqueit$ ldd aliqueit
linux-vdso.so.1 => (0x00007fff00167000)
libgmp.so.10 => [B][COLOR=Blue]/usr/lib/x86_64-linux-gnu/libgmp.so.10[/COLOR][/B] (0x00007f444bb9a000)
libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007f444b893000)
libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f444b610000)
libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f444b3fa000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f444b073000)
/lib64/ld-linux-x86-64.so.2 (0x00007f444be1e000)
[/CODE]Without the distribution binaries linking would fail.

"make"ing with LD_RUN_PATH results in this:

[CODE]ralf@quadriga:~/Quellen.tmp/aliqueit112/src/aliqueit$ ldd aliqueit
linux-vdso.so.1 => (0x00007fff933ff000)
libgmp.so.10 => [COLOR=Red][B]/usr/local/lib/libgmp.so.10[/B][/COLOR] (0x00007f87f72d8000)
libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007f87f6fbe000)
libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f87f6d3b000)
libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f87f6b25000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f87f679e000)
/lib64/ld-linux-x86-64.so.2 (0x00007f87f7546000)
[/CODE]Tip: Make sure to run

[code]ldconfig[/code]

as root after modifying entries in the linker configuration files

Mr. Odd 2012-09-30 22:06

[QUOTE=Dubslow;313257]Like I've said more than once before, my binary is available [URL="https://sites.google.com/site/bbuhrow/home/aliquot-sequences"]here[/URL]. That's Aliqueit compiled on Ubuntu 11.04, gcc 4.5.2, GMP 5.0.4.[/QUOTE]

My apologies, I must've missed it or misunderstood which archive to download - but this does the trick! Very pleased to have this, thanks a lot. The only question I've got is the submission to Syd's FactorDB goes through without errors but it doesn't seem to show up. Any suggestions?

Dubslow 2012-09-30 22:17

[QUOTE=Mr. Odd;313274]My apologies, I must've missed it or misunderstood which archive to download - but this does the trick! Very pleased to have this, thanks a lot. The only question I've got is the submission to Syd's FactorDB goes through without errors but it doesn't seem to show up. Any suggestions?[/QUOTE]

Like the sequence doesn't appear updated? I would note that sometimes for very large updates, wget takes a few minutes to complete the submission (meaning the FDB takes a few minutes to respond). If you mean you checked like 10 minutes after submission, then I couldn't tell you.

EdH 2012-10-01 02:33

[QUOTE=Ralf Recker;313261]Can you try

[CODE]LD_RUN_PATH=/usr/local/lib make[/CODE]If it builds type

...[/QUOTE]
It didn't build.:sad:

I didn't change /etc/ld.so.conf or /etc/ld.so.conf.d, because they looked OK:

/etc/ld.so.conf:
[code]
include /etc/ld.so.conf.d/*.conf
[/code][code]
math11@math11:/etc/ld.so.conf.d$ ls
i686-linux-gnu.conf libc.conf~ x86_64-linux-gnu_GL.conf
libc.conf x86_64-linux-gnu.conf zz_i386-biarch-compat.conf
[/code]I tried a change to libc.conf, but put it back:
[code]
# libc default configuration
/usr/local/lib
[/code]Could this be the problem?
[code]
math11@math11:~/Math/Aliqueit/src/aliqueit$ whereis libgmp.so.10
libgmp.so: /usr/local/lib/libgmp.so.10 /usr/local/lib/libgmp.so
math11@math11:~/Math/Aliqueit/src/aliqueit$ whereis libstdc++.so.6
libstdc++.so:
math11@math11:~/Math/Aliqueit/src/aliqueit$ whereis libmso.6
libmso:
math11@math11:~/Math/Aliqueit/src/aliqueit$ whereis libgcc_s.so.1
libgcc_s.so:
math11@math11:~/Math/Aliqueit/src/aliqueit$ whereis libc.so.6
libc.so:
[/code]I don't appear to have any of the other libraries you listed.

Off to look for these libraries...

EdH 2012-10-01 13:44

[QUOTE=EdH;313290]...

Could this be the problem?
[code]
math11@math11:~/Math/Aliqueit/src/aliqueit$ whereis libgmp.so.10
libgmp.so: /usr/local/lib/libgmp.so.10 /usr/local/lib/libgmp.so
math11@math11:~/Math/Aliqueit/src/aliqueit$ whereis libstdc++.so.6
libstdc++.so:
math11@math11:~/Math/Aliqueit/src/aliqueit$ whereis libmso.6
libmso:
math11@math11:~/Math/Aliqueit/src/aliqueit$ whereis libgcc_s.so.1
libgcc_s.so:
math11@math11:~/Math/Aliqueit/src/aliqueit$ whereis libc.so.6
libc.so:
[/code]I don't appear to have any of the other libraries you listed.

Off to look for these libraries...[/QUOTE]I guess not. They're there, just not being displayed by "whereis."

But, that begs the question: Should the libgmp libraries not be displayed by "whereis?"

Ralf Recker 2012-10-01 16:20

I've set up a Precise Pangolin VM and see the same error.

Ralf Recker 2012-10-01 17:14

I guess I've found it:

[URL]http://stackoverflow.com/questions/11322200/unable-to-build-my-c-code-with-g-4-6-3[/URL]

Change this entry in Makefile:

[CODE]aliqueit: $(OBJ)
$(CC) $(CFLAGS) $(LIBS) $(OBJ) -o aliqueit
[/CODE]to this:

[CODE]aliqueit: $(OBJ)
$(CC) $(CFLAGS) $(OBJ) -o aliqueit $(LIBS)
[/CODE]

Upate: Swapping $(OBJ) and $(LIBS) is enough:

[CODE]aliqueit: $(OBJ)
$(CC) $(CFLAGS) $(OBJ) $(LIBS) -o aliqueit
[/CODE]

EdH 2012-10-02 04:21

[QUOTE=Ralf Recker;313338]I guess I've found it:

[URL]http://stackoverflow.com/questions/11322200/unable-to-build-my-c-code-with-g-4-6-3[/URL]

...

Upate: Swapping $(OBJ) and $(LIBS) is enough:

[CODE]aliqueit: $(OBJ)
$(CC) $(CFLAGS) $(OBJ) $(LIBS) -o aliqueit
[/CODE][/QUOTE]
[B]Thank You [/B][B][B]Ralf Recker[/B]!![/B] That worked great!

I (seem to**) have a fully working version of all the packages now and have rewritten my Steps page appropriately.

Thanks again to all who have assisted me in this "adventure."

**Only minimal testing has been done so far. I'll be testing more "vigorously" over the next few days/weeks/etc.

Dubslow 2013-02-24 02:03

[QUOTE=Mr. Odd;313274]My apologies, I must've missed it or misunderstood which archive to download - but this does the trick! Very pleased to have this, thanks a lot. The only question I've got is the submission to Syd's FactorDB goes through without errors but it doesn't seem to show up. Any suggestions?[/QUOTE]

Hmm... I've never had that problem... until now.

This is my first attempt to use aliqueit on a new Linux install, and now I'm seeing exactly this problem.
[code]Sending 102 lines...
--2013-02-23 19:58:28-- http://factorization.ath.cx/search.php?report=true
Resolving factorization.ath.cx (factorization.ath.cx)... 176.9.39.214
Connecting to factorization.ath.cx (factorization.ath.cx)|176.9.39.214|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 2015 (2.0K) [text/html]
Saving to: `aliqueit_tmp_wget_7920'

100%[===================================================================================>] 2,015 [B]--.-K/s in 0s[/B]

2013-02-23 19:58:30 (77.4 MB/s) - `aliqueit_tmp_wget_7920' saved [2015/2015][/code]
Note how nothing is being sent.

Could it be a too-new version of wget or something? I haven't looked through the aliqueit source yet...

mklasson 2013-04-28 03:32

[QUOTE=Dubslow;330759]Note how nothing is being sent.

Could it be a too-new version of wget or something? I haven't looked through the aliqueit source yet...[/QUOTE]

I don't know about linux, but the latest windows wget version (1.11.4) seems to work fine at least. Though that one's more than 4 years old...

kar_bon 2013-04-28 08:50

After a long time I used aliqueit.exe again doing a random 105-digit number which seems a member of an aliquot-sequence.
In the beginning of FactorDB every member of an aliqout-seq got the startingnumber as info.
My problem: if the number like above got a downdriver, aliqueit reports the number determined is smaller then the starting one and quits.
Can this be suppressed and aliqueit goes further the seq down?


All times are UTC. The time now is 21:52.

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