WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: postgresql12 - pg_config missing  (Read 2202 times)

Offline jaegere57

  • Newbie
  • *
  • Posts: 2
postgresql12 - pg_config missing
« on: August 12, 2020, 06:48:44 PM »
Hello, I am new to Tiny Core and am working on a project that uses the postgresq12.tcz extension. The end goal is to have TimescaleDB installed onto my TC (5.4.3-tinycore) as well.

At the moment, though, I am unable to build TimescaleDB on TC due to it being unable to find a postgres client application "pg_config" (documentation here: https://www.postgresql.org/docs/12/app-pgconfig.html). When I try to build TimescaleDB, this is my feedback:

Code: (bash) [Select]
$ sudo ./bootstrap

Build system already initialized in ./build
Do you want to remove it (this is IMMEDIATE and PERMANENT), y/n? y

-- The C compiler identification is GNU 9.2.0
-- Check for working C compiler: /usr/local/bin/cc
-- Check for working C compiler: /usr/local/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- TimescaleDB version 1.7.0. Can be updated from version 1.6.1
-- Build type is Release
-- Install method is 'source'
-- Performing Test CC_SUPPORTS_VISIBILITY_HIDDEN
-- Performing Test CC_SUPPORTS_VISIBILITY_HIDDEN - Success
-- Using compiler GNU
CMake Error at CMakeLists.txt:174 (message):
  Unable to find 'pg_config'

-- Configuring incomplete, errors occurred!
See also "/mnt/sda1/timescaledb/build/CMakeFiles/CMakeOutput.log".

After a thorough search, sure enough, there was no "pg_config" to be found in my directories.

Did I possibly make a mistake when I installed postgresql12.tcz and that's why pg_config cannot be found? Or, if it isn't included in the extension, how would one go about creating/replicating it?

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11705
Re: postgresql12 - pg_config missing
« Reply #1 on: August 12, 2020, 11:41:46 PM »
Hi jaegere57
Welcome to the forum.

If you look in  postgresql-12-dev.tcz  you will find it contains  /usr/local/pgsql12/bin/pg_config.

Offline jaegere57

  • Newbie
  • *
  • Posts: 2
Re: postgresql12 - pg_config missing
« Reply #2 on: August 13, 2020, 10:59:46 PM »

If you look in  postgresql-12-dev.tcz  you will find it contains  /usr/local/pgsql12/bin/pg_config.


That makes sense. Thanks for the help Rich!