Thread

  1. Build of PostgreSQL under Irix

    Robert E. Bruccoleri <bruc@stone.congenomics.com> — 2002-03-12T19:41:08Z

    Here is the script that I use to build PostgreSQL under Irix. The configure
    scripts works just fine, and all regression tests past (join gives a compliant
    but different record order).
    
    #!/bin/ksh -x
    
    export SGI_ABI=-64
    cat >config.cache <<EOF
    ac_cv_lib_nsl_main=${ac_cv_lib_nsl_main='no'}
    ac_cv_prog_CPP=${ac_cv_prog_CPP='cc -E'}
    ac_cv_prog_gcc=${ac_cv_prog_gcc=no}
    ac_cv_prog_perl=${ac_cv_prog_perl=/usr/local64/bin/perl}
    EOF
    gmake clean
    CC="cc -64" \
    AWK=awk \
    INSTALL=/pg/postgresql-7.2/config/install-sh \
    LDFLAGS="-rpath /usr/local64/lib" \
    ./configure --prefix=/pg/postgresql-7.2 \
                --enable-hba \
                --with-pgport=6546 \
                --disable-locale \
                --enable-cassert \
                --with-template=irix5 \
                --with-includes="/usr/local64/include /usr/local64/include/readline" \
                --with-libs=/usr/local64/lib \
                --without-CXX \
                --with-maxbackends=128 \
                --enable-debug \
                --without-java \
                --enable-odbc
    gmake
    gmake check
    gmake install
    export PATH=/pg/postgresql-7.2/bin:$PATH
    initdb -D /pg/postgresql-7.2/data
    cd data
    if [[ ! -r pg_hba.conf.bak ]]
    then
            chmod 644 pg_hba.conf
            cp pg_hba.conf pg_hba.conf.bak
            cat >>pg_hba.conf <<EOF
    local        all                                         trust
    host         all         127.0.0.1     255.255.255.255   trust
    host         all        0.0.0.0       0.0.0.0           trust
    
    The above would allow anyone anywhere to connect to any database under
    any username.
    EOF
            chmod 444 pg_hba.conf
    fi
    
    The directories, /usr/local64/lib and /usr/local64/include, contain
    installed versions of zlib and GNU readline, compiled under
    64 bit mode.
    
    Please give a version of this script a try (you'll need to change
    path names), and see if it work OK. --Bob
    
    +-----------------------------+------------------------------------+
    | Robert E. Bruccoleri, Ph.D. | email: bruc@acm.org                |
    | P.O. Box 314                | URL:   http://www.congen.com/~bruc |
    | Pennington, NJ 08534        |                                    |
    +-----------------------------+------------------------------------+