Bitcoin Forum
May 10, 2024, 04:13:04 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Installing dependencies on CentOS  (Read 856 times)
mstfck (OP)
Member
**
Offline Offline

Activity: 79
Merit: 10

I was hacked. Sorry for any scam that occured.


View Profile
December 06, 2013, 08: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

I was inactive on this forum and apparently someone got my credentials and used my account in scams.
I have changed the password and I am sorry for any scam that occured.
1715314384
Hero Member
*
Offline Offline

Posts: 1715314384

View Profile Personal Message (Offline)

Ignore
1715314384
Reply with quote  #2

1715314384
Report to moderator
Make sure you back up your wallet regularly! Unlike a bank account, nobody can help you if you lose access to your BTC.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715314384
Hero Member
*
Offline Offline

Posts: 1715314384

View Profile Personal Message (Offline)

Ignore
1715314384
Reply with quote  #2

1715314384
Report to moderator
nbkn
Newbie
*
Offline Offline

Activity: 17
Merit: 0


View Profile
December 06, 2013, 09: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.
mstfck (OP)
Member
**
Offline Offline

Activity: 79
Merit: 10

I was hacked. Sorry for any scam that occured.


View Profile
December 06, 2013, 09: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

I was inactive on this forum and apparently someone got my credentials and used my account in scams.
I have changed the password and I am sorry for any scam that occured.
nbkn
Newbie
*
Offline Offline

Activity: 17
Merit: 0


View Profile
December 06, 2013, 09:30:45 PM
 #4

Please post the error you encounter.
mstfck (OP)
Member
**
Offline Offline

Activity: 79
Merit: 10

I was hacked. Sorry for any scam that occured.


View Profile
December 06, 2013, 09: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

I was inactive on this forum and apparently someone got my credentials and used my account in scams.
I have changed the password and I am sorry for any scam that occured.
nbkn
Newbie
*
Offline Offline

Activity: 17
Merit: 0


View Profile
December 06, 2013, 09: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.
mstfck (OP)
Member
**
Offline Offline

Activity: 79
Merit: 10

I was hacked. Sorry for any scam that occured.


View Profile
December 06, 2013, 09: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!

I was inactive on this forum and apparently someone got my credentials and used my account in scams.
I have changed the password and I am sorry for any scam that occured.
nbkn
Newbie
*
Offline Offline

Activity: 17
Merit: 0


View Profile
December 06, 2013, 10: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?
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!