compilation terminated because of No such file or directory
JVfisher opened this issue · 1 comments
I followed the instruments in https://citp.github.io/BlockSci/setup.html#ubuntu-18-04:
sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y
sudo apt-get update
sudo apt install cmake libtool autoconf libboost-filesystem-dev libboost-iostreams-dev
libboost-serialization-dev libboost-thread-dev libboost-test-dev libssl-dev libjsoncpp-dev
libcurl4-openssl-dev libjsoncpp-dev libjsonrpccpp-dev libsnappy-dev zlib1g-dev libbz2-dev
liblz4-dev libzstd-dev libjemalloc-dev libsparsehash-dev python3-dev python3-pip
git clone https://github.com/citp/BlockSci.git
cd BlockSci
mkdir release
cd release
CC=gcc-7 CXX=g++-7 cmake -DCMAKE_BUILD_TYPE=Release ..
make
but, I got:
[ 75%] Building CXX object src/internal/CMakeFiles/blocksci_internal.dir/address_info.cpp.o
[ 77%] Building CXX object src/internal/CMakeFiles/blocksci_internal.dir/address_index.cpp.o
In file included from /home/ubuntu/BlockSci/src/internal/address_index.cpp:11:0:
/home/ubuntu/BlockSci/src/internal/address_index.hpp:20:10: fatal error: wjfilesystem/path.h: No such file or directory
#include <wjfilesystem/path.h>
^~~~~~~~~~~~~~~~~~~~~
compilation terminated.
src/internal/CMakeFiles/blocksci_internal.dir/build.make:86: recipe for target 'src/internal/CMakeFiles/blocksci_internal.dir/address_index.cpp.o' failed
make[2]: *** [src/internal/CMakeFiles/blocksci_internal.dir/address_index.cpp.o] Error 1
CMakeFiles/Makefile2:1022: recipe for target 'src/internal/CMakeFiles/blocksci_internal.dir/all' failed
make[1]: *** [src/internal/CMakeFiles/blocksci_internal.dir/all] Error 2
Makefile:151: recipe for target 'all' failed
make: *** [all] Error 2
System Information
Using AMI: no
BlockSci version: 0.7.0
Total memory: 64 GB
it's git's problem. when I use git clone, it can't load the files to the directories. So, after I retry all the git steps, the blocksci works