I don't understand why you need a gym. Use a treadmill? Just run somewhere. Lifting weights? Just find something heavy and lift it.
My oldest friend stayed fit this way. Just actually going places and using random ass things to lift (backpacks full of books, paint cans tied to a mop like barbells, tires; anything heavy enough that it was a workout), along with other exercises that didn't require machines or spending money.