It's fairly easy to tame and knock out 1'ST make sure it is all most day but not fully

Then get a fast land mount

Go to a cave

Find one it will chase you

Lure it outside if it isn't day by the time you do that try to tranq it while running

More Megalosaurus Taming & KO Tips