Pages:
Author

Topic: Bitcoind on CentOS 5.6 64bit ($50 bounty) - page 2. (Read 2995 times)

legendary
Activity: 1498
Merit: 1000
August 04, 2012, 05:03:30 PM
#8
$50 bounty added ... (please make explanations understandable, im a noob when it comes to server management)

you could try making a bounty on Rugatu and see how it goes  Roll Eyes

don't put it on rugatu otherwise your bitcoins will be send with out your consent

Code:
apt-get install glibc
Reading Package Lists... Done
Building Dependency Tree... Done
glibc is already the newest version.
0 upgraded, 0 newly installed, 0 removed and 1 not upgraded.

its already installed ...

you then need to check to make sure that the compiler can see it and it is linked correctly

legendary
Activity: 906
Merit: 1002
August 04, 2012, 04:56:24 PM
#7
Code:
apt-get install glibc
Reading Package Lists... Done
Building Dependency Tree... Done
glibc is already the newest version.
0 upgraded, 0 newly installed, 0 removed and 1 not upgraded.

its already installed ...

Btw I only need the bitcoind to fund the user accounts according to the payment they made. the actual wallet with the private key will be saved on another machine.
legendary
Activity: 1498
Merit: 1000
August 04, 2012, 04:50:15 PM
#6
Getting this :/

