There are many YouTube videos showing a gin pole in use. I searched with “sailboat, mast, gin pole” and got 1300 hits. Most boats will be smaller and deck stepped. You need to keep in mind that your gin pole needs to be tall enough to lift the balance point, or just above the balance point above the deck opening for the mast. I remember some discussions on the old Olson 30 site where they used a boken J24 mast. Following is my Youtube search.
You need a gin pole that is at least 6-7 feet taller than your lower spreaders off the deck. The gin pole needs a forestay, twin backstay and two shrouds. Then you need a 2:1 purchase at the top of the gin to lift the mast. Remember you have to lift the lower part of your mast through the deck.
I used to do this with my J/24 with an aluminum tube. You would need a stiff one to support the weight of the mast and your pulls. It seems scary the first couple times you do it. Get less scary. Don’t hoist in a blow!