I'm pretty sure I've fixed this once on a mac, but unfortunately I
can't remember what I did. In fact, sadly, I'm not sure I knew what I
did at the time, I just kept trying different things I until it
worked.
From your original link, I think we just have to correctly do option
5, i.e. edit the setup.py file with:
# add jpeg directories
INCLUDE_DIRS.append("/somelib/include")
LIBRARY_DIRS.append("/somelib/lib")
..after detecting that its a Darwin system. I am forwarding this to
sage-devel in the hopes that someone there might be able to
immediately know how to fix this.
-M. Hampton