Re: Problem installing extensions on Lion

From: Stefan Schwarzer <stefan(dot)schwarzer(at)unep(dot)org>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Problem installing extensions on Lion
Date: 2012-06-22 07:19:52
Message-ID: D9D898A9-087B-4797-9E87-68E0081EE115@unep.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

>>> 1) Do the above files actually exist in the above location?
>
>> Yes, the c.h exist in the mentioned location. However, as it does not indicate where it looks for the stdio.h, perhaps the problem lies there.
>
> Indeed. Where did you get the advice to use "-isysroot
> /Developer/SDKs/MacOSX10.6.sdk"? According to the gcc manual,
> that means
>
> Use DIR as the logical root directory for headers and libraries.
> For example, if the compiler would normally search for headers in
> `/usr/include' and libraries in `/usr/lib', it will instead search
> `DIR/usr/include' and `DIR/usr/lib'.
>
> So basically, that breaks every attempt to use a standard header from
> /usr/include, unless the SDK has provided a substitute, which evidently
> it mostly doesn't.
>
> [ pokes around on own Mac... ] Hmm, for me the file
> /Developer/SDKs/MacOSX10.6.sdk/usr/include/stdio.h
> does exist with reasonably sane-looking contents. So maybe your problem
> is a broken SDK installation.

Just as an information: It's really the Xcode which is placed now in /Applications, instead of /Developer. I copied over my older version of Xcode to the /Developer directory, and the compilation worked fine...

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Stefan Schwarzer 2012-06-22 08:45:35 pg_dump not dumping all tables
Previous Message Stefan Schwarzer 2012-06-22 07:19:36 Re: Error message "psql: could not connect to server: No such file or directory"