The Bitcoin Simulator is built on ns3 and it has been tested with versions 3.24 and 3.25.
So, go to the official site and grab a suitable release. Detailed installation instructions
for various platforms can be found here.
Untar it with the following command: tar xvfj ns-allinone-3.25.tar.bz2
For exhanging block messages, rapidjson is used. Download it from here.
Create a new directory named rapidjson under ns-allinone-3.xx/ns-3.xx and copy the
contents of the directory include/rapidjson (from the downloaded rapidjson project in step 4)
to the newly created rapidjson folder (ns-allinone-3.xx/ns-3.xx/rapidjson). You also have to
copy all the files from Bitcoin-Simulation to the respective folders under ns-allinone-3.xx/ns-3.xx/. All the above
can be done automatically by the provided copy-to-ns3.sh script.
Update the ns-allinone-3.xx/ns-3.xx/src/applications/wscript.