#35526: glib2: error: libelf.h: No such file or directory ----------------------------------+----------------------------------------- Reporter: wcontello@… | Owner: ryandesign@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.1.2 Resolution: invalid | Keywords: Port: glib2 | ----------------------------------+----------------------------------------- Changes (by ryandesign@…): * status: new => closed * resolution: => invalid Comment: Ok great, then you've found the reason why glib2 failed to build. Remove /usr/local/lib/libelf.a, run "sudo port clean glib2", and try again. We don't support the use of MacPorts while software is installed in /usr/local, because of the likelihood of conflicts like this. If you really need libelf, consider installing it using "sudo port install libelf"; the glib2 port knows about that one and can alert you to the interference and what to do about it. -- Ticket URL: <https://trac.macports.org/ticket/35526#comment:5> MacPorts <http://www.macports.org/> Ports system for Mac OS