Bitcoin Forum
May 29, 2024, 11:24:04 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: « 1 2 3 4 5 [6] 7 8 »  All
  Print  
Author Topic: [XPM] Primecoin High Performance Linux Compilation Guide  (Read 43533 times)
Bitmong
Newbie
*
Offline Offline

Activity: 29
Merit: 0


View Profile
July 23, 2013, 12:52:19 AM
 #101

Run:

apt-get update

This will update the package lists, and after that the packages should be installable.
cryptohunter
Legendary
*
Offline Offline

Activity: 2100
Merit: 1167

MY RED TRUST LEFT BY SCUMBAGS - READ MY SIG


View Profile
July 23, 2013, 01:02:33 AM
 #102

thanks for trying to help however after running that command i see this


W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/raring-backports/universe/i18n/Translation-en  Something wicked happened resolving 'us.archive.ubuntu.com:http' (-11 - System error)

leif1981
Newbie
*
Offline Offline

Activity: 29
Merit: 0



View Profile WWW
July 23, 2013, 01:21:16 AM
 #103

Thanks

How to  on Centos 5?
relm9
Hero Member
*****
Offline Offline

Activity: 840
Merit: 1000



View Profile
July 23, 2013, 02:32:05 AM
 #104

For comparison: 7 cores of an i7 930 get ~2100pps on Debianx64. Core2Duo 2.13GHz gets ~600pps on Win7 x64. Interestingly about the same performance per core although the i7 should be a faster. I set the sievesize of the i7 to 4096000 and the C2D to 2048000, not sure if those are good values, in testnet they seemed pretty fine. i7 got no blocks for over a week while the Core2Duo just found one tonight, so it's still got a lot to do with luck.

edit: Great, now you replaced your question with nvm and my post is pretty much useless.  Tongue
i7 930 doesn't have 7 cores, it has 4 cores plus 4 HT threads.
cryptohunter
Legendary
*
Offline Offline

Activity: 2100
Merit: 1167

MY RED TRUST LEFT BY SCUMBAGS - READ MY SIG


View Profile
July 23, 2013, 04:25:03 AM
 #105

followed all of this but now the dual xeon l5420 is only getting 8 PPS

what could be wrong with that? should be more like 8000 not 8 right?

arnuschky
Hero Member
*****
Offline Offline

Activity: 517
Merit: 501


View Profile
July 23, 2013, 06:38:43 AM
 #106

thanks for trying to help however after running that command i see this

W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/raring-backports/universe/i18n/Translation-en  Something wicked happened resolving 'us.archive.ubuntu.com:http' (-11 - System error)

Your network configuration is broken, so you cannot download new packages. Fix it first:
https://help.ubuntu.com/12.04/serverguide/network-configuration.html
arnuschky
Hero Member
*****
Offline Offline

Activity: 517
Merit: 501


View Profile
July 23, 2013, 06:40:31 AM
 #107

followed all of this but now the dual xeon l5420 is only getting 8 PPS

what could be wrong with that? should be more like 8000 not 8 right?

Many people are currently reporting very low PPS. There seems to be a problem with the network. Wait for mikaelh to fix it, then redownload & recompile.
eule
Hero Member
*****
Offline Offline

Activity: 756
Merit: 501


View Profile
July 23, 2013, 07:01:26 AM
 #108

i7 930 doesn't have 7 cores, it has 4 cores plus 4 HT threads.
You're right of course, thanks! I use genproclimit 6 or 7 though in Linux or the CPU won't be used fully, that's what made me think 8 cores. My pps went far down too btw, chainspermin is stable. Grin

rethaw
Sr. Member
****
Offline Offline

Activity: 378
Merit: 255



View Profile
July 23, 2013, 09:47:52 AM
 #109

If I want to use the new fix you posted here: https://bitbucket.org/mikaelh/primecoin-hp

I am using these directories from the wget HP6 download:  /primecoin/src folder and did sudo mv primecoind /usr/local/bin/.

Do I just git clone the url and sudo mv primecoind /usr/local/bin/.

or how would you go about upgrading it?


Code:
git pull
make -f makefile.unix
primecoind stop
sudo mv /usr/local/bin/primecoind /usr/local/bin/primecoind_723
sudo mv primecoind /usr/local/bin/primecoind
primecoind --daemon

maco
Sr. Member
****
Offline Offline

Activity: 294
Merit: 250



View Profile
July 23, 2013, 09:51:02 AM
 #110

Code:
git pull
make -f makefile.unix
primecoind stop
sudo mv /usr/local/bin/primecoind /usr/local/bin/primecoind_723
sudo mv primecoind /usr/local/bin/primecoind
primecoind --daemon

You are always there when quick help is needed. Thanks!
Do I need make -f makefile.unix clean before hand? and during make -f makefile.unit (should I be at cd ) or cd ~/primecoin/src ?
rethaw
Sr. Member
****
Offline Offline

Activity: 378
Merit: 255



View Profile
July 23, 2013, 09:52:55 AM
 #111

Code:
git pull
make -f makefile.unix
primecoind stop
sudo mv /usr/local/bin/primecoind /usr/local/bin/primecoind_723
sudo mv primecoind /usr/local/bin/primecoind
primecoind --daemon

You are always there when quick help is needed. Thanks!
Do I need make -f makefile.unix clean before hand? and during make -f makefile.unit (should I be at cd ) or cd ~/primecoin/src ?

You don't need a clean, and yes, in the src directory.

rethaw
Sr. Member
****
Offline Offline

Activity: 378
Merit: 255



View Profile
July 23, 2013, 10:04:07 AM
 #112

Code:
git pull
make -f makefile.unix
primecoind stop
sudo mv /usr/local/bin/primecoind /usr/local/bin/primecoind_723
sudo mv primecoind /usr/local/bin/primecoind
primecoind --daemon

You are always there when quick help is needed. Thanks!
Do I need make -f makefile.unix clean before hand? and during make -f makefile.unit (should I be at cd ) or cd ~/primecoin/src ?

You don't need a clean, and yes, in the src directory.

I tried with both primecoind running and primecoind stopped but I get the following during make.

/usr/bin/ld: cannot find -lminiupnpc
collect2: ld returned 1 exit status
make: *** [primecoind] Error 1


Code:
make -f makefile.unix USE_UPNP=-

maco
Sr. Member
****
Offline Offline

Activity: 294
Merit: 250



View Profile
July 23, 2013, 10:10:38 AM
Last edit: July 27, 2013, 07:41:32 AM by maco
 #113

 git pull
fatal: Not a git repository (or any of the parent directories): .git

I tried even using git pull https://bitbucket.org/mikaelh/primecoin-hp.git
and git pull alone

for the make part it compiled too fast and got this error:

make -f makefile.unix USE_UPNP=-
/bin/sh ../share/genbuild.sh obj/build.h
fatal: Not a git repository (or any of the parent directories): .git

wget http://sourceforge.net/projects/primecoin-hp/files/0.1.1-hp6/primecoin-0.1.1-hp6.tar.bz2/download -O primecoin-0.1.1-hp6.tar.bz2
tar xjvf primecoin-0.1.1-hp6.tar.bz2
rethaw
Sr. Member
****
Offline Offline

Activity: 378
Merit: 255



View Profile
July 23, 2013, 10:11:51 AM
 #114

git pull
fatal: Not a git repository (or any of the parent directories): .git

I tried even using git pull https://bitbucket.org/mikaelh/primecoin-hp.git
and git pull alone

for the make part it compiled too fast and got this error:

make -f makefile.unix USE_UPNP=-
/bin/sh ../share/genbuild.sh obj/build.h
fatal: Not a git repository (or any of the parent directories): .git


Run git clone in a fresh directory.

woodrake
Full Member
***
Offline Offline

Activity: 153
Merit: 100



View Profile WWW
July 23, 2013, 07:35:07 PM
 #115

Thanks for the comprehensive instructions. Smiley

I have got a bit stuck though and I'm hoping someone can help. I got HP5 working and am now trying HP7. I am trying under three different distros: Debian 6, Ubuntu 12.4 and Centos 6.

I was getting some failures due to this bug, but got around that using the recommended s/TIME_UTC/TIME_UTC_/g.

CentOS

This one fails not finding lib boost I think, but the latest versions are installed:

Code:
# make -f makefile.unix USE_UPNP=-
/bin/sh ../share/genbuild.sh obj/build.h
which: no git in (/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin)
g++ -O2 -pthread -Wall -Wextra -Wformat -Wformat-security -Wno-unused-parameter -g -DBOOST_SPIRIT_THREADSAFE -D_FILE_OFFSET_BITS=64 -I/root/primecoin-0.1.1-hp7/src -I/root/primecoin-0.1.1-hp7/src/obj -I/usr/local/include -DUSE_IPV6=1 -I/root/primecoin-0.1.1-hp7/src/leveldb/include -I/root/primecoin-0.1.1-hp7/src/leveldb/helpers -DHAVE_BUILD_INFO -fno-stack-protector -fstack-protector-all -Wstack-protector -D_FORTIFY_SOURCE=2  -o primecoind leveldb/libleveldb.a obj/alert.o obj/version.o obj/checkpoints.o obj/netbase.o obj/addrman.o obj/crypter.o obj/key.o obj/db.o obj/init.o obj/keystore.o obj/main.o obj/net.o obj/protocol.o obj/bitcoinrpc.o obj/rpcdump.o obj/rpcnet.o obj/rpcmining.o obj/rpcwallet.o obj/rpcblockchain.o obj/rpcrawtransaction.o obj/script.o obj/sync.o obj/util.o obj/wallet.o obj/walletdb.o obj/hash.o obj/bloom.o obj/noui.o obj/leveldb.o obj/txdb.o obj/prime.o obj/checkpointsync.o -Wl,-z,relro -Wl,-z,now -Wl,-rpath,/usr/local/lib  -L/usr/local/lib -Wl,-Bdynamic -l boost_system -l boost_filesystem -l boost_program_options -l boost_thread -l db_cxx -l ssl -l crypto -l gmp -Wl,-Bdynamic -l z -l dl -l pthread /root/primecoin-0.1.1-hp7/src/leveldb/libleveldb.a /root/primecoin-0.1.1-hp7/src/leveldb/libmemenv.a
/usr/bin/ld: cannot find -lboost_thread
collect2: ld returned 1 exit status
make: *** [primecoind] Error 1

Ubuntu

Compiler crashes without any particularly helpful info:

Code:
# make -f makefile.unix
/bin/sh ../share/genbuild.sh obj/build.h
g++ -c -O2 -pthread -Wall -Wextra -Wformat -Wformat-security -Wno-unused-parameter -g -DBOOST_SPIRIT_THREADSAFE -D_FILE_OFFSET_BITS=64 -I/root/primecoin-0
p7/src -I/root/primecoin-0.1.1-hp7/src/obj -I/usr/local/include -DUSE_UPNP=0 -DUSE_IPV6=1 -I/root/primecoin-0.1.1-hp7/src/leveldb/include -I/root/primecoi
1-hp7/src/leveldb/helpers -DHAVE_BUILD_INFO -fno-stack-protector -fstack-protector-all -Wstack-protector -D_FORTIFY_SOURCE=2  -MMD -MF obj/main.d -o obj/m
main.cpp
g++: internal compiler error: Killed (program cc1plus)
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-4.6/README.Bugs> for instructions.
make: *** [obj/main.o] Error 4

Debian

Similar to Ubuntu in terms of compiler crash, but the message about git might be helpful to someone more clueful than me?

