Re: 9.3.2 Client-only installation per docs fails creating directory.

Lists: pgsql-hackers
From: Mike Blackwell <mike(dot)blackwell(at)rrd(dot)com>
To: PgHacker <pgsql-hackers(at)postgresql(dot)org>
Subject: 9.3.2 Client-only installation per docs fails creating directory.
Date: 2014-01-16 21:59:15
Message-ID: CANPAkgtJaOZ=aoRuiVvuwHdTC5ZGVdq7u4zX3TqO107wut7z6g@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

Per the docs (15.4 Installation Procedure, Client-only installation), after
running make, the following should work:

gmake -C src/bin installgmake -C src/include installgmake -C
src/interfaces installgmake -C doc install

However, it fails on the first command:

[postgresql-9.3.2]$ sudo gmake -C src/bin install
gmake: Entering directory `/opt/postgresql-9.3.2/src/bin'
gmake -C initdb install
gmake[1]: Entering directory `/opt/postgresql-9.3.2/src/bin/initdb'
gmake -C ../../../src/port all
[successful stuff cut here]
/bin/mkdir -p '/usr/local/pgsql-9.3.2/bin'
/usr/bin/install -c psql '/usr/local/pgsql-9.3.2/bin/psql'
/usr/bin/install -c -m 644 ./psqlrc.sample
'/usr/local/pgsql-9.3.2/share/psqlrc.sample'
/usr/bin/install: cannot create regular file
`/usr/local/pgsql-9.3.2/share/psqlrc.sample': No such file or directory
gmake[1]: *** [install] Error 1
gmake[1]: Leaving directory `/opt/postgresql-9.3.2/src/bin/psql'
gmake: *** [install-psql-recurse] Error 2
gmake: Leaving directory `/opt/postgresql-9.3.2/src/bin'

The directory 'share' does not exist, which seem to be the issue. Is there
a missing dependency somewhere?

It appears the doc install correctly creates 'share', so installing src/bin
last works.

__________________________________________________________________________________
*Mike Blackwell | Technical Analyst, Distribution Services/Rollout
Management | RR Donnelley*
1750 Wallace Ave | St Charles, IL 60174-3401
Office: 630.313.7818
Mike(dot)Blackwell(at)rrd(dot)com
http://www.rrdonnelley.com

<http://www.rrdonnelley.com/>
* <Mike(dot)Blackwell(at)rrd(dot)com>*


From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: Mike Blackwell <mike(dot)blackwell(at)rrd(dot)com>
Cc: PgHacker <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: 9.3.2 Client-only installation per docs fails creating directory.
Date: 2014-01-18 04:19:05
Message-ID: 1390018745.20109.4.camel@vanquo.pezone.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-hackers

On Thu, 2014-01-16 at 15:59 -0600, Mike Blackwell wrote:
> Per the docs (15.4 Installation Procedure, Client-only installation),
> after running make, the following should work:
>
>
> gmake -C src/bin install
> gmake -C src/include install
> gmake -C src/interfaces install
> gmake -C doc install

Fixed, thanks.

(It works if you have NLS enabled, which is why this was probably not
reported before.)