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?