Code:
# make -f makefile.unix
/bin/sh ../share/genbuild.sh obj/build.h
fatal: Not a git repository (or any of the parent directories): .git
g++ -c -O2 -pthread -Wall -Wextra -Wformat -Wformat-security -Wno-unused-parameter -g -DBOOST_SPIRIT_THREADSAFE -D_FILE_OFFSET_BITS=64 -I/root/primecoin-0.1.1-hp7/src -I/root/primecoin-0.1.1-hp7/src/obj -I/usr/local/include -DUSE_UPNP=0 -DUSE_IPV6=1 -I/root/primecoin-0.1.1-hp7/src/leveldb/include -I/root/primecoin-0.1.1-hp7/src/leveldb/helpers -DHAVE_BUILD_INFO -fno-stack-protector -fstack-protector-all -Wstack-protector -D_FORTIFY_SOURCE=2  -MMD -MF obj/main.d -o obj/main.o main.cpp
g++: Internal error: Killed (program cc1plus)
Please submit a full bug report.
See <file:///usr/share/doc/gcc-4.4/README.Bugs> for instructions.
make: *** [obj/main.o] Error 1

Any suggestions welcome! Smiley

Kate.

PS. I expect my guys will fix this in the next day or so but I was having a go while they are busy with the main mining estate. Since I've got stuck I expect others will too!

Tamis
Sr. Member
****
Offline Offline

Activity: 476
Merit: 250



View Profile
July 23, 2013, 07:49:11 PM
 #116

Have no problem compiling on Ubuntu 13.04 x 64... Compiled today several time without a flaw
JohnDorien
Sr. Member
****
Offline Offline

Activity: 462
Merit: 250


View Profile
July 23, 2013, 10:22:18 PM
 #117

Thanks for the comprehensive instructions. Smiley

I have got a bit stuck though and I'm hoping someone can help. I got HP5 working and am now trying HP7. I am trying under three different distros: Debian 6, Ubuntu 12.4 and Centos 6.

I was getting some failures due to this bug, but got around that using the recommended s/TIME_UTC/TIME_UTC_/g.

CentOS

This one fails not finding lib boost I think, but the latest versions are installed:

Code:
# make -f makefile.unix USE_UPNP=-
/bin/sh ../share/genbuild.sh obj/build.h
which: no git in (/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin)
g++ -O2 -pthread -Wall -Wextra -Wformat -Wformat-security -Wno-unused-parameter -g -DBOOST_SPIRIT_THREADSAFE -D_FILE_OFFSET_BITS=64 -I/root/primecoin-0.1.1-hp7/src -I/root/primecoin-0.1.1-hp7/src/obj -I/usr/local/include -DUSE_IPV6=1 -I/root/primecoin-0.1.1-hp7/src/leveldb/include -I/root/primecoin-0.1.1-hp7/src/leveldb/helpers -DHAVE_BUILD_INFO -fno-stack-protector -fstack-protector-all -Wstack-protector -D_FORTIFY_SOURCE=2  -o primecoind leveldb/libleveldb.a obj/alert.o obj/version.o obj/checkpoints.o obj/netbase.o obj/addrman.o obj/crypter.o obj/key.o obj/db.o obj/init.o obj/keystore.o obj/main.o obj/net.o obj/protocol.o obj/bitcoinrpc.o obj/rpcdump.o obj/rpcnet.o obj/rpcmining.o obj/rpcwallet.o obj/rpcblockchain.o obj/rpcrawtransaction.o obj/script.o obj/sync.o obj/util.o obj/wallet.o obj/walletdb.o obj/hash.o obj/bloom.o obj/noui.o obj/leveldb.o obj/txdb.o obj/prime.o obj/checkpointsync.o -Wl,-z,relro -Wl,-z,now -Wl,-rpath,/usr/local/lib  -L/usr/local/lib -Wl,-Bdynamic -l boost_system -l boost_filesystem -l boost_program_options -l boost_thread -l db_cxx -l ssl -l crypto -l gmp -Wl,-Bdynamic -l z -l dl -l pthread /root/primecoin-0.1.1-hp7/src/leveldb/libleveldb.a /root/primecoin-0.1.1-hp7/src/leveldb/libmemenv.a
/usr/bin/ld: cannot find -lboost_thread
collect2: ld returned 1 exit status
make: *** [primecoind] Error 1

