Обсуждение: Postgres 6.4, gmake, d: command not found

Поиск
Список
Период
Сортировка

Postgres 6.4, gmake, d: command not found

От
Eric Scroger
Дата:
Greetings,

I am having problems compiling Postgres 6.4.2 on Solaris 7.
I know, 6.4?, why aren't you using 7.1/7.2.   Well, a number
of our clients still use 6.4.  We will upgrade them to 7.1/7.2
later this year.

In the meantime, I have been given another development box
on which I need to install Postgres 6.4.  I have the src tarball,
postgresql-6.4.2.tar.  I have run configure and tried making,
using gmake all.  The following error arises.  Any ideas?

Thanks,

Eric

------------------------------------

gmake[2]: Entering directory
`/usr/share/src/pgsql/postgresql-6.4.2/src/backend/bootstrap'
d bootparse.y
gmake[2]: d: Command not found
gmake[2]: [bootparse.c] Error 127 (ignored)
grep -v "^#" boot.sed > sedfile
sed -f sedfile < y.tab.c > bootparse.c
/bin/sh: y.tab.c: cannot open
gmake[2]: *** [bootparse.c] Error 1
gmake[2]: Leaving directory
`/usr/share/src/pgsql/postgresql-6.4.2/src/backend/bootstrap'
gmake[1]: *** [bootstrap.dir] Error 2
gmake[1]: Leaving directory
`/usr/share/src/pgsql/postgresql-6.4.2/src/backend'
gmake: *** [all] Error 2




Re: Postgres 6.4, gmake, d: command not found

От
Bruce Momjian
Дата:
My guess is that you are being bitten by a bug we had with the sed
scripts in those old releases.  Seems newer seds are more prone to
trigger that bug.  As I remember, it was something about the sed's and
backslashes in one of the *.sh files in the backend directory.  I don't
remember more.  Try and find that command, send the script to me, and I
will recognize the bug we fixed.

Also, wipe all the dust off that old tarball.  :-)


---------------------------------------------------------------------------

Eric Scroger wrote:
> Greetings,
>
> I am having problems compiling Postgres 6.4.2 on Solaris 7.
> I know, 6.4?, why aren't you using 7.1/7.2.   Well, a number
> of our clients still use 6.4.  We will upgrade them to 7.1/7.2
> later this year.
>
> In the meantime, I have been given another development box
> on which I need to install Postgres 6.4.  I have the src tarball,
> postgresql-6.4.2.tar.  I have run configure and tried making,
> using gmake all.  The following error arises.  Any ideas?
>
> Thanks,
>
> Eric
>
> ------------------------------------
>
> gmake[2]: Entering directory
> `/usr/share/src/pgsql/postgresql-6.4.2/src/backend/bootstrap'
> d bootparse.y
> gmake[2]: d: Command not found
> gmake[2]: [bootparse.c] Error 127 (ignored)
> grep -v "^#" boot.sed > sedfile
> sed -f sedfile < y.tab.c > bootparse.c
> /bin/sh: y.tab.c: cannot open
> gmake[2]: *** [bootparse.c] Error 1
> gmake[2]: Leaving directory
> `/usr/share/src/pgsql/postgresql-6.4.2/src/backend/bootstrap'
> gmake[1]: *** [bootstrap.dir] Error 2
> gmake[1]: Leaving directory
> `/usr/share/src/pgsql/postgresql-6.4.2/src/backend'
> gmake: *** [all] Error 2
>
>
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 3: if posting/reading through Usenet, please send an appropriate
> subscribe-nomail command to majordomo@postgresql.org so that your
> message can get through to the mailing list cleanly
>

--
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 853-3000
  +  If your life is a hard drive,     |  830 Blythe Avenue
  +  Christ can be your backup.        |  Drexel Hill, Pennsylvania 19026

Re: Postgres 6.4, gmake, d: command not found

От
Tom Lane
Дата:
Eric Scroger <escroger@carl.org> writes:
> gmake[2]: Entering directory
> `/usr/share/src/pgsql/postgresql-6.4.2/src/backend/bootstrap'
> d bootparse.y
> gmake[2]: d: Command not found
> gmake[2]: [bootparse.c] Error 127 (ignored)

Looks like the configure script has chosen "d" instead of bison or yacc
(not clear why ... do you have YACC defined in your environment?)

You'll probably get further if you install bison and reconfigure.

            regards, tom lane