Use a bola and/or large bear traps to immobilize it. Then surround it with stone window walls by placing fence foundations then the walls. Now you can shoot tranqs at it through the windows. Yoy can also put a door frame and door so its easier to feed it once its down.

More Megalosaurus Taming & KO Tips