Ubuntu

Compiler crashes without any particularly helpful info:

Code:
# make -f makefile.unix
/bin/sh ../share/genbuild.sh obj/build.h
g++ -c -O2 -pthread -Wall -Wextra -Wformat -Wformat-security -Wno-unused-parameter -g -DBOOST_SPIRIT_THREADSAFE -D_FILE_OFFSET_BITS=64 -I/root/primecoin-0
p7/src -I/root/primecoin-0.1.1-hp7/src/obj -I/usr/local/include -DUSE_UPNP=0 -DUSE_IPV6=1 -I/root/primecoin-0.1.1-hp7/src/leveldb/include -I/root/primecoi
1-hp7/src/leveldb/helpers -DHAVE_BUILD_INFO -fno-stack-protector -fstack-protector-all -Wstack-protector -D_FORTIFY_SOURCE=2  -MMD -MF obj/main.d -o obj/m
main.cpp
g++: internal compiler error: Killed (program cc1plus)
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-4.6/README.Bugs> for instructions.
make: *** [obj/main.o] Error 4

Debian

Similar to Ubuntu in terms of compiler crash, but the message about git might be helpful to someone more clueful than me?

Code:
# make -f makefile.unix
/bin/sh ../share/genbuild.sh obj/build.h
fatal: Not a git repository (or any of the parent directories): .git
g++ -c -O2 -pthread -Wall -Wextra -Wformat -Wformat-security -Wno-unused-parameter -g -DBOOST_SPIRIT_THREADSAFE -D_FILE_OFFSET_BITS=64 -I/root/primecoin-0.1.1-hp7/src -I/root/primecoin-0.1.1-hp7/src/obj -I/usr/local/include -DUSE_UPNP=0 -DUSE_IPV6=1 -I/root/primecoin-0.1.1-hp7/src/leveldb/include -I/root/primecoin-0.1.1-hp7/src/leveldb/helpers -DHAVE_BUILD_INFO -fno-stack-protector -fstack-protector-all -Wstack-protector -D_FORTIFY_SOURCE=2  -MMD -MF obj/main.d -o obj/main.o main.cpp
g++: Internal error: Killed (program cc1plus)
Please submit a full bug report.
See <file:///usr/share/doc/gcc-4.4/README.Bugs> for instructions.
make: *** [obj/main.o] Error 1

Any suggestions welcome! Smiley

Kate.

PS. I expect my guys will fix this in the next day or so but I was having a go while they are busy with the main mining estate. Since I've got stuck I expect others will too!


the Ubuntu problem is caused by too little RAM. I think the debian error has the same cause.
relm9
Hero Member
*****
Offline Offline

Activity: 840
Merit: 1000



View Profile
July 23, 2013, 10:41:44 PM
 #118

For CentOS if you installed Boost from an rpm distribution you'll probably have to edit the makefile to include boost_thread-mt instead of boost_thread.

Or just do this, as the guide points out:

Quote
make -f makefile.unix BOOST_LIB_SUFFIX=-mt
monsterer
Legendary
*
Offline Offline

Activity: 1008
Merit: 1002


View Profile
July 24, 2013, 06:57:36 AM
 #119

This guide is awesome; I tried to get this running on centos myself for ages without success; now it's up and running!

One quick question: how do I tell how many coins I've mined?
Tamis
Sr. Member
****
Offline Offline

Activity: 476
Merit: 250



View Profile
July 24, 2013, 09:40:01 AM
Last edit: July 24, 2013, 10:51:26 AM by Tamis
 #120

One quick question: how do I tell how many coins I've mined?

Hi,

just watch 'primecoind getbalance' or 'primecoind listtransactions' or both...
I don't know if immature coins are listed though.

edit :

primecoind listaccounts will show all coins immature or not.
Pages: « 1 2 3 4 5 [6] 7 8 »  All
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!