The way music schools teach this is relatively brutal and annoying, with a _lot_ of repetition and testing (eg "sing a major second above this note" and "identify the interval" questions), but I am not sure any other method works. At the same time, everyone going through an ear training curriculum does pick up decent relative pitch. This can take a year or two for college music majors, so it's not exactly a casual exercise. However, I assume the major barrier to entry is not musical aptitude but willingness to put up with bullshit, because it feels like bullshit when you are doing it.
I remember many years ago in my music lessons being shocked that some people can hear multiple notes played simultaneously. I've never found much material on learning this skill.