Author

Topic: Installing dependencies on CentOS (Read 871 times)

newbie
Activity: 17
Merit: 0
December 06, 2013, 05:22:12 PM
#8
the correct path where the file should be (x86_64 rpm which is installed) is /usr/lib64, could this be the problem?
member
Activity: 79
Merit: 10
I was hacked. Sorry for any scam that occured.
December 06, 2013, 04:46:28 PM
#7
is the package db4-cxx installed? you can verify with:

Code:
rpm -qa | grep cxx

if not install this package using yum.

Code:
root@host [~]# rpm -qa | grep cxx
db4-cxx-4.7.25-18.el6_4.x86_64

It is installed!
newbie
Activity: 17
Merit: 0
December 06, 2013, 04:40:09 PM
#6
is the package db4-cxx installed? you can verify with:

Code:
rpm -qa | grep cxx

if not install this package using yum.
member
Activity: 79
Merit: 10
I was hacked. Sorry for any scam that occured.
December 06, 2013, 04:34:26 PM
#5
Code:
root@host [~/datacoin/datacoin-master/src]# make -f makefile.my
/bin/sh ../share/genbuild.sh obj/build.h
which: no git in (/usr/local/jdk/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/bin:/usr/X11R6/bin:/root/bin)
g++ -O2 -pthread -Wall -Wextra -Wformat -Wformat-security -Wno-unused-parameter -g -DBOOST_SPIRIT_THREADSAFE -D_FILE_OFFSET_BITS=64 -I/root/datacoin/datacoin-master/src -I/root/datacoin/datacoin-master/src/obj -I/usr/local/include -DUSE_UPNP=0 -DUSE_IPV6=1 -I/root/datacoin/datacoin-master/src/leveldb/include -I/root/datacoin/datacoin-master/src/leveldb/helpers -DHAVE_BUILD_INFO -fno-stack-protector -fstack-protector-all -Wstack-protector -D_FORTIFY_SOURCE=2  -o datacoind leveldb/libleveldb.a obj/alert.o obj/version.o obj/checkpoints.o obj/netbase.o obj/addrman.o obj/crypter.o obj/key.o obj/db.o obj/init.o obj/keystore.o obj/main.o obj/net.o obj/protocol.o obj/bitcoinrpc.o obj/rpcdump.o obj/rpcnet.o obj/rpcmining.o obj/rpcwallet.o obj/rpcblockchain.o obj/rpcrawtransaction.o obj/script.o obj/sync.o obj/util.o obj/wallet.o obj/walletdb.o obj/hash.o obj/bloom.o obj/noui.o obj/leveldb.o obj/txdb.o obj/prime.o obj/checkpointsync.o -Wl,-z,relro -Wl,-z,now -Wl,-rpath,/usr/local/lib  -L/usr/lib -Wl,-Bstatic -l boost_system -l boost_filesystem -l boost_program_options -l boost_thread -L/usr/lib -l db_cxx -l ssl -l crypto -l miniupnpc -Wl,-Bdynamic -l z -l dl -l pthread /root/datacoin/datacoin-master/src/leveldb/libleveldb.a /root/datacoin/datacoin-master/src/leveldb/libmemenv.a
/usr/bin/ld: cannot find -ldb_cxx
collect2: ld returned 1 exit status
make: *** [datacoind] Error 1

Makefile.my is copy of makefile.unix, it just adds some OpenSSL paths
Makefile.unix returns the same error

ld -l db_cxx returns:
Code:
root@host [~/datacoin/datacoin-master/src]# ld -l db_cxx
ld: warning: cannot find entry symbol _start; not setting start address
newbie
Activity: 17
Merit: 0
December 06, 2013, 04:30:45 PM
#4
Please post the error you encounter.
member
Activity: 79
Merit: 10
I was hacked. Sorry for any scam that occured.
December 06, 2013, 04:27:05 PM
#3
Build with:
Code:
make -f makefile.unix BOOST_LIB_SUFFIX=-mt
this should resolve your linking issue. Let me know if you need further help, i build it for myself on rhel 6.4 today.

Boost library works, but BerkeleyDB doesn't work. And i can't find where yum installs the files
newbie
Activity: 17
Merit: 0
December 06, 2013, 04:23:44 PM
#2
Build with:
Code:
make -f makefile.unix BOOST_LIB_SUFFIX=-mt
this should resolve your linking issue. Let me know if you need further help, i build it for myself on rhel 6.4 today.
member
Activity: 79
Merit: 10
I was hacked. Sorry for any scam that occured.
December 06, 2013, 03:55:59 PM
#1
Hello!
I need a bit help here with CentOS.
I need to build datacoin on CentOS, i install all of the dependencies using yum, but it doesn't set any paths, so make can still not detect it, so i decided to build from source. I built Boost lib, it worked great, before it showed libboost errors, but now it says db_cxx is missing, i know its BerkeleyDB, i also built that from source. I saw it was installed in /usr/lib, so i added this to the make string:

Code:
-L/usr/lib

I tried: ld -L/usr/lib -l db_cxx

It works, but when i use make it won't detect, any ideas how i can fix it?

I am not familiar with CentOS
Jump to: