arthurgervais / Bitcoin-Simulator

Bitcoin and Blockchain Simulator
http://arthurgervais.github.io/Bitcoin-Simulator/
186 stars 75 forks source link

Error ("Can't use distributed simulator without MPI compiled in") occurs when use commands of tutorial #2

Closed xlmabc closed 7 years ago

xlmabc commented 7 years ago

Hello,

when I use command "./waf --run "bitcoin-test --noBlocks=100 --nodes=6000" in tutorial to run the simple Bitcoin simulation, an error occurs and the program terminates as shown below: msg="Can't use distributed simulator without MPI compiled in", file=../../scratch/bitcoin-test.cc, line=559 terminate called without an active exception

I have already installed openmpi and other dependencies, and just run program without MPI acceleration, but I don't know why this MPI-related problems happen, could you help me?

Thanks a lot!

xlmabc commented 7 years ago

Problem solved!

I found any dependencies missed when use source code installation for OpenMPI. Instead, use apt-get install to ensure enable NS-3 to support MPI:

sudo apt-get install openmpi-bin openmpi-common openmpi-doc libopenmpi-dev

Then the program runs normally.

arthurgervais commented 7 years ago

Great, thanks 👍

lamnd09 commented 6 years ago

Thanks

charlatane commented 1 year ago

@xlmabc I tried using your approach but it doesn't work for me

charlatane commented 1 year ago

I had to do the installation process all over again and it worked