How to get music on my iPhone to my computer?

I have a newer version of iTunes and its on a new computer so none of my music is on it and I want to get it on. When I try to sync my phone it says I have to delete everything on my phone and sync what's on my computer and I don't want that haha. Please help if you know how to do it - I've tried everything I can't think of.

Unfortunately, Apple has made it hard to do that for the main reason of preventing piracy… Otherwise, every friend you have with an ipod could help you "build your library" by just copying the files off their device. There are other reasons why they made it difficult to do, but I would suspect that is the main reason.

However, I'm using the Linux operating system and the only real alternative to getting to most of the stuff on the device is to use the "libimobiledevice" set of open-source utilities (http://www.libimobiledevice.org/).

It seems to be cross platform and should work on windows and the mac as well (at least the source code should be cross platform but finding an install file could be tricky), but I don't know how that would work if it would end up fighting with itunes for control of the device. Not much of an answer but hopefully it'll point you in a direction that might work.

I can't offer you a concrete answer, but I think that would be your best bet.