By far the easiest of the gate posts to fix and supplied in the same material as your gates softwood gates then softwood fixing stiles etc so everything matches used for fixing to a wall or other structure and fixed by either frame fixings or masonry screws bolts.
Mounting a steel gate to brick wall.
Leah from see jane drill demonstrates how to use a screw and anchor also sometimes called a walldog to attach furniture to a brick wall.
Hold the gate in position against the brick post on the hinge side.
Set the gate aside.
Place the gate against the brick wall in the closed position.
You might find it scary or even impossible to hang something on a brick wall but it can be done.
While your assistants hold the object in place use the hammer drill with masonry bit to drill anchor holes through the object and brick.
How to hang something on brick.
If you need to hang heavy objects or ensure the object is secure on the wall use screw in anchor hooks.
How to fit gate posts to a wall.
Position the gate so it stands plumb then swing the gate to the open position.
These holes should be slightly deeper than the length of the anchor excluding the bolt washer and thickness of the object being mounted and should be at least five anchor diameters away from the edges of the object and 10 anchor diameters away from each other.