Pages:
Author

Topic: [Bounty Done] Update bitcoind build script for v0.6.3 on Centos 32-bit & 64-bit (Read 3927 times)

legendary
Activity: 1498
Merit: 1000
Apparently not.

I have 512mb and some burst memory on this vps how is that not enough?
legendary
Activity: 906
Merit: 1002
rapeghost LEGENDARY work!!!

It felt like the installation on windows, one click and asked for the configuration during setup, the rest complete automatic.
hero member
Activity: 588
Merit: 500
Oh, I see you paid out the bounty. As I said previously, I've now published a complete repo where everything actually works and is reasonably secure. Oh well, maybe next time...
sr. member
Activity: 419
Merit: 250
legendary
Activity: 1102
Merit: 1014
[bitcoin-compile] OpenSSL: Not found, building.. OpenSSL failed to compile.

i keep getting this error in centos 5.8 Final

Did you install the things from the yum line in my previous post?

What happens if you go into ./Bitcoin/Libraries/openssl-1.0.0g and do the following? Post it here.

Code:
make -j2
legendary
Activity: 1102
Merit: 1014
I've tested the latest version of the script on Centos 5.7 x86 and 6.3 x64 and both worked great. rapeghost even added in some handy post-compile configuration stuff.

On 6.3 it was required to run the following before the shell script:

yum install make gcc-c++ zlib-devel zlib zlib-static

rapeghost, post your address and I'll send the bounty. Thanks for your work!

Edit: Sent!
sr. member
Activity: 419
Merit: 250
The script has been updated and confirmed working on both CentOS 6 + 5:


[bitcoin@centos-dev ~]$ bash bit*
[bitcoin-compile] Running initialization checks.. CentOS 5 detected.. static binary DISABLED.. DONE
[bitcoin-compile] Boost: Found.
[bitcoin-compile] OpenSSL: Found.
[bitcoin-compile] Berkeley DB: Found.
[bitcoin-compile] Bitcoind: Building.. DONE..
-rwxrwxr-x 1 bitcoin bitcoin 4.6M Aug 16 09:17 bitcoind
[configure] would you like to configure your bitcoind now? (y/n)

Same location, http://www.firenzee.com/bitcoin-centos.sh

I dont think I need to say this but DO NOT RUN THIS OR ANYTHING YOU GET ON THE INTERNET AS root.
sr. member
Activity: 419
Merit: 250
ill look at it later then i guess
sr. member
Activity: 419
Merit: 250
Im on CentOS 5.7 and all I get is "FATAL: install glibc-static"... so I checked and it seems that there are only RPMs for CentOS 6 :/
Do you perhaps have an fix for this?

Same in CentOS 5.8.  Yum does not know a package named glibc-static, rpmfind.net only knows it for CentOS 6 with version 2.12 compared to version 2.5 of regular glibc installed on 5.8.

I was told it needed to work in CentOS 6... so it does.
legendary
Activity: 1102
Merit: 1014
I've not had a chance to test this and would prefer not to have to setup a Centos 6 vm to do so. Can I get confirmation from someone besides rapeghost that it works?
kjj
legendary
Activity: 1302
Merit: 1026
Im on CentOS 5.7 and all I get is "FATAL: install glibc-static"... so I checked and it seems that there are only RPMs for CentOS 6 :/
Do you perhaps have an fix for this?

Same in CentOS 5.8.  Yum does not know a package named glibc-static, rpmfind.net only knows it for CentOS 6 with version 2.12 compared to version 2.5 of regular glibc installed on 5.8.
legendary
Activity: 906
Merit: 1002
Im on CentOS 5.7 and all I get is "FATAL: install glibc-static"... so I checked and it seems that there are only RPMs for CentOS 6 :/
Do you perhaps have an fix for this?
sr. member
Activity: 419
Merit: 250
I couldn't help myself... So I continued to work on it:

