You'll need to apply for a Turkish visa before visiting Turkey. Permits can be purchased at any of the country's several entry points.