Code:
make -f makefile.new bitcoind
g++ -pthread -Wextra -Wno-sign-compare -Wno-char-subscripts -Wno-invalid-offsetof -Wformat-security -g -DNOPCH -I/home/bitcoin/Bitcoin/Libraries/bitcoin-master/src -DUSE_SSL -fno-stack-protector -fstack-protector-all -Wstack-protector -Wl,-z,relro -Wl,-z,now -D_FORTIFY_SOURCE=2 -O2 -I"/home/bitcoin/Bitcoin/Deps/include" -static -o bitcoind obj/checkpoints.o obj/version.o obj/addrman.o obj/netbase.o obj/crypter.o obj/key.o obj/db.o obj/init.o obj/irc.o obj/keystore.o obj/main.o obj/net.o obj/protocol.o obj/bitcoinrpc.o obj/rpcdump.o obj/script.o obj/util.o obj/wallet.o obj/walletdb.o obj/noui.o   -Wl,-Bstatic -mtl /home/bitcoin/Bitcoin/Deps/lib/libboost_system.a -mtl /home/bitcoin/Bitcoin/Deps/lib/libboost_filesystem.a -mtl /home/bitcoin/Bitcoin/Deps/lib/libboost_program_options.a -mtl /home/bitcoin/Bitcoin/Deps/lib/libboost_thread.a /home/bitcoin/Bitcoin/Deps/lib/libdb_cxx.a -mtl /home/bitcoin/Bitcoin/Deps/lib/libssl.a -mtl /home/bitcoin/Bitcoin/Deps/lib/libcrypto.a -lgcc -Wl,-Bstatic -l z -l dl -l pthread
/home/bitcoin/Bitcoin/Deps/lib/libcrypto.a(dso_dlfcn.o): In function `dlfcn_globallookup':
dso_dlfcn.c:(.text+0x30): warning: Using 'dlopen' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
obj/netbase.o: In function `LookupIntern':
/home/bitcoin/Bitcoin/Libraries/bitcoin-master/src/netbase.cpp:90: warning: Using 'getaddrinfo' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
obj/bitcoinrpc.o: In function `__static_initialization_and_destruction_0':
/home/bitcoin/Bitcoin/Libraries/bitcoin-master/src/bitcoinrpc.cpp:2141: undefined reference to `getconnectioncount(std::vector, std::allocator > > >, std::allocator, std::allocator > > > > > const&, bool)'
/home/bitcoin/Bitcoin/Libraries/bitcoin-master/src/bitcoinrpc.cpp:2141: undefined reference to `getpeerinfo(std::vector, std::allocator > > >, std::allocator, std::allocator > > > > > const&, bool)'
/home/bitcoin/Bitcoin/Libraries/bitcoin-master/src/bitcoinrpc.cpp:2141: undefined reference to `listunspent(std::vector, std::allocator > > >, std::allocator, std::allocator > > > > > const&, bool)'
/home/bitcoin/Bitcoin/Libraries/bitcoin-master/src/bitcoinrpc.cpp:2141: undefined reference to `getrawtransaction(std::vector, std::allocator > > >, std::allocator, std::allocator > > > > > const&, bool)'
/home/bitcoin/Bitcoin/Libraries/bitcoin-master/src/bitcoinrpc.cpp:2141: undefined reference to `createrawtransaction(std::vector, std::allocator > > >, std::allocator, std::allocator > > > > > const&, bool)'
/home/bitcoin/Bitcoin/Libraries/bitcoin-master/src/bitcoinrpc.cpp:2141: undefined reference to `decoderawtransaction(std::vector, std::allocator > > >, std::allocator, std::allocator > > > > > const&, bool)'
/home/bitcoin/Bitcoin/Libraries/bitcoin-master/src/bitcoinrpc.cpp:2141: undefined reference to `signrawtransaction(std::vector, std::allocator > > >, std::allocator, std::allocator > > > > > const&, bool)'
/home/bitcoin/Bitcoin/Libraries/bitcoin-master/src/bitcoinrpc.cpp:2141: undefined reference to `sendrawtransaction(std::vector, std::allocator > > >, std::allocator, std::allocator > > > > > const&, bool)'
collect2: ld returned 1 exit status
make: *** [bitcoind] Error 1

you don't have all the dependencies installed, you need to install glibc and try again


My suggestion is to not run bitcoind and to rely on a web wallet that has API calls similar to bitcoind such as blockchain.info

https://blockchain.info/json_rpc_api

1MANTisca9kS6t4bngzuU4GBgE1S1L7q2U

THAT IS EVEN WORST THAN RUNNING AN UNSECURED BITCOIND
member
Activity: 98
Merit: 10
(:firstbits => "1mantis")
August 04, 2012, 04:46:20 PM
#5
My suggestion is to not run bitcoind and to rely on a web wallet that has API calls similar to bitcoind such as blockchain.info

https://blockchain.info/json_rpc_api

1MANTisca9kS6t4bngzuU4GBgE1S1L7q2U
legendary
Activity: 906
Merit: 1002
August 04, 2012, 04:44:23 PM
#4
Getting this :/

Code:
make -f makefile.new bitcoind
g++ -pthread -Wextra -Wno-sign-compare -Wno-char-subscripts -Wno-invalid-offsetof -Wformat-security -g -DNOPCH -I/home/bitcoin/Bitcoin/Libraries/bitcoin-master/src -DUSE_SSL -fno-stack-protector -fstack-protector-all -Wstack-protector -Wl,-z,relro -Wl,-z,now -D_FORTIFY_SOURCE=2 -O2 -I"/home/bitcoin/Bitcoin/Deps/include" -static -o bitcoind obj/checkpoints.o obj/version.o obj/addrman.o obj/netbase.o obj/crypter.o obj/key.o obj/db.o obj/init.o obj/irc.o obj/keystore.o obj/main.o obj/net.o obj/protocol.o obj/bitcoinrpc.o obj/rpcdump.o obj/script.o obj/util.o obj/wallet.o obj/walletdb.o obj/noui.o   -Wl,-Bstatic -mtl /home/bitcoin/Bitcoin/Deps/lib/libboost_system.a -mtl /home/bitcoin/Bitcoin/Deps/lib/libboost_filesystem.a -mtl /home/bitcoin/Bitcoin/Deps/lib/libboost_program_options.a -mtl /home/bitcoin/Bitcoin/Deps/lib/libboost_thread.a /home/bitcoin/Bitcoin/Deps/lib/libdb_cxx.a -mtl /home/bitcoin/Bitcoin/Deps/lib/libssl.a -mtl /home/bitcoin/Bitcoin/Deps/lib/libcrypto.a -lgcc -Wl,-Bstatic -l z -l dl -l pthread
/home/bitcoin/Bitcoin/Deps/lib/libcrypto.a(dso_dlfcn.o): In function `dlfcn_globallookup':
dso_dlfcn.c:(.text+0x30): warning: Using 'dlopen' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
obj/netbase.o: In function `LookupIntern':
/home/bitcoin/Bitcoin/Libraries/bitcoin-master/src/netbase.cpp:90: warning: Using 'getaddrinfo' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
obj/bitcoinrpc.o: In function `__static_initialization_and_destruction_0':
/home/bitcoin/Bitcoin/Libraries/bitcoin-master/src/bitcoinrpc.cpp:2141: undefined reference to `getconnectioncount(std::vector, std::allocator > > >, std::allocator, std::allocator > > > > > const&, bool)'
/home/bitcoin/Bitcoin/Libraries/bitcoin-master/src/bitcoinrpc.cpp:2141: undefined reference to `getpeerinfo(std::vector, std::allocator > > >, std::allocator, std::allocator > > > > > const&, bool)'
/home/bitcoin/Bitcoin/Libraries/bitcoin-master/src/bitcoinrpc.cpp:2141: undefined reference to `listunspent(std::vector, std::allocator > > >, std::allocator, std::allocator > > > > > const&, bool)'
/home/bitcoin/Bitcoin/Libraries/bitcoin-master/src/bitcoinrpc.cpp:2141: undefined reference to `getrawtransaction(std::vector, std::allocator > > >, std::allocator, std::allocator > > > > > const&, bool)'
/home/bitcoin/Bitcoin/Libraries/bitcoin-master/src/bitcoinrpc.cpp:2141: undefined reference to `createrawtransaction(std::vector, std::allocator > > >, std::allocator, std::allocator > > > > > const&, bool)'
/home/bitcoin/Bitcoin/Libraries/bitcoin-master/src/bitcoinrpc.cpp:2141: undefined reference to `decoderawtransaction(std::vector, std::allocator > > >, std::allocator, std::allocator > > > > > const&, bool)'
/home/bitcoin/Bitcoin/Libraries/bitcoin-master/src/bitcoinrpc.cpp:2141: undefined reference to `signrawtransaction(std::vector, std::allocator > > >, std::allocator, std::allocator > > > > > const&, bool)'
/home/bitcoin/Bitcoin/Libraries/bitcoin-master/src/bitcoinrpc.cpp:2141: undefined reference to `sendrawtransaction(std::vector, std::allocator > > >, std::allocator, std::allocator > > > > > const&, bool)'
collect2: ld returned 1 exit status
make: *** [bitcoind] Error 1
legendary
Activity: 1498
Merit: 1000
August 04, 2012, 02:29:56 PM
#3
$50 bounty added ... (please make explanations understandable, im a noob when it comes to server management)

If your a noob then running a bitcoind isn't for you. I think people running bitcoind should know linux security. Cause you are the same people that complain when your wallet gets hacked and it could have been prevented if you just knew about linux security and how to protect your bitcoind.

btw here is the script that will install it

https://github.com/weex/bitcoind-centos
legendary
Activity: 906
Merit: 1002
August 04, 2012, 02:25:48 PM
#2
$50 bounty added ... (please make explanations understandable, im a noob when it comes to server management)
legendary
Activity: 906
Merit: 1002
August 02, 2012, 07:56:58 PM
#1
trying now the whole day to get the bitcoind running on my CentOS 5.6 server but without success.


I found this

http://www.staff.tugraz.at/michael.steurer/Bitcoin-CentOS5.5-V1.pdf
https://bitcointalk.org/index.php?topic=46329.10

and an rpm http://olea.org/paquetes-rpm/repoview/index.html which didnt work at all. So im trying it manual. Everythings fine till to the last step, where I get with my modified makefile I posted below this funny error:

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

I get the similar error for the other makefile where obj/util.o is the first OBJS saying

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


Just to make sure, the tutorial says

Quote
Create a new fi le ~/Bitcoin/Trunk/makefile.centos and add the lines as follows...

so Im in pwd /root/Bitcoin/Trunk when I call "make -f makefile.centos bitcoind"