[bitcoin@bit-dev ~]$ ./bitcoin-centos.sh
[bitcoin-compile] Running initialization checks.. DONE
[bitcoin-compile] Boost: Found.
[bitcoin-compile] OpenSSL: Found.
[bitcoin-compile] Berkeley DB: Found.
[bitcoin-compile] Bitcoind: Building.. DONE..
-rwxrwxr-x 1 bitcoin bitcoin 5.9M Aug 14 13:54 bitcoind
[configure] would you like to configure your bitcoind now? (y/n) y
bitcoind username [bitcoinrpc]:
bitcoind password [password or random(default)]:
bitcoind port [8332]:
allowed ips [127.0.0.1]:
do you want to download a snapshot of the blockchain via http? (y/n): y
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
 10 2457M   10  245M    0     0  9755k      0  0:04:17  0:00:25  0:03:52 11.1M

It configures its self, downloads a snapshot from eu1.bitcoincharts.com and then it starts. Pretty much the 1 stop script for getting up and running on CentOS

Newest version is still the URL listed before.

Signature: 55531a988a1c5d1eccadc67156961fcf  bitcoin-centos.sh
sr. member
Activity: 419
Merit: 250
Ok, it's good enough.

http://www.firenzee.com/bitcoin-centos.sh -- Script (signature: 76e11171314ba4450befdb348f37c43b  bitcoin-centos.sh, size 7.5KB)
http://www.firenzee.com/bitcoin-centos-static.gz (decompressed signature: 286a396a0bf0b3bfb51ed61c53a3446f  bitcoin-centos-static, size 5.9MB)

Notes & Features

This was tested on a CentOS-6.3 Final machine and worked fine.. Please make sure you install gcc-c++ and the basic devel environment.

The script has resume support, meaning if you get through 2 steps and the 3rd fails, you can fix that issue and not have to start from the beginning.
makefile.new is no longer needed

If you have crashing issues.. you might want to try disabling the default hardening features defined during compile.

Enjoy and report critical bugs...

Cordially yours
the electronic rap ghost (james @ bitvps.com)
sr. member
Activity: 419
Merit: 250
I've completed this task.

[bitcoin@bit-dev ~]$ bash centos*
[bitcoin-compile] Running initialization checks.. DONE
[bitcoin-compile] Boost: Not found, building.. DONE.. Found.
[bitcoin-compile] OpenSSL: Not found, building.. DONE.. Found.
[bitcoin-compile] Berkeley DB: Not found, building.. DONE.. Found.
[bitcoin-compile] Bitcoind: Building.. DONE..
`bitcoind' -> `/home/bitcoin/bitcoind'
-rwxrwxr-x 1 bitcoin bitcoin 5.9M Aug 14 11:45 bitcoind

[bitcoin@bit-dev ~]$ cat /etc/centos-release
CentOS release 6.3 (Final)

I'm cleaning it up a bit and I will post the URL to this thread.
hero member
Activity: 489
Merit: 500
Still no luck building.  Huh
legendary
Activity: 906
Merit: 1002
Doubled the bounty. added another 4 BTC

Transaction: 448fea614b895763733f4279518a501c16c4bc1cfdcd2f782457880501b33684
hero member
Activity: 489
Merit: 500
The issue with the present centOS makefile, located at https://github.com/weex/bitcoind-centos is that upon running make there is a boost error as follows:

Code:
obj/noui.o: In function `__static_initialization_and_destruction_0':
/usr/include/boost/system/error_code.hpp:208: undefined reference to `boost::system::get_system_category()'
/usr/include/boost/system/error_code.hpp:209: undefined reference to `boost::system::get_generic_category()'
/usr/include/boost/system/error_code.hpp:214: undefined reference to `boost::system::get_generic_category()'
/usr/include/boost/system/error_code.hpp:215: undefined reference to `boost::system::get_generic_category()'
/usr/include/boost/system/error_code.hpp:216: undefined reference to `boost::system::get_system_category()'
collect2: ld returned 1 exit status
make: *** [bitcoind] Error 1

hero member
Activity: 588
Merit: 500
I have a working build of bitcoind and bitcoin-qt 0.6.3 on EL6.3 (and clones like CentOS). I will be releasing it as soon as I've finished the SELinux work, probably in the next week or so.
hero member
Activity: 489
Merit: 500
Thanks weex, it would be nice to get a working makefile so I can stop seeing:

Code:
segfault at 0 ip 00000000007c0b90
every time I run bitcoin!
Pages:
Jump to: