if you truly can't just do the ole >lift weights
then you can look at doing body weight exercises instead
building muscle generally is important and while the gym is optimal it's not the only route