pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
BUG #13586: Repository/Distribution issues
4+ messages / 4 participants
[nested] [flat]

* BUG #13586: Repository/Distribution issues
@ 2015-08-25 16:06  dmt.shvedov@gmail.com
  0 siblings, 1 reply; 4+ messages in thread

From: dmt.shvedov@gmail.com @ 2015-08-25 16:06 UTC (permalink / raw)
  To: pgsql-bugs

The following bug has been logged on the website:

Bug reference:      13586
Logged by:          Dmitry Shvedov
Email address:      dmt.shvedov@gmail.com
PostgreSQL version: 9.4.4
Operating system:   Linux Mint
Description:        

Hi,
Installing from the Repository provided here and following all instructions
as for Ubuntu 14.04 (that my Mint 17.02 is based on):
http://www.postgresql.org/download/linux/ubuntu/

After installing all packages, cannot launch postgres:

$ postgres -D /usr/local/pgsql/data
The program 'postgres' is currently not installed. You can install it by
typing:
sudo apt-get install postgres-xc

$ sudo apt-get install postgres-xc
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help resolve the situation:

The following packages have unmet dependencies:
 postgres-xc : Depends: postgres-xc-client but it is not going to be
installed
E: Unable to correct problems, you have held broken packages.

$ sudo apt-get install postgres-xc-9.4
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package postgres-xc-9.4
E: Couldn't find any package by regex 'postgres-xc-9.4'



I assume I need postgres-xc, but that package is not in your repo, I only
have the one from Ubuntu - for older version of Postgres.

Am I doing something wrong here?
Thanks.


-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: BUG #13586: Repository/Distribution issues
@ 2015-08-26 00:39  Michael Paquier <michael.paquier@gmail.com>
  parent: dmt.shvedov@gmail.com
  0 siblings, 1 reply; 4+ messages in thread

From: Michael Paquier @ 2015-08-26 00:39 UTC (permalink / raw)
  To: dmt.shvedov@gmail.com; +Cc: pgsql-bugs

On Wed, Aug 26, 2015 at 1:06 AM,  <dmt.shvedov@gmail.com> wrote:
> Operating system:   Linux Mint
> After installing all packages, cannot launch postgres:
>
> $ postgres -D /usr/local/pgsql/data
> The program 'postgres' is currently not installed. You can install it by
> typing:
> sudo apt-get install postgres-xc
> [...]
> I assume I need postgres-xc, but that package is not in your repo, I only
> have the one from Ubuntu - for older version of Postgres.

No, Postgres-XC is a fork of Postgres. You don't need XC when
attempting to use only Postgres.

> Am I doing something wrong here?

So, you are trying to use Postgres and not Postgres-XC here, right?
Postgres-XC uses the same binary names as Postgres, so perhaps you
have in your PATH some left garbage of an ancient Postgres-XC
installation? In any case, this is not a PostgreSQL bug, this is
either an issue with the packaging of the distribution you are using
or your environment.
-- 
Michael


-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: BUG #13586: Repository/Distribution issues
@ 2015-08-26 03:48  Dmitry Shvedov <dmt.shvedov@gmail.com>
  parent: Michael Paquier <michael.paquier@gmail.com>
  0 siblings, 1 reply; 4+ messages in thread

From: Dmitry Shvedov @ 2015-08-26 03:48 UTC (permalink / raw)
  To: Michael Paquier <michael.paquier@gmail.com>; +Cc: pgsql-bugs

Michael, thanks for your response.
You're right about the PATH. However, it's a fresh linux install and
postgres has not been installed here before. What happened was that the
installation from this repo:
deb http://apt.postgresql.org/pub/repos/apt/ trusty-pgdg main
did not add the executable to the PATH automatically as any installation on
Debian derivatives always does. Perhaps there's a valid reason for this,
but it's not a behavior that I expected. If it makes sense maybe the
installation packages should be modified to do that? Thanks.

On Tue, Aug 25, 2015 at 8:39 PM, Michael Paquier <michael.paquier@gmail.com>
wrote:

> On Wed, Aug 26, 2015 at 1:06 AM,  <dmt.shvedov@gmail.com> wrote:
> > Operating system:   Linux Mint
> > After installing all packages, cannot launch postgres:
> >
> > $ postgres -D /usr/local/pgsql/data
> > The program 'postgres' is currently not installed. You can install it by
> > typing:
> > sudo apt-get install postgres-xc
> > [...]
> > I assume I need postgres-xc, but that package is not in your repo, I only
> > have the one from Ubuntu - for older version of Postgres.
>
> No, Postgres-XC is a fork of Postgres. You don't need XC when
> attempting to use only Postgres.
>
> > Am I doing something wrong here?
>
> So, you are trying to use Postgres and not Postgres-XC here, right?
> Postgres-XC uses the same binary names as Postgres, so perhaps you
> have in your PATH some left garbage of an ancient Postgres-XC
> installation? In any case, this is not a PostgreSQL bug, this is
> either an issue with the packaging of the distribution you are using
> or your environment.
> --
> Michael
>

^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: BUG #13586: Repository/Distribution issues
@ 2015-08-26 16:00  David G. Johnston <david.g.johnston@gmail.com>
  parent: Dmitry Shvedov <dmt.shvedov@gmail.com>
  0 siblings, 0 replies; 4+ messages in thread

From: David G. Johnston @ 2015-08-26 16:00 UTC (permalink / raw)
  To: Dmitry Shvedov <dmt.shvedov@gmail.com>; +Cc: Michael Paquier <michael.paquier@gmail.com>; pgsql-bugs

On Tue, Aug 25, 2015 at 11:48 PM, Dmitry Shvedov <dmt.shvedov@gmail.com>
wrote:

> Michael, thanks for your response.
> You're right about the PATH. However, it's a fresh linux install and
> postgres has not been installed here before. What happened was that the
> installation from this repo:
> deb http://apt.postgresql.org/pub/repos/apt/ trusty-pgdg main
> did not add the executable to the PATH automatically as any installation
> on Debian derivatives always does. Perhaps there's a valid reason for this,
> but it's not a behavior that I expected. If it makes sense maybe the
> installation packages should be modified to do that? Thanks.
>
> On Tue, Aug 25, 2015 at 8:39 PM, Michael Paquier <
> michael.paquier@gmail.com> wrote:
>
>> On Wed, Aug 26, 2015 at 1:06 AM,  <dmt.shvedov@gmail.com> wrote:
>> > Operating system:   Linux Mint
>> > After installing all packages, cannot launch postgres:
>> >
>> > $ postgres -D /usr/local/pgsql/data
>> > The program 'postgres' is currently not installed. You can install it by
>> > typing:
>> > sudo apt-get install postgres-xc
>> > [...]
>> > I assume I need postgres-xc, but that package is not in your repo, I
>> only
>> > have the one from Ubuntu - for older version of Postgres.
>>
>
​I am reasonably certain that the reason "postgres" is not on the path is
because the package supplies various "cluster-managing" versions (wrappers)
of (over) the executables that are intended to be run instead.  If you
choose to forgo those wrappers and do things directly you are expected to
be able to manage the necessary changes to make that work.

David J.
​

^ permalink  raw  reply  [nested|flat] 4+ messages in thread


end of thread, other threads:[~2015-08-26 16:00 UTC | newest]

Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2015-08-25 16:06 BUG #13586: Repository/Distribution issues dmt.shvedov@gmail.com
2015-08-26 00:39 ` Michael Paquier <michael.paquier@gmail.com>
2015-08-26 03:48   ` Dmitry Shvedov <dmt.shvedov@gmail.com>
2015-08-26 16:00     ` David G. Johnston <david.g.johnston@gmail.com>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox