The library is on your computer and hopefully your backup device.
iDevices are not backup devices and do not contain the library, but instead copies of the media files that have been synced to the device.
What errors are you getting when trying to launch iTunes?
How did you migrate the data back to the drive after the OS upgrade?