![]() |
|
|
#12 | |
|
Sep 2010
Annapolis, MD, USA
33·7 Posts |
Quote:
Specifically, I think you are missing GMP-dev (header files, libraries, and such). |
|
|
|
|
|
|
#13 |
|
"James Heinrich"
May 2004
ex-Northern Ontario
24·3·71 Posts |
Very likely. As far as I know it's some species of RedHat.
|
|
|
|
|
|
#14 | |
|
Sep 2009
New Mexico
3×7 Posts |
Quote:
I manually edited ... some .conf file or something, after a lot of Googling, to link the GMP headers to GCC. If finally worked, but it's very nice to know I won't have to do that again! I'll just apt-get install libgmp3-dev instead (or whatever version they're up to the next time I need to install it again). Thanks for the tip. |
|
|
|
|
|
|
#15 | |
|
Sep 2009
New Mexico
258 Posts |
Quote:
Any *other* problems will be much easier to diagnose if you take care of that first. I think the tool is called "yum" in RedHat? In Debian, I'd apt-get it, so I can't really walk you through the installation, but I can tell you that the package name is "libgmp3-dev" and I'm not sure RedHat will have an identical naming scheme either, but hopefully this helps. Maybe you're happy factoring numbers via PHP, but if you do decide to finish configuring GMP & friends on your workstation (or whatever that machine is), I think King Kurly is right about needing gmp dev, and that just requires using your package manager which isn't really very complicated in any distro. |
|
|
|
|
|
|
#16 |
|
"Ben"
Feb 2007
DB916 Posts |
I wouldn't spend too much time trying to get yafu to work for 32 bit linux, if that's what you're trying to do. It's been ages since I tried, and I'm not at all sure it will work even if you get all of the dependencies installed. For these size numbers, pari/gp will work just fine.
Last fiddled with by bsquared on 2011-08-28 at 04:32 |
|
|
|
|
|
#17 | |
|
Sep 2009
2·1,039 Posts |
Quote:
Posting the contents and output from "uname -a" would give us a clue. Chris K |
|
|
|
|
|
|
#18 | |||
|
"James Heinrich"
May 2004
ex-Northern Ontario
1101010100002 Posts |
Quote:
Quote:
Quote:
|
|||
|
|
|
|
|
#19 |
|
Sep 2009
New Mexico
3·7 Posts |
CentOS is free RedHat, so "yum" should be the name of your package manager. Fire that up, then get / install any program with "gmp" and "dev" in it. It will likely be "libgmp#-dev" -- 'lib' for library, 'gmp' for GNU multiprecision, which you already know, and 'dev' which KingKurly already mentioned. Anyway, the 'dev' files really should straighten out all the headers including gmp.h, and allow you to use GMP as well as pari-gmp without any trouble.
|
|
|
|
|
|
#20 | |
|
Jun 2003
22218 Posts |
Quote:
|
|
|
|
|
|
|
#21 | ||
|
"James Heinrich"
May 2004
ex-Northern Ontario
D5016 Posts |
Quote:
Quote:
I tried compiling yafu again, and it got a lot further than last time, but still failed: Code:
# make x86 gcc -g -O3 -fomit-frame-pointer -Wall -I. -Iinclude -m32 -c -o arith/tfm/fp_mul_comba.o arith/tfm/fp_mul_comba.c gcc -g -O3 -fomit-frame-pointer -Wall -I. -Iinclude -m32 -c -o arith/tfm/fp_mul_comba_small_set.o arith/tfm/fp_mul_comba_small_set.c gcc -g -O3 -fomit-frame-pointer -Wall -I. -Iinclude -m32 -c -o arith/tfm/fp_sqr_comba.o arith/tfm/fp_sqr_comba.c gcc -g -O3 -fomit-frame-pointer -Wall -I. -Iinclude -m32 -c -o arith/tfm/fp_sqr_comba_small_set.o arith/tfm/fp_sqr_comba_small_set.c gcc -g -O3 -fomit-frame-pointer -Wall -I. -Iinclude -m32 -c -o arith/tfm/fp_sqr_comba_generic.o arith/tfm/fp_sqr_comba_generic.c gcc -g -O3 -fomit-frame-pointer -Wall -I. -Iinclude -m32 -c -o arith/tfm/fp_2expt.o arith/tfm/fp_2expt.c gcc -g -O3 -fomit-frame-pointer -Wall -I. -Iinclude -m32 -c -o arith/tfm/fp_cmp_mag.o arith/tfm/fp_cmp_mag.c gcc -g -O3 -fomit-frame-pointer -Wall -I. -Iinclude -m32 -c -o arith/tfm/fp_mont_small.o arith/tfm/fp_mont_small.c gcc -g -O3 -fomit-frame-pointer -Wall -I. -Iinclude -m32 -c -o arith/tfm/fp_montgomery_calc_normalization.o arith/tfm/fp_montgomery_calc_normalization.c gcc -g -O3 -fomit-frame-pointer -Wall -I. -Iinclude -m32 -c -o arith/tfm/fp_montgomery_reduce.o arith/tfm/fp_montgomery_reduce.c gcc -g -O3 -fomit-frame-pointer -Wall -I. -Iinclude -m32 -c -o arith/tfm/fp_montgomery_setup.o arith/tfm/fp_montgomery_setup.c gcc -g -O3 -fomit-frame-pointer -Wall -I. -Iinclude -m32 -c -o arith/tfm/fp_mul_2.o arith/tfm/fp_mul_2.c gcc -g -O3 -fomit-frame-pointer -Wall -I. -Iinclude -m32 -c -o arith/tfm/s_fp_sub.o arith/tfm/s_fp_sub.c gcc -g -O3 -fomit-frame-pointer -Wall -I. -Iinclude -m32 -c -o factor/qs/msieve/lanczos.o factor/qs/msieve/lanczos.c factor/qs/msieve/lanczos.c: In function 'yafu_mul_Nx64_64x64_acc': factor/qs/msieve/lanczos.c:282: error: unknown register name '%mm1' in 'asm' factor/qs/msieve/lanczos.c:282: error: unknown register name '%mm0' in 'asm' factor/qs/msieve/lanczos.c: In function 'yafu_mul_64xN_Nx64': factor/qs/msieve/lanczos.c:384: error: unknown register name '%mm1' in 'asm' factor/qs/msieve/lanczos.c:384: error: unknown register name '%mm0' in 'asm' make: *** [factor/qs/msieve/lanczos.o] Error 1 Or suggestions for what simple factoring program to try next? |
||
|
|
|
|
|
#22 |
|
"James Heinrich"
May 2004
ex-Northern Ontario
24·3·71 Posts |
|
|
|
|
![]() |
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Mail from command line | pepi37 | Linux | 4 | 2015-07-16 22:06 |
| Windows command line | mu5tan6 | Software | 14 | 2015-03-20 17:21 |
| command line switch | wongnog | Information & Answers | 1 | 2008-07-20 11:29 |
| NewPGen from the command line | monst | Software | 19 | 2008-01-31 07:07 |
| A small factoring program | Yamato | Factoring | 2 | 2007-11-21 23:29 |