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)

Dubslow 2012-05-23 01:48

[QUOTE=Mr. Odd;300083]Still no luck getting this set up. Aliqueit compile gives me "undefined reference to gmpz" errors. Suggestions?[/QUOTE]

You need to have the GMP dev files installed to compile aliqueit. Is this 64-bit Linux? If so, bsquared has [URL="https://sites.google.com/site/bbuhrow/home/aliquot-sequences"]some binaries[/URL] that I made. (I could probably also make a 32 bit build if necessary.)

If this is Windows, then I can't really help; Brian Gladman has [URL="http://gladman.plushost.co.uk/oldsite/computing/gmp4win.php"]this site[/URL] to help you with it.

EdH 2012-05-23 01:52

[QUOTE=Mr. Odd;300083]Still no luck getting this set up. Aliqueit compile gives me "undefined reference to gmpz" errors. Suggestions?[/QUOTE]
If you haven't, you may want to check out my page:

[URL="http://www.starreloaders.com/edhall/AliWin/AliqueitLinstall.html"][SIZE=2]Steps to install and set up Aliqueit on an Ubuntu computer[/SIZE][/URL]

Mr. Odd 2012-05-23 01:58

[QUOTE=EdH;300085]If you haven't, you may want to check out my page:

[URL="http://www.starreloaders.com/edhall/AliWin/AliqueitLinstall.html"][SIZE=2]Steps to install and set up Aliqueit on an Ubuntu computer[/SIZE][/URL][/QUOTE]

That's what I was following. I'm trying this on Ubuntu 12.04, perhaps that's changed something? I could never get msieve compiled before either.

Dubslow 2012-05-23 02:10

[QUOTE=Mr. Odd;300086]That's what I was following. I'm trying this on Ubuntu 12.04, perhaps that's changed something? I could never get msieve compiled before either.[/QUOTE]

If you still want to compile it yourself (again, there are Linux binaries already compiled and available), try
"sudo apt-get install lib64gmp-dev" and/or "sudo apt-get install libgmp-dev"

and try 'make' again.

Edit: EdH, the guide should note that the development files for GMP (or equivalent) are required for any aliqueit build.

Mr. Odd 2012-05-23 02:18

[QUOTE=Dubslow;300087]If you still want to compile it yourself (again, there are Linux binaries already compiled and available), try
"sudo apt-get install lib64gmp-dev" and/or "sudo apt-get install libgmp-dev"

and try 'make' again.

Edit: EdH, the guide should note that the development files for GMP (or equivalent) are required for any aliqueit build.[/QUOTE]

The lib64gmp-dev package is not available. The libgmp-dev package installed, but compiling aliqueit gave me the same missing gmpz error.

Dubslow 2012-05-23 03:01

1 Attachment(s)
[QUOTE=Mr. Odd;300088]The lib64gmp-dev package is not available. The libgmp-dev package installed, but compiling aliqueit gave me the same missing gmpz error.[/QUOTE]
The necessary files are in the attached archive; extract them into the dir containing the Makefile, and replace that with the one here:
[code]#
# aliqueit Makefile for linux
#

# you'll need to change this if your gmp headers aren't installed globally:
GMP_DIR = .

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

# you'll need to change this if your gmp headers aren't installed globally:
LIBS = -L. -lgmpxx

OBJ = aliqueit.o cfg.o misc.o


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

%.o: %.cc
$(CC) $(CFLAGS) -c -o $@ $<[/code](You'll need to build from the dir containing the makefile.)

If that doesn't work initially, try removing the 'xx' off the -l switch.

EdH 2012-05-23 14:32

[QUOTE=Dubslow;300087]If you still want to compile it yourself (again, there are Linux binaries already compiled and available), try
"sudo apt-get install lib64gmp-dev" and/or "sudo apt-get install libgmp-dev"

and try 'make' again.

Edit: EdH, the guide should note that the development files for GMP (or equivalent) are required for any aliqueit build.[/QUOTE]
Thanks! I've added libgmp3-dev to my list, but these files were already on my Ubuntu 10.04 and 11.04 systems. They must have come in as dependencies when the other files were installed. Perhaps that didn't occur with 12.04...

Still, I need to have resolutions addressed for any troubles discovered. So I will be following this thread and will probably link to it from my page, when Mr. Odd finally resolves his install.

Dubslow 2012-05-23 17:07

[QUOTE=EdH;300123]Thanks! I've added libgmp3-dev to my list, but these files were already on my Ubuntu 10.04 and 11.04 systems. They must have come in as dependencies when the other files were installed. Perhaps that didn't occur with 12.04...
[/QUOTE]

You might try installing that package, Mr. Odd. I didn't mention it because I have no idea what the 3 is, while I know that GMP is currently as version 5.0.*.

henryzz 2012-05-23 17:10

I usually install build-essentials and then download gmp direct from its website. I have never had problems building established code(not including lasieve5) after doing that. I imagine those steps should in theory work with aliqueit.

EdH 2012-05-24 02:27

[QUOTE=henryzz;300130]I usually install build-essentials and then download gmp direct from its website. I have never had problems building established code(not including lasieve5) after doing that. I imagine those steps should in theory work with aliqueit.[/QUOTE]
My Ubuntu 64 bit 10.04 does not have build-essential installed and has the following statement in the Synaptic Package Manager for build-essential:
[code]
If you do not plan to build Debian packages, you don't need this package.
[/code]What does build essential do? Does it solve dependencies?

I just downloaded and compiled Aliqueit again with no troubles.

Maybe in the next few days, if I can find some time, I'll try a fresh from scratch OS install of 12.04 and run through my steps to see if they work here. Unfortunately, I don't think I can fit it in before the weekend.

henryzz 2012-05-24 06:22

It installs a few compilation libraries which could also be installed separately. It used to be necessary for compiling GMP-ECM or msieve. That was in 8.04 so maybe things have changed.


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

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