Pages:
Author

Topic: Building under CentOS/RHEL 5: what a nightmare!!! (solved) (Read 15049 times)

full member
Activity: 175
Merit: 102

This works, with one exception - I would not recommend using the CVS Trunk to build bitcoind. Two reasons:

1. It contains code that may or may not have been completed tested/vetted yet - you're on your own if you find issues or instabilities.
2. You won't be able to pull in patches that people post because code tends to move around from version to version.

Just use the current release and everything else should work fine.
full member
Activity: 142
Merit: 100
Take the RPM Package from this location:
http://blog.shade.sh/

wget http://files.shade.sh/bitcoin-20110628-git.x86_64.rpm
rpm -i bitcoin-20110628-git.x86_64.rpm

Couldn't be more easy Smiley
full member
Activity: 175
Merit: 102
I have built 0.3.24 on CentOS 5.5 which should be based on the same RHEL version as Fedora 15 (I am sure there must be differences though).

As noted by the PDF directions, you have to build the dependencies yourself:

* Boost
* OpenSSL
* BerkeleyDB

Only then will bitcoind build properly.  The makefile that pent posted looks correct to me; make sure you use tabs there, not spaces.

I did not try to build the bitcoin gui. No need, all I cared about was bitcoind.  For the GUI I use Windows so I can use the distribution available at bitcoin.org.
hero member
Activity: 490
Merit: 500
http://pastebin.com/rFbZ9zMn

makefile.centos for 0.3.24 build

USAGE:
make -f makefile.centos bitcoind
legendary
Activity: 3920
Merit: 2349
Eadem mutata resurgo

I assume they work but we've been warned not to trust any binaries by the developers ... so ... the question really is has anyone actually built 0.3.24 on fedora 15 and what were the issues?

Seems like every release throws up some more fun for RH derivative systems, can't really say it is stabilising.
legendary
Activity: 3920
Merit: 2349
Eadem mutata resurgo
Have you tried official binaries for Fedora 15?
Which ones?
hero member
Activity: 490
Merit: 500
Have you tried official binaries for Fedora 15?
legendary
Activity: 3920
Merit: 2349
Eadem mutata resurgo

Anybody had much success with Fedora 15 yet?

I got a bitcoind built but had to include

Code:
-DBOOST_FILESYSTEM_VERSION=2

in the "DEFS=" of the makefile ..... boost_1_46_1 is VERSION=3 ??

But then for the bitcoin wxwidgets is not happy even with special version built locally for it ... gave up in disgust at this point.

The RH derivative bitcoin dependency nightmare continues ....
hero member
Activity: 490
Merit: 500
Centos makefile for current git (edit DEPSDIR)

http://pastebin.com/0NqaYcsR

And yes, you need glib2-devel
newbie
Activity: 9
Merit: 0
Not sure where to get it. Not sure what it does, even. Good grief, this is complicated.

Code:
yum install glib2-devel
newbie
Activity: 1
Merit: 0
Urffff... so close as well, and I really want to get this working:

Code:
cannot find -lgthread-2.0

CentOS 5.6, 32-bit i686. No gthread in /usr/lib/pkgconfig/

Not sure where to get it. Not sure what it does, even. Good grief, this is complicated.
newbie
Activity: 1
Merit: 0
hi

I followed the entire procedure but compilation of bitcoind ends with:

Code:
make: *** No rule to make target `obj/nogui/util.o', needed by `bitcoind'.  Stop.

any suggestions?
newbie
Activity: 2
Merit: 0
There we go - Minor update to the manual due to problems with tabs in the Makefile.

http://www.staff.tugraz.at/michael.steurer/Bitcoin-CentOS5.5-V3.pdf

Regards
  Michael

EDIT: Removed sha256 from makefile. changed "prefix" for boost installation.
hero member
Activity: 714
Merit: 500
I had the same problem last time I tried building bitcoind under CentOS. The problem is that when you copy and paste the makefile from laszlo's manual, spaces get inserted at the beginning of indented lines instead of tabs. Make sure the line in question is indented with a tab character and not spaces. Make cares about that stuff.
newbie
Activity: 32
Merit: 0
Hi everyone.
Please see a modified and updated version of laszlo's manual. Should work with Bitcoin 0.3.20.

http://www.staff.tugraz.at/michael.steurer/Bitcoin-CentOS5.5-V1.pdf

Many regards
  Michael

Hi, Michael!

Thank you for your manual! But after command

  make -f makefile.centos bitcoind

I have received:

make: wx-config: Command not found
makefile.centos:60: *** missing separator.  Stop.

In my makefile.centos string N 60 is

$(CXX) -c $(CXXFLAGS) $(WXINCLUDEPATHS) -DGUI -o $@ $<

Could anyone help me, please?

P.S. BTW, there are some mistakes with paths on "2 Libraries" stage in the manual . Configure scripts process --prefix=~/Bitcoin/Deps directive in different ways and make directories like Deps/~/Bitcoin/Deps and etc.
newbie
Activity: 2
Merit: 0
Hi everyone.
Please see a modified and updated version of laszlo's manual. Should work with Bitcoin 0.3.20.

http://www.staff.tugraz.at/michael.steurer/Bitcoin-CentOS5.5-V1.pdf

Many regards
  Michael
member
Activity: 71
Merit: 10
I'm using Centos 5.5 x86_64. When I tried to execute pre-compiled file "bitcoind 0.3.19" i got message:
"./bitcoind: /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.9' not found (required by ./bitcoind)
./bitcoind: /lib64/libc.so.6: version `GLIBC_2.7' not found (required by ./bitcoind)"
Then I tried to compile it from source with openssl ver. 0.9.8o; db-4.8.30; boost_1_43_0.
bitcoind started normal but when I try to use option "generate" bitcoind crushed with debug.log:
"Starting 1 BitcoinMiner threads
ThreadIRCSeed started
ThreadOpenConnections started
ThreadSocketHandler started
ThreadMessageHandler started
BitcoinMiner started"

version 0.3.12 worked properly.

Any ideas?
sr. member
Activity: 252
Merit: 250
Binary at http://distros.globaltap.com/bitcoin/Centos5-x86_64/bitcoind is very old. Any chance for a newer CentOS 5 x86_64 bitcoind binary?
Pages:
Jump to: