As a schoolboy, Gaddafi adopted the ideologies of Arab nationalism and Arab socialism, influenced in particular by Nasserism, the thought of Egyptian revolutionary and president Gamal Abdel Nasser, whom Gaddafi adopted as his hero.