From: | Tom Allison <tom(at)tacocat(dot)net> |
---|---|
To: | francisco(at)npgsql(dot)org, pgsql <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: postgresql and Mac OS X |
Date: | 2008-11-04 21:02:27 |
Message-ID: | 4910B863.6060508@tacocat.net |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Francisco Figueiredo Jr. wrote:
> On Tue, Nov 4, 2008 at 8:21 AM, Tom Allison <tom(at)tacocat(dot)net> wrote:
>> Grzegorz Jaśkiewicz wrote:
>>> I feel good about control here, and I certainly don't have any problems.
>>> So, please don't whine :)
>>> Especially since I want to run cvs head, and be able to actually update it
>>> from cvs when I want to, that's the only choice. Postgresql is so easy to
>>> get from sources, compared to other software packages, I can't understand
>>> people even with slightest expierence in unix to have any problems with it.
>> I tried getting a source install on my mac book yesterday and today.
>> It's not a normal *nix installation. The location of the files are all
>> non-standard.
>> 'make' is prefixed by /Developer/usr/bin/.
>>
>> I added /Developer/usr/bin to PATH and tried ./configure.
>>
>> checking build system type... i386-apple-darwin9.5.0
>> checking host system type... i386-apple-darwin9.5.0
>> checking which template to use... darwin
>> checking whether to build with 64-bit integer date/time support... no
>> checking whether NLS is wanted... no
>> checking for default port number... 5432
>> checking for gcc... gcc
>> checking for C compiler default output file name... configure: error: C
>> compiler cannot create executables
>> See `config.log' for more details.
>>
>>
>> config.log shows an exit code of 77 with a statement that compiler cannot
>> create executables. ???
>>
>>
>> configure:2213: $? = 0
>> configure:2215: gcc -v </dev/null >&5
>> Using built-in specs.
>> Target: i686-apple-darwin9
>> Configured with: /var/tmp/gcc/gcc-5488~2/src/configure --disable-checking
>> -enabl
>> e-werror --prefix=/usr --mandir=/share/man
>> --enable-languages=c,objc,c++,obj-c++
>> --program-transform-name=/^[cg][^.-]*$/s/$/-4.0/
>> --with-gxx-include-dir=/includ
>> e/c++/4.0.0 --with-slibdir=/usr/lib --build=i686-apple-darwin9
>> --with-arch=apple
>> --with-tune=generic --host=i686-apple-darwin9 --target=i686-apple-darwin9
>> Thread model: posix
>> gcc version 4.0.1 (Apple Inc. build 5488)
>> configure:2218: $? = 0
>> configure:2220: gcc -V </dev/null >&5
>> gcc-4.0: argument to `-V' is missing
>> configure:2223: $? = 1
>> configure:2246: checking for C compiler default output file name
>> configure:2249: gcc conftest.c >&5
>> ld: library not found for -lcrt1.10.5.o
>> collect2: ld returned 1 exit status
>> configure:2252: $? = 1
>> configure: failed program was:
>>
>>
>> I think he questin is, what lib was missing so I can go find it and add it
>> to some path/dir variable?
>>
>
>
> I think you need to install the developer tools.
>
> I compile postgresql from sources with no problem on osx 10.5.4 but I
> installed developer tools before.
>
> The library which is missing is the following:
>
>> configure:2246: checking for C compiler default output file name
>> configure:2249: gcc conftest.c >&5
>> ld: library not found for -lcrt1.10.5.o <---------
>
> crt1.10.5.o
>
> I hope it helps.
>
>
>
>
>
It confirms what I'm working through.
crt1.o located at /Developer/SDKs/MacOSX10.5.sdk/usr/lib/crt1.o
crt1.10.5.0 at /Developer/SDKs/MacOSX10.5.sdk/usr/lib/crt1.10.5.o
So I'm trying to find how to get these directories included in the
compilation. I thought --with-libs and/or --with-includes would have
helped. But it didn't.
This is what I ran (I'm running this from a script so I can repeat it)
--------------------------------------
cd /Users/tom/src/postgresql-8.3.4
export PATH=$PATH:/Developer/usr/bin/
./configure \
--with-libs=/Developer/SDKs/MacOSX10.5.sdk/usr/lib/ \
--with-includes=/Developer/SDKs/MacOSX10.5.sdk/usr/lib/
But I'm on the same error...
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2008-11-04 21:05:13 | Re: I'm puzzled by a foreign key constraint problem |
Previous Message | Jonathan Guthrie | 2008-11-04 20:34:32 | Re: I'm puzzled by a foreign key constraint problem |