Why do you want to gain weight?
What kind of weight do you want to gain? I presume you want muscle rather than fat...
I'm a skinny guy, always have been. I gained a bit of weight when I got married, due to eating better. I gained more when we had our first child, due to lifting the kid, the carseat, and the diaper bag over and over. That's weightlifting, even though I wasn't in the gym.