Hey manao123,
I understand that you're getting an error when attempting to update your iPhone to iOS 9 via iTunes. The error that you're receiving (-39) typically indicates an issue with syncing photos. If you are syncing photos, removing the iPod Photo Cache (or disabling photo syncing altogether) can help resolve this error and allow you to update your iPhone.
About the iPod Photo Cache folder - Apple Support
Cheers!