pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Laurenz Albe <laurenz.albe@cybertec.at>
To: BeginnerC <chuxuec@outlook.com>
To: PostgreSQL General <pgsql-general@lists.postgresql.org>
Subject: Re: A simple question: Why 'pg_ctl: command not found...' ?
Date: Tue, 08 Mar 2022 10:50:04 +0100
Message-ID: <37d8bacd9f487e572c807f3d5e5b83ae18c02c68.camel@cybertec.at> (raw)
In-Reply-To: <TYAP286MB063677A6E825062FFE4FF3F1A9099@TYAP286MB0636.JPNP286.PROD.OUTLOOK.COM>
References: <TYAP286MB063677A6E825062FFE4FF3F1A9099@TYAP286MB0636.JPNP286.PROD.OUTLOOK.COM>

On Tue, 2022-03-08 at 17:44 +0800, BeginnerC wrote:
> When I start to learn the 'pg_ctl',
> the bash echo 'pg_ctl: command not found...' and then print 'Install package 'postgresql-server' to provide command 'pg_ctl'? [N/y]'
> I am confused because I had already install the PostgreSQL correctly just follow the postgres Document,
> to prove that,I use the psql to connect to the postgres and execute some sql statements
> (Just like 'CREATE TABLE', 'SELECT' and 'INSERT'),and these statements executed successfully.
> So how to solve this problem? Should I use the dnf to install the 'postgresql-server' or just add some path to the environment variable?
> My system is Fedora 35 and the PostgreSQL version is 14.

Ignore the overly helpful prompt to install PostgreSQL packages from your Linux distribution.

Your only problem is that /usr/pgsql-14/bin is not in your PATH environment variable.

Yours,
Laurenz Albe
-- 
Cybertec | https://www.cybertec-postgresql.com






view thread (3+ messages)  latest in thread

Message-ID: <37d8bacd9f487e572c807f3d5e5b83ae18c02c68.camel@cybertec.at>
Permalink:  ../37d8bacd9f487e572c807f3d5e5b83ae18c02c68.camel@cybertec.at/
Also on:    postgresql.org/message-id/37d8bacd9f487e572c807f3d5e5b83ae18c02c68.camel@cybertec.at

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: laurenz.albe@cybertec.at, chuxuec@outlook.com
  Subject: Re: A simple question: Why 'pg_ctl: command not found...' ?
  In-Reply-To: <37d8bacd9f487e572c807f3d5e5b83ae18c02c68.camel@cybertec.at>
  References: <TYAP286MB063677A6E825062FFE4FF3F1A9099@TYAP286MB0636.JPNP286.PROD.OUTLOOK.COM> <37d8bacd9f487e572c807f3d5e5b83ae18c02c68.camel@cybertec.at>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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