Bitcoin Forum
April 23, 2024, 08:06:49 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: « 1 2 [3]  All
  Print  
Author Topic: Bitcoind x86 binary for CentOS  (Read 18288 times)
Furyan
Full Member
***
Offline Offline

Activity: 175
Merit: 100



View Profile
July 16, 2011, 08:38:57 PM
 #41

Hi, I guess there's still a need for precompiled binaries on CentOS (32 bits) for bitcoin or at least bitcoind.

When I run the one provided by bitcoin 0.3.24, I get the following errors:

Quote
./bitcoind: /usr/lib/libstdc++.so.6: version `GLIBCXX_3.4.11' not found (required by ./bitcoind)
./bitcoind: /usr/lib/libstdc++.so.6: version `GLIBCXX_3.4.9' not found (required by ./bitcoind)
./bitcoind: /lib/libc.so.6: version `GLIBC_2.7' not found (required by ./bitcoind)
./bitcoind: /lib/libc.so.6: version `GLIBC_2.11' not found (required by ./bitcoind)

Any clue on how to get it working?

Yep, I run into this too.  Problem is that CentOS is built against glibc <= 2.5.  No way to update to later, your OS wouldn't work.

knightmb has a share of CentOS builds but his latest is 0.3.12 - much older than the current 0.3.24.  I can't figure out how to get it to build, there are too many problems in the dependency tree.

knightmb, can you post post how you got this to build?  I am willing to take up the torch of keeping up to date CentOS builds, if you can give me a kick start.


Scratch that, I got it.

Happy to help others, but the instructions are a little long to take the time to post here for now.
"This isn't the kind of software where we can leave so many unresolved bugs that we need a tracker for them." -- Satoshi
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
ssaCEO
Hero Member
*****
Offline Offline

Activity: 568
Merit: 500



View Profile WWW
July 17, 2011, 12:17:07 AM
 #42

We had to build our own Bitcoin 0.3.22 binary for CentOS 5.5 a few weeks ago, for our casino's entry into the bitcoin market (which is imminent  Grin). I don't mind sharing it, as I sure as hell wouldn't ever want to do it again. There were some instructions for a makefile floating around the web; they were basically wrong. Anyway, I did get it figured out; I put up a tarball here of just the binary. To use this, basically place it in your web hierarchy (outside the public directory) and run it. It'll create a .bitcoin directory in the root directory of the user that runs it. You'll then need to put a bitcoin.conf file into that before properly using it:

https://strikesapphire.com/bitcoind.0.3.22.bin.tar.gz   -----Small, works wonders, though already slightly outdated  Undecided

And now here's a tarball with everything you would need to build it:

https://strikesapphire.com/bitcoin.all.centos55.tar.gz      ----Warning: 165 Mb.

The "everything" file is pretty big. It includes a working bitcoind binary, as well as a proper CentOS makefile under Trunk/ and also builds of BerkeleyDB, boost and openSSL which have to be available if you want to use the makefile to compile a newer version. Should be plug and play to throw a new version at it, but please don't ask me how to do anything with this. It took a whole bunch of hours hacking away at it until it worked, and frankly, I was kind of wasted and don't remember what I did or didn't do. Nor was it fun. I'm hoping the BTC crew will offer a working CentOS distribution for future releases to make life easy on people who just want to use it, not fuxor around with some dude's broken PDF makefile for 6 hours. A lot of people with shopping carts run CentOS-based systems.

Just a warning about 0.3.22 on CentOS: If you run it for two weeks, you'll find it sucking up about 25% of your system memory. Just kill it and restart. There's a leak in there somewhere.

Furyan
Full Member
***
Offline Offline

Activity: 175
Merit: 100



View Profile
July 17, 2011, 02:02:13 AM
 #43

It took a whole bunch of hours hacking away at it until it worked, and frankly, I was kind of wasted and don't remember what I did or didn't do.

Yep. I just stored a copy of the command history and will clean it up later. Might make an installer script to make things easy.

Just a warning about 0.3.22 on CentOS: If you run it for two weeks, you'll find it sucking up about 25% of your system memory. Just kill it and restart. There's a leak in there somewhere.

Running 0.3.25 straight from git... will let you know if I see any leaks.

Thanks for posting the binary - will certainly help others get up and running faster.  This was certainly a journey.
error
Hero Member
*****
Offline Offline

Activity: 588
Merit: 500



View Profile
July 17, 2011, 03:18:35 AM
 #44

I'm in the middle of making a "proper" CentOS build, including all necessary dependencies. Once complete it will be in a proper yum repository so you can just yum install and yum update it like everything else on your system. As several people have noted, it's harder than it looks, and combined with the necessity of keeping it separated from the existing system libraries and packaged for distribution in a yum repository, it's going slower than I would like. But once I'm done with this pass it will be about 95% automated, (the manual part being downloading the new source code from SF) so I can have new versions of Bitcoin out within hours of their official release.

3KzNGwzRZ6SimWuFAgh4TnXzHpruHMZmV8
senseless
Hero Member
*****
Offline Offline

Activity: 1118
Merit: 541



View Profile
July 18, 2011, 05:50:26 AM
 #45


I already uploaded my CentOS 5.6 x86_64 0.3.24 static build to the following thread.

http://forum.bitcoin.org/index.php?topic=27352.0

I've got the environment for it now so I was going to continue to release 5.6 x86_64 static builds as new stable versions are released.




sergio
Sr. Member
****
Offline Offline

Activity: 313
Merit: 258


View Profile WWW
July 20, 2011, 12:18:24 AM
 #46

An easy way around the problem is compile bitcoind under debian statically, and then it will run under Cent OS without problems.
However that is easy for the command line version, it is very difficult for the gui.
To get it to compile statically you have to make sure that under debian you have installed the developer libraries, most of those libraries are not installed by default, under ubuntu it is the same as debian.
By developer library I mean those libraries that end in .a for example libxxx.a, the ones that en in .so are runtime libraries.


Pages: « 1 2 [3]  All
  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!