Get the longest pull-up bar possible. The longer the pull-up bar, the more options you will have when mounting it. Also, purchase one that comes with brackets. These brackets are normally designed to increase the sturdiness of the bar when in the door frame, but can be used to hold up the pull-up bar to the wall.
Look around your workout space. Do you have any walls that are nearby a sturdy object? You might have a hallway that is narrow enough that you can set-up a pull-up bar, or you might have an object – such as a square support beam, that you can attach the other side of the bar too. Screwing one end of the pull-up bar to the wall is less likely to work. Even if the pull-up bar is very sturdy, you are likely to either bend the bar with your own weight or rip the pull-up bar off the wall.
Find an object sturdy enough to handle the pressure of the pull-up bar and remain in one place. For example, a filing cabinet wouldn’t work because it would bend, reducing pressure enough to where the bar falls.
Purchase a two-by-six inch wooden board from a hardware store. Locate a stud within the drywall, if your home uses drywall. Drywall will not hold your weight and the pull-up bar will rip out of the wall. Use an electronic stud finder to track down studs in the wall. This stud finder can identify changes in density, such as when there is a stud.
Screw one end of the pull-up bar into the wall by screwing the screw through the drywall into the stud. Drywall is about three-quarter inches long, so make sure that the screw is long enough to travel past the drywall into the stud. Screw the other part of the pull-up bar through the bracket, into the two-by-six wooden board. The wooden board will provide leverage needed to hold the bar up.