Pages:
Author

Topic: [XPM] Primecoin High Performance Linux Compilation Guide - page 7. (Read 43554 times)

full member
Activity: 210
Merit: 100
I not use any kind of messenger beware of scammers
I'll keep trying, had the same kind of problems with the other methods I tried, and eventually I managed to compile succesfully.
1GB swap is likely not enough, try moving to 2GB (just add another swap file) . From what I understand the optimize flag -O2 can easily eat up 2GB of free ram by itself.
newbie
Activity: 18
Merit: 100
Here's what I get:

Reading package lists... Done
Building dependency tree
Reading state information... Done
build-essential is already the newest version.
libssl-dev is already the newest version.
libboost-all-dev is already the newest version.
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 libdb++-dev : Depends: libdb5.1++-dev (>= 5.1.25-2~) but it is not going to be
installed
E: Unable to correct problems, you have held broken packages.

How do I fix this? o.O
newbie
Activity: 50
Merit: 0
Here's what I get:

Reading package lists... Done
Building dependency tree
Reading state information... Done
build-essential is already the newest version.
libssl-dev is already the newest version.
libboost-all-dev is already the newest version.
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 libdb++-dev : Depends: libdb5.1++-dev (>= 5.1.25-2~) but it is not going to be
installed
E: Unable to correct problems, you have held broken packages.

How do I fix this? o.O


libdb++-dev  without a version number assumes version 5.1 but if you're on ubuntu 13.10 , you'll want version 5.3  so just change libdb++-dev to libdb5.3++-dev and you're golden
hero member
Activity: 812
Merit: 1000
Well, it certainly looks like an out of memory issue. Not sure how that's possible with a swap file. And yes, there are still bugs causing random crashes. They were present in Sunny King's original release and I haven't had the time to iron them out.

I'll keep trying, had the same kind of problems with the other methods I tried, and eventually I managed to compile succesfully.
newbie
Activity: 50
Merit: 0
on the first step, I am getting this :
The following packages have unmet dependencies:
 libminiupnpc-dev : Depends: libminiupnpc8 (= 1.6-3ubuntu1) but 1.6-precise2 is to be installed

I guess i already have libminiupnpc8 installed but just the wrong version? someone know what i need to do to correct it ?

thanks in advance
sr. member
Activity: 301
Merit: 250
Well, it certainly looks like an out of memory issue. Not sure how that's possible with a swap file. And yes, there are still bugs causing random crashes. They were present in Sunny King's original release and I haven't had the time to iron them out.
hero member
Activity: 812
Merit: 1000
Having trouble compiling primecoind...I get the following:

make: *** [bitcoinrpc.o] Error 4

It's a vps, 512mb ram, and 1gb swap, fresh boot. Ubuntu 12.10
I could compile it with ecoinomist's guide previously, but this one won't budge.

What's the full error message before that?

Can't copy from tightvnc (couldn't manage to use putty with this vps provider) -I did type the commands 100% right though-



In the other server, which is running hp5, compiled using ecoinomist's guide, I get constant crashes. The program either closes itself, and after a few hours I get an error and I have to reboot to be able to mine again.
Don't have the error message atm, I'll post it later.
member
Activity: 112
Merit: 10
Independent Analyst
Having trouble compiling primecoind...I get the following:

make: *** [bitcoinrpc.o] Error 4

It's a vps, 512mb ram, and 1gb swap, fresh boot. Ubuntu 12.10
I could compile it with ecoinomist's guide previously, but this one won't budge.
Updated the guide, it also works with hp5 version.
http://ecoinomist.com/xpm-primecoin-mining-guide-on-linux
sr. member
Activity: 301
Merit: 250
Having trouble compiling primecoind...I get the following:

make: *** [bitcoinrpc.o] Error 4

It's a vps, 512mb ram, and 1gb swap, fresh boot. Ubuntu 12.10
I could compile it with ecoinomist's guide previously, but this one won't budge.

What's the full error message before that?
hero member
Activity: 812
Merit: 1000
Having trouble compiling primecoind...I get the following:

make: *** [bitcoinrpc.o] Error 4

It's a vps, 512mb ram, and 1gb swap, fresh boot. Ubuntu 12.10
I could compile it with ecoinomist's guide previously, but this one won't budge.
hero member
Activity: 552
Merit: 500
mikaelh, can you provide the same steps for UBU 12.04 LTS?

I used the steps on my ubuntu server 12.0x
sr. member
Activity: 294
Merit: 250
Also, I am getting a blank screen when I run the RPC commands:

root@nc-ph-0105-03:~# primecoind getprimespersec

doesn't go back to # I have to use CTRL + C

and when I use the command line to watch, its blank.

Note: I am using ubu 12.04


or even when I do this. Run is fine, it goes to the next command line, but ./stop-primecoind goes to a blank section

root@nc-ph-0105-03:~# ./run-primecoind
root@nc-ph-0105-03:~# ./stop-primecoind

Solved: killall -9 primecoind
then redo it. thanks mikaelh
sr. member
Activity: 301
Merit: 250
sudo make install
command gets me this...  is this normal?

Libraries have been installed in:
   /usr/local/lib

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
   - add LIBDIR to the `LD_LIBRARY_PATH' environment variable
     during execution
   - add LIBDIR to the `LD_RUN_PATH' environment variable
     during linking
   - use the `-Wl,-rpath -Wl,LIBDIR' linker flag
   - have your system administrator add LIBDIR to `/etc/ld.so.conf'

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(Cool manual pages.
----------------------------------------------------------------------
 /bin/mkdir -p '/usr/local/include'
 /usr/bin/install -c -m 644 gmp.h '/usr/local/include'
 /bin/mkdir -p '/usr/local/include'
 /usr/bin/install -c -m 644 gmpxx.h '/usr/local/include'
make  install-data-hook
make[4]: Entering directory `/root/gmp-5.1.2'

+-------------------------------------------------------------+
| CAUTION:                                                    |
|                                                             |
| If you have not already run "make check", then we strongly  |
| recommend you do so.                                        |
|                                                             |
| GMP has been carefully tested by its authors, but compilers |
| are all too often released with serious bugs.  GMP tends to |
| explore interesting corners in compilers and has hit bugs   |
| on quite a few occasions.                                   |
|                                                             |
+-------------------------------------------------------------+


make[4]: Leaving directory `/root/gmp-5.1.2'
make[3]: Leaving directory `/root/gmp-5.1.2'
make[2]: Leaving directory `/root/gmp-5.1.2'
make[1]: Leaving directory `/root/gmp-5.1.2'


Looks perfectly normal.
sr. member
Activity: 399
Merit: 250
mikaelh, can you provide the same steps for UBU 12.04 LTS?

Did you at least try it with exactly the same steps? Ubu13 is not that different from Ubu12..
sr. member
Activity: 294
Merit: 250
mikaelh, can you provide the same steps for UBU 12.04 LTS?
hero member
Activity: 552
Merit: 500
ran this guide on one of my new ubuntu 12.x servers and when running the command to start it i get these errors

gateway@a:~/work$ ./run-primecoind: line 1: 14844 Illegal instruction     (core dumped) primecoind > /dev/null 2>&1
./run-primecoind: line 1: 14847 Illegal instruction     (core dumped) primecoind > /dev/null 2>&1
./run-primecoind: line 1: 14850 Illegal instruction     (core dumped) primecoind > /dev/null 2>&1
./run-primecoind: line 1: 14853 Illegal instruction     (core dumped) primecoind > /dev/null 2>&1
./run-primecoind: line 1: 14856 Illegal instruction     (core dumped) primecoind > /dev/null 2>&1

You can type killall run-primecoind to kill the script if you haven't already.

GCC is misdetecting your CPU and compiling wrong set of instructions into the binary. I removed the -march=native compiler flag from the instructions. I guess I'll have to leave it out if it's causing too many problems.

I get the same error.
But the process is still active, and show the same amount of pps.
It's bad if i let run like that?

re go though the steps, if you did this earlier a change was made to remove something that might cause this, the error should go away then

sr. member
Activity: 392
Merit: 250
ran this guide on one of my new ubuntu 12.x servers and when running the command to start it i get these errors

gateway@a:~/work$ ./run-primecoind: line 1: 14844 Illegal instruction     (core dumped) primecoind > /dev/null 2>&1
./run-primecoind: line 1: 14847 Illegal instruction     (core dumped) primecoind > /dev/null 2>&1
./run-primecoind: line 1: 14850 Illegal instruction     (core dumped) primecoind > /dev/null 2>&1
./run-primecoind: line 1: 14853 Illegal instruction     (core dumped) primecoind > /dev/null 2>&1
./run-primecoind: line 1: 14856 Illegal instruction     (core dumped) primecoind > /dev/null 2>&1

You can type killall run-primecoind to kill the script if you haven't already.

GCC is misdetecting your CPU and compiling wrong set of instructions into the binary. I removed the -march=native compiler flag from the instructions. I guess I'll have to leave it out if it's causing too many problems.

I get the same error.
But the process is still active, and show the same amount of pps.
It's bad if i let run like that?
hero member
Activity: 552
Merit: 500
ran this guide on one of my new ubuntu 12.x servers and when running the command to start it i get these errors

gateway@a:~/work$ ./run-primecoind: line 1: 14844 Illegal instruction     (core dumped) primecoind > /dev/null 2>&1
./run-primecoind: line 1: 14847 Illegal instruction     (core dumped) primecoind > /dev/null 2>&1
./run-primecoind: line 1: 14850 Illegal instruction     (core dumped) primecoind > /dev/null 2>&1
./run-primecoind: line 1: 14853 Illegal instruction     (core dumped) primecoind > /dev/null 2>&1
./run-primecoind: line 1: 14856 Illegal instruction     (core dumped) primecoind > /dev/null 2>&1

You can type killall run-primecoind to kill the script if you haven't already.

GCC is misdetecting your CPU and compiling wrong set of instructions into the binary. I removed the -march=native compiler flag from the instructions. I guess I'll have to leave it out if it's causing too many problems.

ok great that worked, but seems slower than yesterday.. cheers for your work

btw those you want something better than ps command install htop

sudo apt-get install htop

then run it..

sr. member
Activity: 301
Merit: 250
I managed to compile Primecoin on CentOS 6.4. I added some extra steps and notes to the guide.
full member
Activity: 210
Merit: 100
I not use any kind of messenger beware of scammers
Good guide. Always best to compile your own, Once you learn how it empowers you for the future (especially on windows)

I have been using mpir (natively compiled) instead of libgmp on both windows and linux. The PPS is higher than the pre-compiled libgmp (~5%, varies), not sure how it will stack up against the natively compiled libgmp (I would expect similar)
Pages:
Jump to: