Results 1 to 3 of 3
  1. #1
    Join Date
    Nov 2003

    Unanswered: Problems with OS X

    I was wondering if anyone has had PostGreSQL working on 10.3?
    I am using the documentation that can be found at

    I have had post working on Linux, but since our company is moving towards OS X we need a postgresql database running on 10.3.

    The error I get when I run the make file is:

    gcc -traditional-cpp -g -O2 -Wall -Wmissing-prototypes -Wmissing-declarations -I../../../../src/include -I/sw/include/ -c -o printtup.o printtup.c
    In file included from /usr/include/machine/param.h:30,
    from /usr/include/sys/socket.h:67,
    from ../../../../src/include/libpq/pqcomm.h:28,
    from ../../../../src/include/libpq/libpq-be.h:24,
    from ../../../../src/include/libpq/libpq.h:21,
    from printtup.c:20:
    /usr/include/ppc/param.h:98: macro "btodb" requires 2 arguments, but only 1 given
    /usr/include/ppc/param.h:100: macro "dbtob" requires 2 arguments, but only 1 given
    make[4]: *** [printtup.o] Error 1
    make[3]: *** [common-recursive] Error 2
    make[2]: *** [access-recursive] Error 2
    make[1]: *** [install] Error 2
    make: *** [install] Error 2

    Any comments on how I can solve this problem would be appreciated.

    Is this related to the change in compiler from gcc 2.95?

  2. #2
    Join Date
    Oct 2003
    I don't use OSX 10.3, but 10.2.8 and I don't have this problem. I'm using the standard installation procedure (configure, make, initdb).

    The only problem I founded was about the locale environnement wich must be specified if not equals to C.

  3. #3
    Join Date
    Nov 2003

    Re: Problems with OS X


    To fix the problem just do this

    Open the Terminal, and enter sudo /usr/sbin/gcc_select 2. If you're asked, enter your password.

    This command line logs in as root, makes the neccesary changes, and leaves you logged in under your original account. When it's done, /usr/bin/cc and /usr/bin/gcc use GCC 2.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts