Author Topic: [Primecoin] How to build the client from source on Linux (Ubuntu 12.04)  (Read 1219 times)

Offline tinnvec

  • Jr. Member
  • **
  • Posts: 4
  • Karma: +0/-0
  • Hello I'm new here
    • View Profile
Has anyone managed to build a binary for Linux out of the latest 0.1.1 version o mikaelh's update? I'm working on one including dynamic libraries, but no success so far  :-\

I am currently running it now, I didn't need to install anything extra beyond what is needed for the default client, what are the errors you're seeing?

(oh and sorry for the double post, just trying to be helpful)

Offline DR3AMR2

  • Jr. Member
  • **
  • Posts: 3
  • Karma: +0/-0
  • Hello I'm new here
    • View Profile
Has anyone managed to build a binary for Linux out of the latest 0.1.1 version o mikaelh's update? I'm working on one including dynamic libraries, but no success so far  :-\

I needed to add this dependency in order for me to make it work for linux and the mikaelh's source code.

Code: [Select]
apt-get install libgmp-dev

Offline MUTO

  • Jr. Member
  • **
  • Posts: 45
  • Karma: +2/-1
  • Hello I'm new here
    • View Profile
Same here, but I used libgmp3-dev. Had no problems with combiling the Linux version then. It´s running very well with nearly 5000PPS on my Dual Quadcore 2,4Ghz Xeon machines. Even my Core2duo on one core get´s about 700 PPS (windows precombiled version). About 2000PPS on my i5 Notebook and 3500PPS on my 3Ghz Xeon Quadcore Workstation.

It´s realy exciting how much improvement this version gives. Just wondering, if this is just PPS or also Blockfindingrate. Already found a few Blocks, so it basically seems to work.

Please note, that he github repository is currently down. But building the newest relase out of the following sources also worked fine:
Quote from: mikaelh @ Bitcointalk
http://sourceforge.net/projects/primecoin-hp/files/0.1.1-hp4/primecoin-0.1.1-hp4.tar.bz2/download
« Last Edit: July 16, 2013, 09:19:05 am by MUTO »

Offline tjb0607

  • Newbie
  • *
  • Posts: 1
  • Karma: +2/-0
    • View Profile
building one now under  make -O3 -march=native -f makefile.unix .... <--- ok that doesn't work...

You need to do it by setting CXXFLAGS, because -O3 and -march are g++ flags, not make flags.

Code: [Select]
make CXXFLAGS="-O3 -march=native" -f makefile.unix primecoind
XPM: AUohr3skoRY5f1Rp6Pab1q8xDJzTJPE2Jh // BTC: 1octixjpZZUhh2jmyoaQsSedDiw7wFkhg

Offline maco

  • Jr. Member
  • **
  • Posts: 5
  • Karma: +0/-0
  • Hello I'm new here
    • View Profile
Thanks for the guide. Can you write up something for EC2 or do you already have one? I am not sure if it follows the same principles?

Offline CryptoBeggar

  • Jr. Member
  • **
  • Posts: 9
  • Karma: +0/-0
  • Hello I'm new here
    • View Profile
I would like to ask again for help on building universal linux build (like the one posted on sourceforge). Is it only using statically linked libraries or also anything else?

Thank you to anyone kind enough to respond!

Offline ivanlabrie

  • Jr. Member
  • **
  • Posts: 12
  • Karma: +1/-0
  • Hello I'm new here
    • View Profile
I would like to ask again for help on building universal linux build (like the one posted on sourceforge). Is it only using statically linked libraries or also anything else?

Thank you to anyone kind enough to respond!

This guide worked perfectly fine for me: http://ecoinomist.com/xpm-primecoin-mining-guide-on-linux
You need 512mb ram and 1gb swap, or more.

Offline CryptoBeggar

  • Jr. Member
  • **
  • Posts: 9
  • Karma: +0/-0
  • Hello I'm new here
    • View Profile
I would like to ask again for help on building universal linux build (like the one posted on sourceforge). Is it only using statically linked libraries or also anything else?

Thank you to anyone kind enough to respond!

This guide worked perfectly fine for me: http://ecoinomist.com/xpm-primecoin-mining-guide-on-linux
You need 512mb ram and 1gb swap, or more.

Thank you, although I am attempting to build a binary on one machine and transfer it on two others with the same architecture but different OS. I know it is possible as fuzzy and sunny both created at least one, but am not sure on which distro I should do this.

Offline ivanlabrie

  • Jr. Member
  • **
  • Posts: 12
  • Karma: +1/-0
  • Hello I'm new here
    • View Profile
Just compile it on each machine...problem solved.
Or use win binaries (yuck)

Offline CryptoBeggar

  • Jr. Member
  • **
  • Posts: 9
  • Karma: +0/-0
  • Hello I'm new here
    • View Profile
I'm having problem with some libraries, that's why I am looking for this kind of solution (a bit obsolete system on one computer which is also a server).