Code:
#begin


# Copyright (c) 2009-2010 Satoshi Nakamoto
# Distributed under the MIT/X11 software license, see the accompanying
# file license.txt or http://www.opensource.org/licenses/mit-license.php.


CXX=g++


DEPSDIR=/root/Bitcoin/Deps


INCLUDEPATHS= -I"$(DEPSDIR)/include"
LIBPATHS= -L"$(DEPSDIR)/lib"


WXINCLUDEPATHS=$(shell wx-config --cxxflags)
WXLIBS=$(shell wx-config --libs)


USE_UPNP=


DEFS= -DNOPCH -DFOURWAYSSE2 -DUSE_SSL


LIBS= -dead_strip \
-Wl,-Bstatic \
$(DEPSDIR)/lib/libdb_cxx-5.1.a \
-mtl $(DEPSDIR)/lib/libboost_system.a \
-mtl $(DEPSDIR)/lib/libboost_thread.a \
-mtl $(DEPSDIR)/lib/libboost_filesystem.a \
-mtl $(DEPSDIR)/lib/libboost_program_options.a \
$(DEPSDIR)/lib/libdb_cxx.a \
$(DEPSDIR)/lib/libssl.a \
$(DEPSDIR)/lib/libcrypto.a \
-l ssl \
-l crypto \
-Wl,-Bdynamic \
-l gthread-2.0 \
-l z \
-l dl


ifdef USE_UPNP
LIBS += -l miniupnpc
DEFS += -DUSE_UPNP=$(USE_UPNP)
endif


DEBUGFLAGS=-g -D__WXDEBUG__
CXXFLAGS=-O2 -Wno-invalid-offsetof -Wformat $(DEBUGFLAGS) $(DEFS) $(INCLUDEPATHS)
HEADERS=base58.h \
bignum.h \
crypter.h \
db.h \
headers.h \
init.h \
irc.h \
key.h \
keystore.h \
main.h \
net.h \
noui.h \
protocol.h \
rpc.h \
script.h \
serialize.h \
strlcpy.h \
ui.h \
uibase.h \
uint256.h \
util.h \
wallet.h


OBJS=obj/crypter.o \
obj/db.o \
obj/init.o \
obj/irc.o \
obj/keystore.o \
obj/main.o \
obj/net.o \
obj/protocol.o \
obj/rpc.o \
obj/script.o \
obj/util.o \
obj/wallet.o \
cryptopp/obj/sha.o \
cryptopp/obj/cpu.o


all: bitcoind




obj/%.o: %.cpp $(HEADERS)
$(CXX) -c $(CXXFLAGS) $(WXINCLUDEPATHS) -DGUI -o $@ $<


cryptopp/obj/%.o: cryptopp/%.cpp
$(CXX) -c $(CXXFLAGS) -O3 -o $@ $<


bitcoin: $(OBJS) obj/ui.o obj/uibase.o
$(CXX) $(CXXFLAGS) -o $@ $(LIBPATHS) $^ $(WXLIBS) $(LIBS)


obj/nogui/%.o: %.cpp $(HEADERS)
$(CXX) -c $(CXXFLAGS) -o $@ $<


bitcoind: $(OBJS:eek:bj/%=obj/nogui/%)
$(CXX) $(CXXFLAGS) -o $@ $^ $(LIBS)


clean:
-rm -f obj/*.o
-rm -f obj/nogui/*.o
-rm -f cryptopp/obj/*.o
-rm -f headers.h.gch
-rm -f bitcoin
-rm -f bitcoind


#end

Could anyone help me fixing this? Help is very appreciated!!!

Pages:
Jump to: