Thread: Installing PG 7.3.1 on Solaris 8

Installing PG 7.3.1 on Solaris 8

From
"Chris Boget"
Date:
Postgresql make fails with this message:
../../../src/include/catalog/indexing.h --set-version=7.3.1
awk: syntax error near line 63
awk: illegal statement near line 63
make[3]: *** [postgres.bki] Error 2
make[3]: Leaving directory
`/opt/pgsql/postgresql-7.3.1/src/backend/catalog'
make[2]: *** [catalog-recursive] Error 2
make[2]: Leaving directory `/opt/pgsql/postgresql-7.3.1/src/backend'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/opt/pgsql/postgresql-7.3.1/src'
make: *** [all] Error 2

Arch is Solaris 8 SPARC; I followed this guide to the letter:

http://techdocs.postgresql.org/guides/PackagingForSolaris

I searched the general and bug lists, found nothing.

Any ideas what might be going wrong?

Chris


Re: Installing PG 7.3.1 on Solaris 8

From
Tom Lane
Date:
"Chris Boget" <chris@wild.net> writes:
> Postgresql make fails with this message:
> ../../../src/include/catalog/indexing.h --set-version=7.3.1
> awk: syntax error near line 63
> awk: illegal statement near line 63

> Arch is Solaris 8 SPARC; I followed this guide to the letter:
> http://techdocs.postgresql.org/guides/PackagingForSolaris

Looks like you have an old crufty awk.  One solution is to install GNU
awk (gawk).  However, I seem to recall that Solaris comes with more than
one awk already; poke around and see if you find anything named awk or
nawk.  If you do, try re-running configure after putting the other awk
earlier in your PATH (or just hack the AWK variable in
src/Makefile.global).

Justin, what was your PATH when you wrote that document?  You don't
mention needing GNU awk ... what did configure pick for you?

            regards, tom lane

Re: Installing PG 7.3.1 on Solaris 8

From
Justin Clift
Date:
Tom Lane wrote:
<snip>
> Justin, what was your PATH when you wrote that document?  You don't
> mention needing GNU awk ... what did configure pick for you?

Don't recall off of the top of my head, however the only other place
likely to have awk in it is /usr/ccs/bin.

Chris, if you could set your path to something like:

PATH=/usr/ccs/bin:/usr/local/bin:/usr/bin

That should force any awk in /usr/ccs/bin to be found first.

It's probably best if you do a "make clean" and remove the config.cache
file before doing ./configure again and compiling.

If that works for you, then the Solaris packaging guide will definitely
be updated with a note to reflect this.  If not, then I'd suspect you
might not have all of the Solaris development packages installed, or you
box may need patching to bring it up to date.

Regards and best wishes,

Justin Clift


>             regards, tom lane


--
"My grandfather once told me that there are two kinds of people: those
who work and those who take the credit. He told me to try to be in the
first group; there was less competition there."
- Indira Gandhi




Re: Installing PG 7.3.1 on Solaris 8

From
Jeff Eckermann
Date:
Solaris has an ancient Awk installed.  The newer one
is there, but named "nawk".
Searching the archives of the comp.lang.awk NG using
keywork "solaris" will yield more information than
anyone here could be interested in knowing :-)

--- Justin Clift <justin@postgresql.org> wrote:
> Tom Lane wrote:
> <snip>
> > Justin, what was your PATH when you wrote that
> document?  You don't
> > mention needing GNU awk ... what did configure
> pick for you?
>
> Don't recall off of the top of my head, however the
> only other place
> likely to have awk in it is /usr/ccs/bin.
>
> Chris, if you could set your path to something like:
>
> PATH=/usr/ccs/bin:/usr/local/bin:/usr/bin
>
> That should force any awk in /usr/ccs/bin to be
> found first.
>
> It's probably best if you do a "make clean" and
> remove the config.cache
> file before doing ./configure again and compiling.
>
> If that works for you, then the Solaris packaging
> guide will definitely
> be updated with a note to reflect this.  If not,
> then I'd suspect you
> might not have all of the Solaris development
> packages installed, or you
> box may need patching to bring it up to date.
>
> Regards and best wishes,
>
> Justin Clift
>
>
> >             regards, tom lane
>
>
> --
> "My grandfather once told me that there are two
> kinds of people: those
> who work and those who take the credit. He told me
> to try to be in the
> first group; there was less competition there."
> - Indira Gandhi
>
>
>
>
> ---------------------------(end of
> broadcast)---------------------------
> TIP 1: subscribe and unsubscribe commands go to
majordomo@postgresql.org


__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

Re: Installing PG 7.3.1 on Solaris 8

From
Andrew Sullivan
Date:
On Wed, Jan 29, 2003 at 02:04:22PM -0500, Tom Lane wrote:
> "Chris Boget" <chris@wild.net> writes:

> > awk: syntax error near line 63
> > awk: illegal statement near line 63

> Looks like you have an old crufty awk.  One solution is to install GNU
> awk (gawk).  However, I seem to recall that Solaris comes with more than
> one awk already; poke around and see if you find anything named awk or
> nawk.  If you do, try re-running configure after putting the other awk
> earlier in your PATH (or just hack the AWK variable in
> src/Makefile.global).

Do the latter.  Use nawk on Solaris, which is reasonably non-crufty.
The standard awk, for reasons that I'm sure Sun could tell us if they
could be bothered, is some _terribly_ broken version.

If you fool with your $PATH enough, you'll get the right awk anyway
(I did this accidentally one time, and it took quite a bit of time to
figure out why things suddenly stopped working); I just can't
remember exactly what $PATH you need, and nawk always works.

A

--
----
Andrew Sullivan                         204-4141 Yonge Street
Liberty RMS                           Toronto, Ontario Canada
<andrew@libertyrms.info>                              M2P 2A8
                                         +1 416 646 3304 x110