Others have said, but I will say it again... Learning guitar is hard and requires a firm commitment. So if your going to go for it, get into a correct mind set.|
My best advice to start is to take some lessons from a reputable teacher, someone who will teach and correct proper playing technique. Without good technique you are either a) doomed to fail. Or b) mediocre player at best. (Never mind carpal tunnel...)
Next, be ready for the pain... Your fingertips will get sore, and your hands may get a little sore. Fingertips always get sore, and it is something your need to work through... (Tough it out), but if your hands (knuckles/wrists) get sore, TAKE A BREAK and look at your technique.
Practice scales... Period! Boring as hell and requires fierce dedication, but will pay off big time.
Jam with anyone you can... It will force you to play, learn new chords, and make you keep up.
Lastly, if you set the guitar down for a while, don't take it as failure, come back to it when you’re ready. If you hang in there the guitar will start to call to you to pick it up, and that is when things really take off.
Good Luck and keep on rockin’ in the free world!