Search Postgresql Archives

Re: postgresql and Mac OS X

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Francisco Figueiredo Jr. wrote:
On Tue, Nov 4, 2008 at 8:21 AM, Tom Allison <tom@xxxxxxxxxxx> 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...

--
Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux