Author

Topic: Setting up a Private Regression Test Blockchain with Bitcoincore (Read 538 times)

staff
Activity: 3458
Merit: 6793
Just writing some code
Many Thanks achow for your valuable guidance towards correct resources to follow.
As I'm not much familiar with Unix commands, I found some difficulties when executing the command to set the environment ready. The errors like "E: Unable to locate package libssl" are occurred when tried to install libssl package . could you please also suggest if there are some resources that explain setting up the environment step by step for newbies like me?

Thanks in advance.
There is no libssl package. The package is libssl-dev. You should follow the instructions exactly and copy and paste the given commands to not make any mistakes.
newbie
Activity: 21
Merit: 2
Why don't you just install Bitcoin Core instead of trying to build from source? You can then run it in regtest mode.
member
Activity: 115
Merit: 10
I highly advise that you not follow that article you are following or any other article about compiling Bitcoin Core that is not from the Bitcoin Core developers. Such articles are likely to become outdated as things are changed (the one you are following already is outdated). Instead you should follow the build instructions provided in the Bitcoin Core repository: https://github.com/bitcoin/bitcoin/blob/master/doc/build-unix.md

Many Thanks achow for your valuable guidance towards correct resources to follow.
As I'm not much familiar with Unix commands, I found some difficulties when executing the command to set the environment ready. The errors like "E: Unable to locate package libssl" are occurred when tried to install libssl package . could you please also suggest if there are some resources that explain setting up the environment step by step for newbies like me?

Thanks in advance.
staff
Activity: 3458
Merit: 6793
Just writing some code
I highly advise that you not follow that article you are following or any other article about compiling Bitcoin Core that is not from the Bitcoin Core developers. Such articles are likely to become outdated as things are changed (the one you are following already is outdated). Instead you should follow the build instructions provided in the Bitcoin Core repository: https://github.com/bitcoin/bitcoin/blob/master/doc/build-unix.md
member
Activity: 115
Merit: 10
                            Struggling with error while executing /configure command, Please help !!
Hi, I'm a newbie to Unix and blockchain technology, trying to implement a private blockchain with bitcoin core code. Here I'm implementing it with regression test mode.

For this, I'm following the one article(https://samsclass.info/141/proj/pBitc1.htm):

Preparing Ubuntu
--------------------
To prepare your Ubuntu machine, execute these commands:

sudo apt-get update
sudo apt-get install git build-essential -y
sudo apt-get install autoconf libboost-all-dev libssl-dev libprotobuf-dev protobuf-compiler libqt4-dev libqrencode-dev libtool -y
sudo apt-get install libdb5.1++-dev libevent-dev pkg-config -y


Installing Berkeley Database
-------------------------------

wget http://download.oracle.com/berkeley-db/db-4.8.30.NC.tar.gz

sha256sum db-4.8.30.NC.tar.gz

tar -xvf db-4.8.30.NC.tar.gz
cd db-4.8.30.NC/build_unix
mkdir -p build
BDB_PREFIX=$(pwd)/build
../dist/configure --disable-shared --enable-cxx --with-pic --prefix=$BDB_PREFIX
make install
cd ../..


Compiling Bitcoin Core from Source:
----------------------------------------

git clone https://github.com/bitcoin/bitcoin.git

cd bitcoin

git tag

git checkout v0.12.1rc2

./autogen.sh

./configure --with-incompatible-bdb



when running the above command I got the error "configure:27383: error: libevent not found"

Here is the content of config.log:

root@BitcoinCore-LnD:~/bitcoin# more config.log | grep libevent
configure:27333: $PKG_CONFIG --exists --print-errors "libevent"
Package libevent was not found in the pkg-config search path.
Perhaps you should add the directory containing `libevent.pc'
No package 'libevent' found
configure:27350: $PKG_CONFIG --exists --print-errors "libevent"
Package libevent was not found in the pkg-config search path.
Perhaps you should add the directory containing `libevent.pc'
No package 'libevent' found
No package 'libevent' found
configure:27383: error: libevent not found.


I'm about to run the make command after ./configure --with-incompatible-bdb command but stuck with the error.

I tried make command and got the below error:
root@BitcoinCore-LnD:~/bitcoin# make
make: *** No targets specified and no makefile found.  Stop.


Note:
I'm using VPS with 2GB RAM Memory, 40 GB Disk

Can someone please help in resolving it?
Jump to: