I would like to share with you this very inspirational video of Steve Vai talking about practicing guitar. I recommend you to watch the whole clip. The most important bit in my opinion is to have a vision in your mind that it is possible to achieve the goal you are aiming for. The second thing is to break down the song you are learning piece by piece to something easy enough to grasp. At the end of the video Steve says exactly how to do it.