From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: daniel sutton Newsgroups: gmane.emacs.devel Subject: Re: Need help building Emacs Date: Sat, 21 Nov 2015 21:17:56 -0600 Message-ID: References: <5650FF19.2020605@cs.ucla.edu> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=047d7bdc07b217aeb50525188e99 X-Trace: ger.gmane.org 1448162286 16514 80.91.229.3 (22 Nov 2015 03:18:06 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 22 Nov 2015 03:18:06 +0000 (UTC) Cc: Paul Eggert , Emacs-devel To: Xue Fuqiao Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Nov 22 04:18:05 2015 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1a0LAA-0001TR-2h for ged-emacs-devel@m.gmane.org; Sun, 22 Nov 2015 04:18:02 +0100 Original-Received: from localhost ([::1]:54631 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a0LA9-0002zK-LE for ged-emacs-devel@m.gmane.org; Sat, 21 Nov 2015 22:18:01 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48330) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a0LA6-0002yO-R2 for emacs-devel@gnu.org; Sat, 21 Nov 2015 22:17:59 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a0LA5-0003Ks-Mb for emacs-devel@gnu.org; Sat, 21 Nov 2015 22:17:58 -0500 Original-Received: from mail-ig0-x235.google.com ([2607:f8b0:4001:c05::235]:34604) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a0LA5-0003Ko-IF for emacs-devel@gnu.org; Sat, 21 Nov 2015 22:17:57 -0500 Original-Received: by igvg19 with SMTP id g19so55138932igv.1 for ; Sat, 21 Nov 2015 19:17:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=dS9tGhD/71xxro4rECw1d6YgCHJN4cARcOK66OEJmHg=; b=YJLKhQl9Dyu+Z3ygIgWQKake5hi5TeesdsOmLlYkJb64V2X+1DrdtPfAYmxJjT8F9o RdIPTtCn2LlLNqJnDcZGPzAm0pRSUhfhJB1XpbWAfAj2jbWBsB+tocFp/+r1D7xrWcgH K6l6p5VqieJpzKvtt0EFSsELfyhn9QMdrACedB+/Eiv9mIEjL4Kl8fVmkLSCbDHin6df YHmr8p5ke12SCzydbZMWm4aS+mYqreKzQQr1wNfCx/L64w7wDAmGAGHEQtNBjOy/i5y8 dqsMcHqLo7nuSw7ddjy9lkOg+MsN6utzXGmNM7oD6nYhuKdKH/I7RkIzoolaoimQ87iE Us6w== X-Received: by 10.50.50.137 with SMTP id c9mr6267978igo.23.1448162276910; Sat, 21 Nov 2015 19:17:56 -0800 (PST) Original-Received: by 10.107.15.229 with HTTP; Sat, 21 Nov 2015 19:17:56 -0800 (PST) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:4001:c05::235 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:194976 Archived-At: --047d7bdc07b217aeb50525188e99 Content-Type: text/plain; charset=UTF-8 you are missing the command line tools for OSX. Try running `xcode-select --install` from the command line On Sat, Nov 21, 2015 at 9:07 PM, Xue Fuqiao wrote: > On Sun, Nov 22, 2015 at 7:32 AM, Paul Eggert wrote: > > Hi Paul, > > > Xue Fuqiao wrote: > >> > >> IIRC OS X already provides libxml2, so I don't need to install one. But > >> it seems that `make' cannot find `libxml/tree.h' in my header search > >> path. Can anyone point me in the right direction? > > > > I suggest looking in the file configure.ac for the strings "xcsdkdir" > and > > "libxml2", and checking src/Makefile for its LIBXML2_CFLAGS setting. > > Thanks for the hint! > > In configure.ac: > > xcsdkdir=`$XCRUN --show-sdk-path 2>/dev/null` > [...] > LIBXML2_CFLAGS="-I'$xcsdkdir/usr/include/libxml2'" > > My $XCRUN is empty (I don't know why), therefore, in src/Makefile: > > LIBXML2_CFLAGS = -I/usr/include/libxml2 > > But I don't even have the /usr/include/ directory. With GNU findutils > (find / -regex '.*xml.*') I found that libxml2 is in > > /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/include, > instead of /usr/include/. > > What should I do now? `sudo ln -s' looks like an ugly hack. Any > suggestions? > > --047d7bdc07b217aeb50525188e99 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
you are missing the command line tools for OSX. Try runnin= g `xcode-select --install` from the command line
<= div class=3D"gmail_extra">
On Sat, Nov 21, 20= 15 at 9:07 PM, Xue Fuqiao <xfq.free@gmail.com> wrote:
On Sun, Nov 22, 2015 at 7:32 AM, Paul Eggert &= lt;eggert@cs.ucla.edu> wrote:<= br>
Hi Paul,

> Xue Fuqiao wrote:
>>
>> IIRC OS X already provides libxml2, so I don't need to install= one.=C2=A0 But
>> it seems that `make' cannot find `libxml/tree.h' in my hea= der search
>> path.=C2=A0 Can anyone point me in the right direction?
>
> I suggest looking in the file configure.ac for the strings "xcsdkdi= r" and
> "libxml2", and checking src/Makefile for its LIBXML2_CFLAGS = setting.

Thanks for the hint!

In con= figure.ac:

=C2=A0 =C2=A0xcsdkdir=3D`$XCRUN --show-sdk-path 2>/dev/null`
=C2=A0 =C2=A0[...]
=C2=A0 =C2=A0LIBXML2_CFLAGS=3D"-I'$xcsdkdir/usr/include/libxml2= 9;"

My $XCRUN is empty (I don't know why), therefore, in src/Makefile:

=C2=A0 =C2=A0LIBXML2_CFLAGS =3D -I/usr/include/libxml2

But I don't even have the /usr/include/ directory.=C2=A0 With GNU findu= tils
(find / -regex '.*xml.*') I found that libxml2 is in
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Develo= per/SDKs/MacOSX10.11.sdk/usr/include,
instead of /usr/include/.

What should I do now?=C2=A0 `sudo ln -s' looks like an ugly hack.=C2=A0= Any suggestions?


--047d7bdc07b217aeb50525188e99--