Bitcoin Forum
December 07, 2016, 10:44:42 PM *
News: Latest stable version of Bitcoin Core: 0.13.1  [Torrent].
 
   Home   Help Search Donate Login Register  
Pages: « 1 ... 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 [687] 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 ... 744 »
  Print  
Author Topic: [1500 TH] p2pool: Decentralized, DoS-resistant, Hop-Proof pool  (Read 2032548 times)
Carlton Banks
Legendary
*
Offline Offline

Activity: 1470



View Profile
November 05, 2015, 10:04:26 AM
 #13721

Memory utilisation is high --- bitcoin is using ~12 Gb and p2pool is using ~3Gb (I was running under pypy but switched back to python to reduce memory usage).
Has anyone else experienced this situation; and what (if anything) can be done to get around it ?

First: in ~/.bitcoin/bitcoin.conf, add

Code:
minrelaytxfee=0.00005

oh come on ... we don't have a mempool problem actually.

Code:
maxmempooltx=1200
minrelaytxfee=0.00000001

I use this (XT only for the first parameter).

Bear in mind also that 0.12 will include a dynamic mempool adjuster, node operators can return to similar minrelay and minfee values to when tx flooding was not happening.

Vires in numeris
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
nicklello
Member
**
Offline Offline

Activity: 119


View Profile
November 05, 2015, 12:16:13 PM
 #13722

Firstly, thankyou very much for the assist....

First: in ~/.bitcoin/bitcoin.conf, add

Code:
minrelaytxfee=0.00005

That will reject any transactions that don't include at least 0.05 mBTC/kb in fees. That should drop your mempool size from about 500 MB down to about 5 MB. This is necessary due to about 1 GB of spam that was sent about a month ago, plus the fact that 1 MB blocks just isn't enough any longer.
I had minrelaytxfee set to 0.00001 ; this probably made me wide open to the spam transactions.



Code:
export MALLOC_ARENA_MAX=1
in the same terminal (or bash session) that you use to start bitcoind. This is a workaround for an issue described here:

BitcoinXT will probably be switching over to jemalloc soon. Instead of the MALLOC_ARENA_MAX=1 fix, you can also try using jemalloc if you prefer.
Code:
sudo apt-get install libjemalloc libjemalloc-dev

Then, when you want to run bitcoind,

Code:
LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libjemalloc.so ./bitcoind -daemon

I had already employed MALLOC_ARENA_MAX which didn't seem to help much (again, I think the spam hit me) ---  however I've switched to preloading libjemalloc WITHOUT the MALLOC_ARENA_MAX setting.

Early indications are that these 2 changes are drastically reducing my memory usage.

Am looking forward to the getblocktemplate enhancements...


24 hours on with these settings and things look fantastic.. RSS usage is staying around the 1Gb mark (total memory ~5Gb) and I have not had any of the issues (RPC delays etc).

Just need to get that getwork/getblocktemplate latency down.; but that's a 'nice to have'.
Meuh6879
Legendary
*
Offline Offline

Activity: 1092



View Profile
November 05, 2015, 03:51:14 PM
 #13723

Bear in mind also that 0.12 will include a dynamic mempool adjuster.

i want this !

French ... but not so much   ---===---   P2P ... it's people at the end   ---===---   P2Pool (10,9 GH/s).
Comment miner des bitcoins ? Un tutoriel est là : https://bitcointalk.org/index.php?topic=1114415.0
Bitcoin change everything ... an explain of this fact : https://www.youtube.com/watch?v=joITmEr4SjY
jtoomim
Hero Member
*****
Offline Offline

Activity: 555


View Profile WWW
November 06, 2015, 07:24:15 AM
 #13724

First: in ~/.bitcoin/bitcoin.conf, add

Code:
minrelaytxfee=0.00005

oh come on ... we don't have a mempool problem actually.

Code:
maxmempooltx=1200
minrelaytxfee=0.00000001

I use this (XT only for the first parameter).

No, for mining it's better to use minrelaytxfee=0.00005 or so and not use Gavin's random eviction code too heavily. If you do, especially with a threshold of 1200 txns, you'll lose a lot of fees, and you'll include a lot of those nasty 14790 byte 0.00015 fee spam transactions that were broadcast at the beginning of October.

