Thread: Combined Sieve
View Single Post
Old 2020-12-13, 10:39   #17
SethTro's Avatar
Apr 2019

3×7×13 Posts

Originally Posted by robert44444uk View Post
I got quite a way with this Ubuntu thing, working through Microsoft Windows 10 subsystem WSL1. I think I got through almost all of stage 3 of Seth's idiot's guide "Now we get to the real project" - see post #1


robert44444uk@Robert:~/gmp/build/prime-gap/prime-gap$ make all
g++ -c -o gap_common.o gap_common.cpp -Wall -Werror -O3
make: g++: Command not found
make: *** [Makefile:39: gap_common.o] Error 127
robert44444uk@Robert:~/gmp/build/prime-gap/prime-gap$ $ head unknowns/907_53970_1_10000_s15000_l1000M.txt | cut -c1-100
$: command not found
Looks like g++ is not installed, I'd be slightly surprised if gmp installed (the first code block) you might need to redo that block if you get an error like "mpz_prevprime not found"

sudo apt install build-essential
should install g++ and you can continue from `make all`.
SethTro is offline   Reply With Quote