build_wallet
[
Пред. ] [ Содержание ] [
След. ]
build wallet
Created Суббота 26 октября 2019
https://dev.cryptolife.net/compiling-the-daemon-for-your-altcoin-in-ubuntu-linux/ install all required dependencies:
apt-get update && apt-get upgrade
apt-get install nano ntp unzip git build-essential libssl-dev libdb-dev libdb++-dev libboost-all-dev libqrencode-dev aptitude && aptitude install miniupnpc libminiupnpc-dev
Pull the source code from github, or upload it yourself:
git clone https://github.com/YOURCOIN If your coin uses leveldb, compile leveldb:
cd /YOURCOIN/src/leveldb chmod +x build_detect_platform make clean make libleveldb.a libmemenv.a Return to source directory, and compile the daemon:
cd /YOURCOIN/src make -f makefile.unix Strip the file to make it smaller, then relocate it:
strip YOURCOINd cp YOURCOINd /usr/bin Now run the daemon:
YOURCOINd It will return an error, telling you to set up config file in a directory. Now we’ll set up the config file. Note that this is case sensitive.
nano ~/.YOURCOIN/YOURCOIN.conf Add the following, save and exit:
daemon=1 server=1 rpcuser=(username) rpcpassword=(strong password) Запустить YOURCOINd еще раз и если вы все сделали правильно, ваш демон сейчас онлайн! Тип YOURCOINd полный список доступных команд.
https://www.linux.org.ru/forum/general/13805324 Рецепт для сборки
namecoin apt-get install git checkinstall build-essential libtool autotools-dev automake pkg-config libssl-dev libevent-dev bsdmainutils python3 libboost-system-dev libboost-filesystem-dev libboost-chrono-dev libboost-program-options-dev libboost-test-dev libboost-thread-dev libminiupnpc-dev libzmq3-dev libqt5gui5 libqt5core5a libqt5dbus5 qttools5-dev qttools5-dev-tools libprotobuf-dev protobuf-compiler libqrencode-dev libdb-dev libdb++-dev
git clone https://github.com/namecoin/namecoin-core --depth 1 -b master
cd namecoin-core/
./autogen.sh
./configure --disable-tests --disable-gui-tests --with-incompatible-bdb
make -j2
checkinstall --fstrans=no
Чтобы был именно
DB 4.8, вместо
5
./configure --disable-tests --disable-gui-tests --with-incompatible-bdb Надо сделать: 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 $BITCOIN_ROOT
./configure LDFLAGS="-L${BDB_PREFIX}/lib/" CPPFLAGS="-I${BDB_PREFIX}/include/" \
--disable-tests --disable-gui-tests
LC_ALL=C make -f makefile.unix BDB_INCLUDE_PATH=/usr/include/db4.8 OPENSSL_INCLUDE_PATH=/usr/include/openssl-1.0 OPENSSL_LIB_PATH=/usr/lib/openssl-1.0 CC=gcc-4.3 CXX=g++-4.3 BOOST_INCLUDE_PATH=/usr/include/boost37 BOOST_LIB_PATH=/usr/lib/boost37 BDB_LIB_SUFFIX="-4.8" USE_UPNP= -j5
fix build with boost 1.66 cd ~
sudo apt-get update
sudo apt-get dist-upgrade
sudo apt-get install git
sudo apt-get install build-essential libboost-all-dev libcurl4-openssl-dev libdb5.1-dev libdb5.1++-dev mysql-server
git clone git:github.com/litecoin-project/litecoin.git//
cd litecoin/src
make -f makefile.unix USE_UPNP=-
sudo cp litecoind /usr/bin
┏━━━┫ setapt@kali2017 ┣━━┫ ~/progfiles/cryptocoins/db4/db-4.8.30.NC/build ┣━━━━━
┃
┗━━━┃11:21┃━━$━━❱ sudo make install
Installing DB include files: /usr/local/BerkeleyDB.4.8/include ...
Installing DB library: /usr/local/BerkeleyDB.4.8/lib ...
libtool: install: cp -p .libs/libdb-4.8.so /usr/local/BerkeleyDB.4.8/lib/libdb-4.8.so
libtool: install: cp -p .libs/libdb-4.8.lai /usr/local/BerkeleyDB.4.8/lib/libdb-4.8.la
libtool: install: cp -p .libs/libdb-4.8.a /usr/local/BerkeleyDB.4.8/lib/libdb-4.8.a
libtool: install: chmod 644 /usr/local/BerkeleyDB.4.8/lib/libdb-4.8.a
libtool: install: ranlib /usr/local/BerkeleyDB.4.8/lib/libdb-4.8.a
libtool: install: cp -p libdb.a /usr/local/BerkeleyDB.4.8/lib/libdb.a
libtool: install: chmod 644 /usr/local/BerkeleyDB.4.8/lib/libdb.a
libtool: install: ranlib /usr/local/BerkeleyDB.4.8/lib/libdb.a
libtool: finish: PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/sbin" ldconfig -n /usr/local/BerkeleyDB.4.8/lib
----------------------------------------------------------------------
Libraries have been installed in:
/usr/local/BerkeleyDB.4.8/lib
If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
- add LIBDIR to the `LD_LIBRARY_PATH' environment variable
during execution
- add LIBDIR to the `LD_RUN_PATH' environment variable
during linking
- use the `-Wl,-rpath -Wl,LIBDIR' linker flag
- have your system administrator add LIBDIR to `/etc/ld.so.conf'
See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
Installing DB utilities: /usr/local/BerkeleyDB.4.8/bin ...
libtool: install: cp -p .libs/db_archive /usr/local/BerkeleyDB.4.8/bin/db_archive
libtool: install: cp -p .libs/db_checkpoint /usr/local/BerkeleyDB.4.8/bin/db_checkpoint
libtool: install: cp -p .libs/db_deadlock /usr/local/BerkeleyDB.4.8/bin/db_deadlock
libtool: install: cp -p .libs/db_dump /usr/local/BerkeleyDB.4.8/bin/db_dump
libtool: install: cp -p .libs/db_hotbackup /usr/local/BerkeleyDB.4.8/bin/db_hotbackup
libtool: install: cp -p .libs/db_load /usr/local/BerkeleyDB.4.8/bin/db_load
libtool: install: cp -p .libs/db_printlog /usr/local/BerkeleyDB.4.8/bin/db_printlog
libtool: install: cp -p .libs/db_recover /usr/local/BerkeleyDB.4.8/bin/db_recover
libtool: install: cp -p .libs/db_sql /usr/local/BerkeleyDB.4.8/bin/db_sql
libtool: install: cp -p .libs/db_stat /usr/local/BerkeleyDB.4.8/bin/db_stat
libtool: install: cp -p .libs/db_upgrade /usr/local/BerkeleyDB.4.8/bin/db_upgrade
libtool: install: cp -p .libs/db_verify /usr/local/BerkeleyDB.4.8/bin/db_verify
Installing documentation: /usr/local/BerkeleyDB.4.8/docs ...
To uninstall Berkeley DB, enter:make uninstall
Содержание