The new evictRandomBytewise code is much better for mining (https://github.com/bitcoinxt/bitcoinxt/pull/89/), since it mostly evicts large low-fee transactions, but it isn't in any releases yet (or even merged into master -- still waiting for testing results from people other than me). I've found maxmempoolbytes=5000000 (5 MB of mempool usage, or about 1.8 MB of blocksize) to be pretty decent for now, and I use that on http://74.82.233.205:9332.

Keep in mind that the use of random eviction code may mess up the Relay Network's effectiveness.

Hosting bitcoin miners for $75 to $90/kW/month on clean, cheap hydro power.
http://Toom.im
Carlton Banks
Legendary
*
Offline Offline

Activity: 1470



View Profile
November 06, 2015, 09:25:35 AM
 #13725

Bear in mind also that 0.12 will include a dynamic mempool adjuster.

i want this !

Bear in mind also that several devs have taken several months to come to a consensus about the design approach for the new 0.12 mempool limiter. It's a fairly refined solution, which is why I say that everyone will be able to return to min relay and min fee settings similar to pre-flooding values once 0.12 is available.

Vires in numeris
Meuh6879
Legendary
*
Offline Offline

Activity: 1092



View Profile
November 06, 2015, 09:53:27 PM
 #13726

No, for mining it's better to use minrelaytxfee=0.00005 or so and not use Gavin's random eviction code too heavily. If you do, especially with a threshold of 1200 txns, you'll lose a lot of fees, and you'll include a lot of those nasty 14790 byte 0.00015 fee spam transactions that were broadcast at the beginning of October.

you thinks like that ... but i think in other way : network need to transmit transactions.
we have plenty of bitcoin core that they officially filtered (non-relay) the transactions ... i don't love this.
i want a fairplay network open to others.

spam filter need to activate ONLY because we have spam ... and upper the fee strategic with FIXED value is a non-intelligent solution for me.

i prefer purge my mempool (because mempool is shared between each nodes) when it requiert more CPU (every day, i change the limit from 1200 to 800 from the past CPU monitoring time) and not implemente fee filter.

long chain win ... don't loose this goal.

French ... but not so much   ---===---   P2P ... it's people at the end   ---===---   P2Pool (10,9 GH/s).
Comment miner des bitcoins ? Un tutoriel est là : https://bitcointalk.org/index.php?topic=1114415.0
Bitcoin change everything ... an explain of this fact : https://www.youtube.com/watch?v=joITmEr4SjY
sawa
Hero Member
*****
Offline Offline

Activity: 558



View Profile
November 10, 2015, 04:59:45 PM
 #13727

I'm here still thinking maybe we have cutting low-fee transactions on nodes for nothing?
mintxfee=0.00001
minrelaytxfee=0.00001
Someone cuts more.
Maybe we should not reject the blocks with a low-fee transactions with these cuts?
But everyone turned these parameters on because afraid of spam.
Do I understand correctly? Transactions go with the block and if we have limited low-fee transactions - the block goes to other pool which is not limited these sums.
You can refuse these limitations when used pypy and reduce the ammount of connections due to the relay network.

notbatman
Legendary
*
Offline Offline

Activity: 1050



View Profile
November 10, 2015, 05:16:50 PM
 #13728

I'm here still thinking maybe we have cutting low-fee transactions on nodes for nothing?
mintxfee=0.00001
minrelaytxfee=0.00001
Someone cuts more.
Maybe we should not reject the blocks with a low-fee transactions with these cuts?
But everyone turned these parameters on because afraid of spam.
Do I understand correctly? Transactions go with the block and if we have limited low-fee transactions - the block goes to other pool which is not limited these sums.
You can refuse these limitations when used pypy and reduce the ammount of connections due to the relay network.

The tx fees currently add up to not much however, the higher you set the tx fee the more money miners get when the pool finds a block i.e. a block full of 10 satoshi spam transactions vs. a block full of 0.0005 BTC transactions. Since the fees add up to so little it currently matters not if the block is empty or full.

Also, the tx fee has nothing to do with blocks going to other pools, your understanding of the Bitcoin protocol is incorrect in that regards.
sawa
Hero Member
*****
Offline Offline

Activity: 558



View Profile
November 10, 2015, 05:56:39 PM
 #13729

I'm here still thinking maybe we have cutting low-fee transactions on nodes for nothing?
mintxfee=0.00001
minrelaytxfee=0.00001
Someone cuts more.
Maybe we should not reject the blocks with a low-fee transactions with these cuts?
But everyone turned these parameters on because afraid of spam.
Do I understand correctly? Transactions go with the block and if we have limited low-fee transactions - the block goes to other pool which is not limited these sums.
You can refuse these limitations when used pypy and reduce the ammount of connections due to the relay network.

The tx fees currently add up to not much however, the higher you set the tx fee the more money miners get when the pool finds a block i.e. a block full of 10 satoshi spam transactions vs. a block full of 0.0005 BTC transactions. Since the fees add up to so little it currently matters not if the block is empty or full.

Also, the tx fee has nothing to do with blocks going to other pools, your understanding of the Bitcoin protocol is incorrect in that regards.
I see that the block includes transaction, or does it mean something else:
Quote
2015-11-10 23:39:21.175614 New work for worker! Difficulty: 5934.627313 Share difficulty: 10661044.589070 Total block value: 25.204985 BTC including 1259 transactions
Quote
2015-11-10 23:40:07.750110 New work for worker! Difficulty: 3965.507154 Share difficulty: 7407297.860059 Total block value: 25.213353 BTC including 1293 transactions
Rejecting these transactions I do not receive a share containing the transaction.

notbatman
Legendary
*
Offline Offline

Activity: 1050



View Profile
November 10, 2015, 07:02:58 PM
 #13730

I'm here still thinking maybe we have cutting low-fee transactions on nodes for nothing?
mintxfee=0.00001
minrelaytxfee=0.00001
Someone cuts more.
Maybe we should not reject the blocks with a low-fee transactions with these cuts?
But everyone turned these parameters on because afraid of spam.
Do I understand correctly? Transactions go with the block and if we have limited low-fee transactions - the block goes to other pool which is not limited these sums.
You can refuse these limitations when used pypy and reduce the ammount of connections due to the relay network.

The tx fees currently add up to not much however, the higher you set the tx fee the more money miners get when the pool finds a block i.e. a block full of 10 satoshi spam transactions vs. a block full of 0.0005 BTC transactions. Since the fees add up to so little it currently matters not if the block is empty or full.

Also, the tx fee has nothing to do with blocks going to other pools, your understanding of the Bitcoin protocol is incorrect in that regards.
I see that the block includes transaction, or does it mean something else:
Quote
2015-11-10 23:39:21.175614 New work for worker! Difficulty: 5934.627313 Share difficulty: 10661044.589070 Total block value: 25.204985 BTC including 1259 transactions
Quote
2015-11-10 23:40:07.750110 New work for worker! Difficulty: 3965.507154 Share difficulty: 7407297.860059 Total block value: 25.213353 BTC including 1293 transactions
Rejecting these transactions I do not receive a share containing the transaction.

I'm not sure I can explain this properly to you but, the higher you set your tx fee and the more little spam transactions you reject the bigger the blocks (in terms of BTC) your miner mines will be.

An analogy:

You've got an unlimited supply of wax beads. And the beads come in two sizes 10mm and 1cm. Lets say the standard for a wax ball is 100 beads squished together and the wax ball vendor who buys standard wax balls pays for them by the gram.

If you just grab a handful of wax beads at random and count out 100 of them you'll get a mix of big and small ones and you'll end up with a wax ball that's a lot lighter than if you just picked out the large beads and squished 100 of them together.

Now would you rather sell the wax ball vendor a light ball or a heavy one? remember the vendor pays by the gram.
TTravis
Full Member
***
Offline Offline

Activity: 165


View Profile
November 11, 2015, 03:34:03 PM
 #13731

I am having trouble installing p2pool.

I still consider myself to be a beginner with Linux.
I am trying to do this on a Dell Percision 390 desktop with 8GB memory and plenty big drive.
I have more memory and SSD on order but hope this will do for now.
I have a T1 connection to the Internet.
I am running Linux Mint 64 bit version 17.2 and KDE desktop.

I am currently running Bitcoin Core on this same machine.

I believe I did all the preparations:

apt-get install python-twisted python-argparse # should work on Ubuntu
apt-get update
apt-get upgrade

I am looking at Linux instructions on http://p2pool.in/

-------------------------------------------
sudo apt-get install git # if git is not installed
git clone https://github.com/forrestv/p2pool.git
cd p2pool
make
----------------------------------------------

First attempt did not work with exit error message, so I did "rm -rf p2pool" to try again.

I read in earlier post that git clone https://github.com/forrestv/p2pool.git   

should now be changed to:  git clone https://github.com/p2pool/p2pool.git

So I tried again with following:
-------------------------------------------
sudo apt-get install git # if git is not installed
git clone https://github.com/p2pool/p2pool.git
cd p2pool
make
----------------------------------------------

Both ways, I get same output:

ttravis@ttravis-Precision-WorkStation-390:~ > git clone https://github.com/p2pool/p2pool.git 
Cloning into 'p2pool'...
remote: Counting objects: 9407, done.
remote: Total 9407 (delta 0), reused 0 (delta 0), pack-reused 9407
Receiving objects: 100% (9407/9407), 3.72 MiB | 135.00 KiB/s, done.
Resolving deltas: 100% (5927/5927), done.
Checking connectivity... done.
ttravis@ttravis-Precision-WorkStation-390:~ > cd p2pool
ttravis@ttravis-Precision-WorkStation-390:~/p2pool > make
mkdir -p "/home/ttravis/p2pool/.cache"/pyenv
curl -L 'https://pypi.python.org/packages/source/v/virtualenv/virtualenv-1.11.6.tar.gz' >'/home/ttravis/p2pool/.cache/pyenv/virtualenv-1.11.6.tar.gz' || { rm -f '/home/ttravis/p2pool/.cache/pyenv/virtualenv-1.11.6.tar.gz'; exit 1; }
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 1572k  100 1572k    0     0   136k      0  0:00:11  0:00:11 --:--:--  149k
rm -rf "/home/ttravis/p2pool/.pyenv"
mkdir -p "/home/ttravis/p2pool/.pyenv"
# virtualenv is used to create a separate Python installation
# for this project in /home/ttravis/p2pool/.pyenv.
tar \
            -C "/home/ttravis/p2pool/.cache"/pyenv --gzip \
            -xf "/home/ttravis/p2pool/.cache"/pyenv/virtualenv-1.11.6.tar.gz
python "/home/ttravis/p2pool/.cache"/pyenv/virtualenv-1.11.6/virtualenv.py \
            --clear \
            --distribute \
            --never-download \                                                                                                                                                     
            --prompt="(p2pool) " \                                                                                                                                                 
            "/home/ttravis/p2pool/.pyenv"                                                                                                                                           
Not deleting /home/ttravis/p2pool/.pyenv/bin                                                                                                                                       
New python executable in /home/ttravis/p2pool/.pyenv/bin/python                                                                                                                     
Installing setuptools, pip...done.                                                                                                                                                 
rm -rf "/home/ttravis/p2pool/.cache"/pyenv/virtualenv-1.11.6                                                                                                                       
# Snapshot the Python environment                                                                                                                                                   
tar -C "/home/ttravis/p2pool/.pyenv" --gzip -cf "/home/ttravis/p2pool/.cache/pyenv/pyenv-1.11.6-base.tar.gz" .                                                                     
rm -rf "/home/ttravis/p2pool/.pyenv"                                                                                                                                               
rm -rf "/home/ttravis/p2pool/.pyenv"                                                                                                                                               
mkdir -p "/home/ttravis/p2pool/.pyenv"                                                                                                                                             
mkdir -p "/home/ttravis/p2pool/.cache"/pypi                                                                                                                                         
# Uncompress saved Python environment                                                                                                                                               
tar -C "/home/ttravis/p2pool/.pyenv" --gzip -xf "/home/ttravis/p2pool/.cache"/pyenv/pyenv-1.11.6-base.tar.gz                                                                       
find "/home/ttravis/p2pool/.pyenv" -not -type d -print0 >"/home/ttravis/p2pool"/.pkglist                                                                                           
# readline is installed here to get around a bug on Mac OS X                                                                                                                       
# which is causing readline to not build properly if installed                                                                                                                     
# from pip, and the fact that a different package must be used                                                                                                                     
# to support it on Windows/Cygwin.                                                                                                                                                 
if [ "x`uname -s`" = "xCygwin" ]; then \                                                                                                                                           
            "/home/ttravis/p2pool/.pyenv"/bin/pip install pyreadline; \                                                                                                             
        else \                                                                                                                                                                     
            "/home/ttravis/p2pool/.pyenv"/bin/easy_install readline; \                                                                                                             
        fi                                                                                                                                                                         
Searching for readline                                                                                                                                                             
Reading https://pypi.python.org/simple/readline/                                                                                                                                   
Best match: readline 6.2.4.1                                                                                                                                                       
Downloading https://pypi.python.org/packages/source/r/readline/readline-6.2.4.1.tar.gz#md5=578237939c81fdbc2c8334d168b17907                                                         
Processing readline-6.2.4.1.tar.gz                                                                                                                                                 
Writing /tmp/easy_install-eO9jSr/readline-6.2.4.1/setup.cfg                                                                                                                         
Running readline-6.2.4.1/setup.py -q bdist_egg --dist-dir /tmp/easy_install-eO9jSr/readline-6.2.4.1/egg-dist-tmp-nxOplh                                                             
/usr/bin/ld: cannot find -lncurses                                                                                                                                                 
collect2: error: ld returned 1 exit status                                                                                                                                         
error: Setup script exited with error: command 'x86_64-linux-gnu-gcc' failed with exit status 1                                                                                     
make: *** [/home/ttravis/p2pool/.cache/pyenv/pyenv-1.11.6-extras.tar.gz] Error 1
ttravis@ttravis-Precision-WorkStation-390:~/p2pool >
_______________________________

Where am I going wrong?

Thanks in advance.  If I get this working, I hope to put 150TH on p2pool and see how it does.

Tom Travis
notbatman
Legendary
*
Offline Offline

Activity: 1050



View Profile
November 11, 2015, 03:44:43 PM
 #13732

I am having trouble installing p2pool.

I still consider myself to be a beginner with Linux.
I am trying to do this on a Dell Percision 390 desktop with 8GB memory and plenty big drive.
I have more memory and SSD on order but hope this will do for now.
I have a T1 connection to the Internet.
I am running Linux Mint 64 bit version 17.2 and KDE desktop.

I am currently running Bitcoin Core on this same machine.

I believe I did all the preparations:

apt-get install python-twisted python-argparse # should work on Ubuntu
apt-get update
apt-get upgrade

I am looking at Linux instructions on http://p2pool.in/

-------------------------------------------
sudo apt-get install git # if git is not installed
git clone https://github.com/forrestv/p2pool.git
cd p2pool
make
----------------------------------------------

First attempt did not work with exit error message, so I did "rm -rf p2pool" to try again.

I read in earlier post that git clone https://github.com/forrestv/p2pool.git   

should now be changed to:  git clone https://github.com/p2pool/p2pool.git

So I tried again with following:
-------------------------------------------
sudo apt-get install git # if git is not installed
git clone https://github.com/p2pool/p2pool.git
cd p2pool
make
----------------------------------------------

Both ways, I get same output:

ttravis@ttravis-Precision-WorkStation-390:~ > git clone https://github.com/p2pool/p2pool.git 
Cloning into 'p2pool'...
remote: Counting objects: 9407, done.
remote: Total 9407 (delta 0), reused 0 (delta 0), pack-reused 9407
Receiving objects: 100% (9407/9407), 3.72 MiB | 135.00 KiB/s, done.
Resolving deltas: 100% (5927/5927), done.
Checking connectivity... done.
ttravis@ttravis-Precision-WorkStation-390:~ > cd p2pool
ttravis@ttravis-Precision-WorkStation-390:~/p2pool > make
mkdir -p "/home/ttravis/p2pool/.cache"/pyenv
curl -L 'https://pypi.python.org/packages/source/v/virtualenv/virtualenv-1.11.6.tar.gz' >'/home/ttravis/p2pool/.cache/pyenv/virtualenv-1.11.6.tar.gz' || { rm -f '/home/ttravis/p2pool/.cache/pyenv/virtualenv-1.11.6.tar.gz'; exit 1; }
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 1572k  100 1572k    0     0   136k      0  0:00:11  0:00:11 --:--:--  149k
rm -rf "/home/ttravis/p2pool/.pyenv"
mkdir -p "/home/ttravis/p2pool/.pyenv"
# virtualenv is used to create a separate Python installation
# for this project in /home/ttravis/p2pool/.pyenv.
tar \
            -C "/home/ttravis/p2pool/.cache"/pyenv --gzip \
            -xf "/home/ttravis/p2pool/.cache"/pyenv/virtualenv-1.11.6.tar.gz
python "/home/ttravis/p2pool/.cache"/pyenv/virtualenv-1.11.6/virtualenv.py \
            --clear \
            --distribute \
            --never-download \                                                                                                                                                     
            --prompt="(p2pool) " \                                                                                                                                                 
            "/home/ttravis/p2pool/.pyenv"                                                                                                                                           
Not deleting /home/ttravis/p2pool/.pyenv/bin                                                                                                                                       
New python executable in /home/ttravis/p2pool/.pyenv/bin/python                                                                                                                     
Installing setuptools, pip...done.                                                                                                                                                 
rm -rf "/home/ttravis/p2pool/.cache"/pyenv/virtualenv-1.11.6                                                                                                                       
# Snapshot the Python environment                                                                                                                                                   
tar -C "/home/ttravis/p2pool/.pyenv" --gzip -cf "/home/ttravis/p2pool/.cache/pyenv/pyenv-1.11.6-base.tar.gz" .                                                                     
rm -rf "/home/ttravis/p2pool/.pyenv"                                                                                                                                               
rm -rf "/home/ttravis/p2pool/.pyenv"                                                                                                                                               
mkdir -p "/home/ttravis/p2pool/.pyenv"                                                                                                                                             
mkdir -p "/home/ttravis/p2pool/.cache"/pypi                                                                                                                                         
# Uncompress saved Python environment                                                                                                                                               
tar -C "/home/ttravis/p2pool/.pyenv" --gzip -xf "/home/ttravis/p2pool/.cache"/pyenv/pyenv-1.11.6-base.tar.gz                                                                       
find "/home/ttravis/p2pool/.pyenv" -not -type d -print0 >"/home/ttravis/p2pool"/.pkglist                                                                                           
# readline is installed here to get around a bug on Mac OS X                                                                                                                       
# which is causing readline to not build properly if installed                                                                                                                     
# from pip, and the fact that a different package must be used                                                                                                                     
# to support it on Windows/Cygwin.                                                                                                                                                 
if [ "x`uname -s`" = "xCygwin" ]; then \                                                                                                                                           
            "/home/ttravis/p2pool/.pyenv"/bin/pip install pyreadline; \                                                                                                             
        else \                                                                                                                                                                     
            "/home/ttravis/p2pool/.pyenv"/bin/easy_install readline; \                                                                                                             
        fi                                                                                                                                                                         
Searching for readline                                                                                                                                                             
Reading https://pypi.python.org/simple/readline/                                                                                                                                   
Best match: readline 6.2.4.1                                                                                                                                                       
Downloading https://pypi.python.org/packages/source/r/readline/readline-6.2.4.1.tar.gz#md5=578237939c81fdbc2c8334d168b17907                                                         
Processing readline-6.2.4.1.tar.gz                                                                                                                                                 
Writing /tmp/easy_install-eO9jSr/readline-6.2.4.1/setup.cfg                                                                                                                         
Running readline-6.2.4.1/setup.py -q bdist_egg --dist-dir /tmp/easy_install-eO9jSr/readline-6.2.4.1/egg-dist-tmp-nxOplh                                                             
/usr/bin/ld: cannot find -lncurses                                                                                                                                                 
collect2: error: ld returned 1 exit status                                                                                                                                         
error: Setup script exited with error: command 'x86_64-linux-gnu-gcc' failed with exit status 1                                                                                     
make: *** [/home/ttravis/p2pool/.cache/pyenv/pyenv-1.11.6-extras.tar.gz] Error 1
ttravis@ttravis-Precision-WorkStation-390:~/p2pool >
_______________________________

Where am I going wrong?

Thanks in advance.  If I get this working, I hope to put 150TH on p2pool and see how it does.

Tom Travis


It says you're missing ncurses, you can try:

make clean
sudo apt-get install libncurses5-dev libncursesw5-dev
make
Carlton Banks
Legendary
*
Offline Offline

Activity: 1470



View Profile
November 11, 2015, 04:24:19 PM
 #13733

I am running Linux Mint 64 bit version 17.2 and KDE desktop.

It's possible that you might want to do a search on the latest built-in user data gathering that Mint implements. Last time I checked, Mint was off-putting to me because the standard Mint Firefox package has a load of that type of stuff, can't remember the details, but it was enough to make me want to use Debian for a p2pool platform. Almost everything will be very similar (or the same) in practice when using Debian, as Mint is just a forked version of the latest version of Ubuntu (which itself is a forked version of Debian).

Vires in numeris
TTravis
Full Member
***
Offline Offline

Activity: 165


View Profile
November 11, 2015, 04:32:42 PM
 #13734

Quote

It says you're missing ncurses, you can try:

make clean
sudo apt-get install libncurses5-dev libncursesw5-dev
make

I tried this and this is the tail end of the output:

---------------------------------------------------
File "/home/ttravis/p2pool/.pyenv/local/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 822, in install_eggs

    return self.build_and_install(setup_script, setup_base)

  File "/home/ttravis/p2pool/.pyenv/local/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 1028, in build_and_install

    self.run_setup(setup_script, setup_base, args)

  File "/home/ttravis/p2pool/.pyenv/local/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 1016, in run_setup

    raise DistutilsError("Setup script exited with %s" % (v.args[0],))

distutils.errors.DistutilsError: Setup script exited with error: command 'x86_64-linux-gnu-gcc' failed with exit status 1

----------------------------------------
Cleaning up...
Command /home/ttravis/p2pool/.pyenv/bin/python -c "import setuptools, tokenize;__file__='/home/ttravis/p2pool/.pyenv/build/cryptography/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-TzZVff-record/install-record.txt --single-version-externally-managed --compile --install-headers /home/ttravis/p2pool/.pyenv/include/site/python2.7 failed with error code 1 in /home/ttravis/p2pool/.pyenv/build/cryptography
Storing debug log for failure in /home/ttravis/.pip/pip.log
make: *** [/home/ttravis/p2pool/.cache/pyenv/pyenv-1.11.6-extras.tar.gz] Error 1


I am thinking about giving up on Mint and just starting over with Ubuntu or straight Debin

Any other suggestions before I dump this and start over?

Thanks in advance,

Tom Travis
notbatman
Legendary
*
Offline Offline

Activity: 1050



View Profile
November 11, 2015, 04:36:35 PM
 #13735

It's called 'ncurses-dev' on Mint I believe, try:

sudo apt-get install ncurses-dev

forrestv
Hero Member
*****
Offline Offline

Activity: 510


View Profile
November 11, 2015, 06:17:59 PM
 #13736

TTravis: You don't actually need to run make. It's not even mentioned in the README. It's only there for assisting development. Just run ./run_p2pool.py.

1J1zegkNSbwX4smvTdoHSanUfwvXFeuV23
Carlton Banks
Legendary
*
Offline Offline

Activity: 1470



View Profile
November 11, 2015, 09:20:13 PM
 #13737

TTravis: You don't actually need to run make. It's not even mentioned in the README. It's only there for assisting development. Just run ./run_p2pool.py.

Forgive me if I'm wrong, but is that not what you supply as an argument to the python command? I recall doing:  python ./run_p2pool.py

Vires in numeris
notbatman
Legendary
*
Offline Offline

Activity: 1050



View Profile
November 11, 2015, 09:29:43 PM
 #13738

I run p2pool via the .py script myself however, the version number displays as "666f7272657374762d7032706f6f6c2d66616431653163". I haven't taken the time to look into why it's behaving like this vs. the compiled version as it doesn't affect mining at all. If somebody has a quick answer and fix I'd be interested to know.
forrestv
Hero Member
*****
Offline Offline

Activity: 510


View Profile
November 11, 2015, 09:36:02 PM
 #13739

Forgive me if I'm wrong, but is that not what you supply as an argument to the python command? I recall doing:  python ./run_p2pool.py

For Linux systems, run_p2pool.py is marked executable and has a Python shebang, so you can directly run it.

notbatman: P2Pool tries to obtain its version number by executing git and, if that fails, examining the name of the directory it's in. However, neither of those worked on your system, so it just used the (hex-encoded) name of the directory it's in. It's not a problem.

1J1zegkNSbwX4smvTdoHSanUfwvXFeuV23
notbatman
Legendary
*
Offline Offline

Activity: 1050



View Profile
November 11, 2015, 10:04:51 PM
 #13740

Forgive me if I'm wrong, but is that not what you supply as an argument to the python command? I recall doing:  python ./run_p2pool.py

For Linux systems, run_p2pool.py is marked executable and has a Python shebang, so you can directly run it.

notbatman: P2Pool tries to obtain its version number by executing git and, if that fails, examining the name of the directory it's in. However, neither of those worked on your system, so it just used the (hex-encoded) name of the directory it's in. It's not a problem.

Ahh, that explains it. I don't have the command line git installed on this box. It's Windows 10 with just the git GUI for MinGW/MSYS.  Cheesy

Correction:

I do have it, just not in the path.

Anyways thanks for the info.

Correction:

It is in the path but, um I dunno WTF, it's Windows and the git GUI works!
Pages: « 1 ... 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 [687] 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 ... 744 »
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!