First install the Anchor dev tools. See book.anchor-lang.com.
Then, install and build all submodules.
make bootstrapTo build the program, run
anchor buildTo test the program, run
anchor testTo run a localnet with all the required programs deployed, first build and then run
anchor localnet