pgenv: Cannot start 17beta1 after build successfull

When I try to pgenv use 17beta1 I get an error: PostgreSQL 17beta1 not installed; installed versions: No PostgreSQL version is installed! When I execute make install in src directory then I can use and start

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Reactions: 1
  • Comments: 18 (1 by maintainers)

Most upvoted comments

Oh if you’re building from the Git repo you’ll probably need to install install DocBook stuff. Details here.

After installation of DocBook stuff it’s working fine.

/usr/bin/make -C vacuumlo install
make[2]: Entering directory '/home/paul/.pgenv/src/postgresql-17beta1/contrib/vacuumlo'
/usr/bin/mkdir -p '/home/paul/.pgenv/pgsql-17beta1/bin'
/usr/bin/install -c  vacuumlo '/home/paul/.pgenv/pgsql-17beta1/bin'
make[2]: Leaving directory '/home/paul/.pgenv/src/postgresql-17beta1/contrib/vacuumlo'
make[1]: Leaving directory '/home/paul/.pgenv/src/postgresql-17beta1/contrib'
pgenv configuration written to file /home/paul/.pgenv/config/17beta1.conf
PostgreSQL 17beta1 built
➜  ~ pgenv use 17beta1
The files belonging to this database system will be owned by user "paul".
This user must also own the server process.

The database cluster will be initialized with locale "en_US.UTF-8".
The default text search configuration will be set to "english".

Data page checksums are disabled.

creating directory /home/paul/.pgenv/pgsql/data ... ok
creating subdirectories ... ok
selecting dynamic shared memory implementation ... posix
selecting default "max_connections" ... 100
selecting default "shared_buffers" ... 128MB
selecting default time zone ... Europe/Brussels
creating configuration files ... ok
running bootstrap script ... ok
performing post-bootstrap initialization ... ok
syncing data to disk ... ok

initdb: warning: enabling "trust" authentication for local connections
initdb: hint: You can change this by editing pg_hba.conf or using the option -A, or --auth-local and --auth-host, the next time you run initdb.

Success. You can now start the database server using:

    /home/paul/.pgenv/pgsql/bin/pg_ctl -D /home/paul/.pgenv/pgsql/data -l logfile start

PostgreSQL 17beta1 started
Logging to /home/paul/.pgenv/pgsql/data/server.log
➜  ~ psql -U postgres -c "select version();"
                                                 version
----------------------------------------------------------------------------------------------------------
 PostgreSQL 17beta1 on x86_64-pc-linux-gnu, compiled by gcc (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0, 64-bit
(1 row)

➜  ~

So I suppose the check of installation should be part of the check

Oh if you’re building from the Git repo you’ll probably need to install install DocBook stuff. Details here.