Bitcoin Forum
May 09, 2024, 10:54:19 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: [Bounty Done] Update bitcoind build script for v0.6.3 on Centos 32-bit & 64-bit  (Read 3903 times)
weex (OP)
Legendary
*
Offline Offline

Activity: 1102
Merit: 1014



View Profile
August 05, 2012, 07:33:10 AM
Last edit: August 16, 2012, 06:48:04 PM by weex
 #1

Hello,

This bounty is to update this build script ( https://github.com/weex/bitcoind-centos ) to work with the latest stable release of bitcoind.

The bounty is starting at 0.5 BTC courtesy of bytedisorder. If you'd like to add funds to the bounty send them to 1LFGFxfBjduLN3iYQ6JZPHDty6tT4kNuS1.

Edit: Thanks to Eisenhower34 and an anonymous contributor, the bounty is up to 8 BTC.

Edit2: The bounty was won by rapeghost.

Thanks!

-weex
Even in the event that an attacker gains more than 50% of the network's computational power, only transactions sent by the attacker could be reversed or double-spent. The network would not be destroyed.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
bytedisorder
Hero Member
*****
Offline Offline

Activity: 489
Merit: 500



View Profile WWW
August 06, 2012, 12:36:05 AM
 #2

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!
error
Hero Member
*****
Offline Offline

Activity: 588
Merit: 500



View Profile
August 06, 2012, 01:26:39 AM
 #3

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.

3KzNGwzRZ6SimWuFAgh4TnXzHpruHMZmV8
bytedisorder
Hero Member
*****
Offline Offline

Activity: 489
Merit: 500



View Profile WWW
August 06, 2012, 03:00:22 AM
 #4

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

Eisenhower34
Legendary
*
Offline Offline

Activity: 906
Merit: 1002



View Profile
August 08, 2012, 07:33:26 PM
 #5

Doubled the bounty. added another 4 BTC

Transaction: 448fea614b895763733f4279518a501c16c4bc1cfdcd2f782457880501b33684
bytedisorder
Hero Member
*****
Offline Offline

Activity: 489
Merit: 500



View Profile WWW
August 12, 2012, 05:46:56 AM
 #6

Still no luck building.  Huh
rapeghost
Sr. Member
****
Offline Offline

Activity: 419
Merit: 250



View Profile
August 14, 2012, 07:46:50 AM
 #7

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.
rapeghost
Sr. Member
****
Offline Offline

Activity: 419
Merit: 250



View Profile
August 14, 2012, 07:59:31 AM
 #8

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)
rapeghost
Sr. Member
****
Offline Offline

Activity: 419
Merit: 250



View Profile
August 14, 2012, 09:57:42 AM
 #9

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
Eisenhower34
Legendary
*
Offline Offline

Activity: 906
Merit: 1002



View Profile
August 14, 2012, 12:36:14 PM
 #10

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?
kjj
Legendary
*
Offline Offline

Activity: 1302
Merit: 1025



View Profile
August 14, 2012, 04:25:03 PM
 #11

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.

17Np17BSrpnHCZ2pgtiMNnhjnsWJ2TMqq8
I routinely ignore posters with paid advertising in their sigs.  You should too.
weex (OP)
Legendary
*
Offline Offline

Activity: 1102
Merit: 1014



View Profile
August 14, 2012, 06:55:28 PM
 #12

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?
rapeghost
Sr. Member
****
Offline Offline

Activity: 419
Merit: 250



View Profile
August 14, 2012, 08:16:05 PM
 #13

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.
rapeghost
Sr. Member
****
Offline Offline

Activity: 419
Merit: 250



View Profile
August 14, 2012, 08:17:24 PM
 #14

ill look at it later then i guess
rapeghost
Sr. Member
****
Offline Offline

Activity: 419
Merit: 250



View Profile
August 16, 2012, 05:25:47 AM
 #15

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.
weex (OP)
Legendary
*
Offline Offline

Activity: 1102
Merit: 1014



View Profile
August 16, 2012, 10:03:13 AM
Last edit: August 16, 2012, 06:48:31 PM by weex
 #16

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!
weex (OP)
Legendary
*
Offline Offline

Activity: 1102
Merit: 1014



View Profile
August 17, 2012, 09:57:56 AM
 #17

[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
rapeghost
Sr. Member
****
Offline Offline

Activity: 419
Merit: 250



View Profile
August 18, 2012, 09:28:10 PM
 #18

Apparently not.
error
Hero Member
*****
Offline Offline

Activity: 588
Merit: 500



View Profile
August 23, 2012, 05:05:39 AM
 #19

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...

3KzNGwzRZ6SimWuFAgh4TnXzHpruHMZmV8
Eisenhower34
Legendary
*
Offline Offline

Activity: 906
Merit: 1002



View Profile
August 25, 2012, 01:15:54 PM
Last edit: August 25, 2012, 01:41:10 PM by Eisenhower34
 #20

rapeghost LEGENDARY work!!!

It felt like the installation on windows, one click and asked for the configuration during setup, the rest complete automatic.
Pages: [1]
  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!