The Mac App Store won't allow me to install xcode because I'd need osx version 10.8.4 or later. I did a system upgrade but I'm still at Mac osx lion 10.7.5. Can anyone help? Thanks!
You need to buy Mountain Lion or Mavericks in the AppStore. That will take care of the installation. Mavericks is free, is supposed to be better, but there are some problems associated with it.
Before doing that, in any case, check your most frequently used applications to see if they are compatible with the OS X version you intent to install. Then do a full backup and do disk permission checks in DiskUtilities before you upgrade.