Post
Topic
Board Altcoin Discussion
Re: compiling altcoins: libdb4.8 vs libdb5.1
by
M8BWNNRFMNdak68c
on 14/01/2016, 14:08:25 UTC
ah okay thank you.. i think the Flags are hardcoded in the setup files.. ( Worldcoin: -O2 ), i don't thnik we should change much here..

To make my attempts clearer: Some coins are created via "./autogen.sh", some are created via "./src/make".. this is the choise of the developer, not mine.. i can now install the former ones:

Code:
cd /home/user/libdb
BITCOIN_ROOT=$(pwd)
BDB_PREFIX="${BITCOIN_ROOT}/db4"
mkdir -p $BDB_PREFIX
wget 'http://download.oracle.com/berkeley-db/db-4.8.30.NC.tar.gz'
tar -xzvf db-4.8.30.NC.tar.gz
cd db-4.8.30.NC/build_unix/
../dist/configure --enable-cxx --disable-shared --with-pic --prefix=$BDB_PREFIX
make install

cd /home/user/libdb
BITCOIN_ROOT=$(pwd)
BDB_PREFIX="${BITCOIN_ROOT}/db5"
mkdir -p $BDB_PREFIX
wget 'http://download.oracle.com/berkeley-db/db-5.1.29.NC.tar.gz'
tar -xzvf db-5.1.29.NC.tar.gz
cd db-5.1.29.NC/build_unix/
../dist/configure --enable-cxx --disable-shared --with-pic --prefix=$BDB_PREFIX
make install

cd ~
echo 'cd ~
rm litecoin -rR
git clone https://github.com/litecoin-project/litecoin
cd litecoin
git pull
git checkout master
 cd src
mkdir obj
cd ..
./autogen.sh
BDB_PREFIX="/home/user/libdb/db4"
./configure LDFLAGS="-L${BDB_PREFIX}/lib/" CPPFLAGS="-I${BDB_PREFIX}/include/" --with-gui=no
make
cd src
[ -e litecoind ] && (  rm /usr/bin/litecoind; rm /usr/bin/litecoin-cli;cp litecoind /usr/bin; cp litecoin-cli /usr/bin;/usr/bin/litecoin-cli -rpcuser=*** -rpcpassword=*** stop)
cd ../..
' > Litecoin.sh
chmod 700 Litecoin.sh
nohup ./Litecoin.sh > Litecoin.log &


cd ~
echo 'cd ~
rm dogecoin -rR
git clone https://github.com/dogecoin/dogecoin
cd dogecoin
git pull
git checkout master
 cd src
mkdir obj
cd ..
./autogen.sh
BDB_PREFIX="/home/user/libdb/db5"
./configure LDFLAGS="-L${BDB_PREFIX}/lib/" CPPFLAGS="-I${BDB_PREFIX}/include/" --with-gui=no
make
cd src
[ -e dogecoind  ] && (  rm /usr/bin/dogecoind ; rm /usr/bin/dogecoin-cli;cp dogecoind  /usr/bin; cp dogecoin-cli /usr/bin;/usr/bin/dogecoin-cli -rpcuser=*** -rpcpassword=*** stop)
cd ../..
' > Dogecoin.sh
chmod 700 Dogecoin.sh
nohup ./Dogecoin.sh > Dogecoin.log &

but coins without autogen are still not working:

Quote
cd ~
echo 'cd ~
rm worldcoin-v0.8 -rR
git clone https://github.com/worldcoinproject/worldcoin-v0.8
cd worldcoin-v0.8
git pull
git checkout master
 cd src
mkdir obj
export BDB_PREFIX="/home/user/libdb/db4"
export BDB_LIB_PATH="${BDB_PREFIX}/lib/"
export BDB_INCLUDE_PATH="${BDB_PREFIX}/inculde/"
make -f makefile.unix -e
[ -e worldcoind ] && (  rm /usr/bin/worldcoind; rm /usr/bin/worldcoind;cp worldcoind /usr/bin; cp worldcoind /usr/bin;/usr/bin/worldcoind -rpcuser=*** -rpcpassword=*** stop)
cd ../..
' > Worldcoin.sh
chmod 700 Worldcoin.sh
nohup ./Worldcoin.sh > Worldcoin.log &

this leads to:
Quote
In file included from db.cpp:6:0:
db.h:14:20: fatal error: db_cxx.h: No such file or directory
 #include
                    ^
compilation terminated.
make: *** [obj/db.o] Error 1