Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nRWTt-000477-Az for pgsql-general@arkaria.postgresql.org; Tue, 08 Mar 2022 09:50:13 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nRWTs-0006UH-9w for pgsql-general@arkaria.postgresql.org; Tue, 08 Mar 2022 09:50:12 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nRWTr-0006U7-SZ for pgsql-general@lists.postgresql.org; Tue, 08 Mar 2022 09:50:11 +0000 Received: from mail-ed1-x533.google.com ([2a00:1450:4864:20::533]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1nRWTn-00047U-NR for pgsql-general@lists.postgresql.org; Tue, 08 Mar 2022 09:50:11 +0000 Received: by mail-ed1-x533.google.com with SMTP id w4so21127275edc.7 for ; Tue, 08 Mar 2022 01:50:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cybertec-at.20210112.gappssmtp.com; s=20210112; h=message-id:subject:from:to:date:in-reply-to:references:user-agent :mime-version:content-transfer-encoding; bh=FvEsWxGV6d12rA0zaChzCnPc1d0MyiI98r72ox6ww3g=; b=TWB9DbM3yC4mHn/tplrvolI3Np6bjECk5cBxqqnz3NOasU+WoVlG88rgCHCfQIOjFe WwujZTaZsNk5s/2kOPO5NpLUpPdYdb4hpceZ+YOqqDECK2wTXz4BCnx42lGb6LeJtRkv h15Yg95TkBSsuHC2JPiI/zX5xa8dL/TrYkmeMuMcOSaqQeFTJ+R6M7DmgbqdQ7VsGwJQ HPgfbFpmsgEosHkfMlnBGeSi3eHuq8PRl4XjoNa9MVbMjeOXnlhXwQx1k3MQ/+vx+xj/ ckYbs2NvtYo4Yr0zGi+eQ/SLTSybVxAqFr+OsHlYE2o3Rf11BKRDHyFGQVBYb1DiJzcy D0sQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:subject:from:to:date:in-reply-to :references:user-agent:mime-version:content-transfer-encoding; bh=FvEsWxGV6d12rA0zaChzCnPc1d0MyiI98r72ox6ww3g=; b=O5y8Q4Q+IkeZx/Ehqp4SWamJ6HMBgaP+BoQcHqYHR8LkDD4ibpfHkZX1zMWYIiFJUv UAnMByBEyWglzTgsTwAlvJCHVCGDlTwZL7w8SHuGt/qklCOkIs7ibiAeBWTG9GC5utXT GOVYaxIYVnICuzdK/6VqJtOfU8GSVQ7N22+L9TMleXjsRjcD0M/I/3GQ34GwjbjU5xcA k87zqZHghV2vkMRNM5RC5OsW0vdYfF51UbFX7R47QxmTanB7HbQShV+OsCH1BVZ6QRr+ OuCbTvlpdRSezHO1wqMkfLF5zUlbfAl8hYOQW/I1Daq82G7LmW1ct485d0FqMBBNcGic Cllg== X-Gm-Message-State: AOAM533wZuCw0ctPGAIUMIONHfgthL9/MC7bOX7RPqhI3t+Qzoh5HoSV vR/aaAyWIMRyaGZynURc1C0oOg== X-Google-Smtp-Source: ABdhPJwbQlqDim6/8JnWbVfHcluLi3CX4qs/iAAbKHkRjUcOopLZ5wuGcQdu/+V8sUKDSmTH42rDUA== X-Received: by 2002:a50:9d47:0:b0:40f:9d3d:97b6 with SMTP id j7-20020a509d47000000b0040f9d3d97b6mr15105626edk.392.1646733005598; Tue, 08 Mar 2022 01:50:05 -0800 (PST) Received: from localhost.localdomain ([2001:871:5e:1afe:32b0:4c90:c0f:c923]) by smtp.gmail.com with ESMTPSA id v5-20020a50c405000000b004161123bf7asm5421647edf.67.2022.03.08.01.50.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Mar 2022 01:50:05 -0800 (PST) Message-ID: <37d8bacd9f487e572c807f3d5e5b83ae18c02c68.camel@cybertec.at> Subject: Re: A simple question: Why 'pg_ctl: command not found...' ? From: Laurenz Albe To: BeginnerC , PostgreSQL General Date: Tue, 08 Mar 2022 10:50:04 +0100 In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.40.4 (3.40.4-3.fc34) MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk 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