pg.ddx.io pgsql-general@postgresql.org mailing list archive
help / color / mirror / Atom feed From: Moses Mafusire <mosesmafusire@yahoo.com>
To: pgsql-general@lists.postgresql.org <pgsql-general@lists.postgresql.org>
To: Adrian Klaver <adrian.klaver@aklaver.com>
Subject: Re: Cstore_fdw issue.
Date: Fri, 3 Apr 2020 12:53:50 +0000 (UTC)
Message-ID: <2128533583.79465.1585918430902@mail.yahoo.com> (raw )
In-Reply-To: <64267886-2561-891a-0334-760fda81cc9b@aklaver.com >
References: <1455749297.1247796.1585860011052.ref@mail.yahoo.com >
<1455749297.1247796.1585860011052@mail.yahoo.com >
<64267886-2561-891a-0334-760fda81cc9b@aklaver.com >
Hi Adrian, Thanks for your response. Here is what I'm getting when I run pg_config;
$ pg_configBINDIR = /usr/binDOCDIR = /usr/share/doc/pgsqlHTMLDIR = /usr/share/doc/pgsqlINCLUDEDIR = /usr/includePKGINCLUDEDIR = /usr/include/pgsqlINCLUDEDIR-SERVER = /usr/include/pgsql/serverLIBDIR = /usr/lib64PKGLIBDIR = /usr/lib64/pgsqlLOCALEDIR = /usr/share/localeMANDIR = /usr/share/manSHAREDIR = /usr/share/pgsqlSYSCONFDIR = /etcPGXS = /usr/lib64/pgsql/pgxs/src/makefiles/pgxs.mkCONFIGURE = '--build=x86_64-redhat-linux-gnu' '--host=x86_64-redhat-linux-gnu' '--program-prefix=' '--disable-dependency-tracking' '--prefix=/usr' '--exec-prefix=/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin' '--sysconfdir=/etc' '--datadir=/usr/share' '--includedir=/usr/include' '--libdir=/usr/lib64' '--libexecdir=/usr/libexec' '--localstatedir=/var' '--sharedstatedir=/var/lib' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--disable-rpath' '--with-ldap' '--with-openssl' '--with-gssapi' '--enable-nls' '--without-readline' '--datadir=/usr/share/pgsql' 'build_alias=x86_64-redhat-linux-gnu' 'host_alias=x86_64-redhat-linux-gnu' 'CFLAGS=-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' 'LDFLAGS=-Wl,-z,relro -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld' 'CXXFLAGS=-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' 'PKG_CONFIG_PATH=:/usr/lib64/pkgconfig:/usr/share/pkgconfig'CC = gccCPPFLAGS = -D_GNU_SOURCECFLAGS = -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Werror=vla -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv -fexcess-precision=standard -Wno-format-truncation -Wno-stringop-truncation -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protectionCFLAGS_SL = -fPICLDFLAGS = -Wl,-z,relro -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -Wl,--as-neededLDFLAGS_EX = LDFLAGS_SL = LIBS = -lpgcommon -lpgport -lpthread -lssl -lcrypto -lgssapi_krb5 -lz -lrt -lcrypt -ldl -lm VERSION = PostgreSQL 12.1
Moses MafusireMCITP DBA, MCTS SQLDeveloper, MCTS Windows 7 Fundamentals, Certified Internet CIW FoundationsAssociate, Project+, A+, Security+, Linux+, ITIL
On Thursday, April 2, 2020, 06:27:31 PM EDT, Adrian Klaver <adrian.klaver@aklaver.com> wrote:
On 4/2/20 1:40 PM, Moses Mafusire wrote:
> Hi,
> I am new to PostgreSQL, successfully installed PGSql v12.2 on my CentOS
> 7 machine and I am trying to install cstore_fdw.
>
> 1. I have managed to run this command;
> /sudo yum install protobuf-c-devel/
> /
> /
> / 2. /Per the instructions I am followin;
> / Once you have protobuf-c installed on your machine, you are
> ready to build cstore_fdw. For this, you need to include the pg_config
> directory path in your make command. /
> /
> /
> // 3. I have searched for pg_config directory and found 2 locations;
> /usr/bin/pg_config
> /usr/pgsql-12/bin/pg_config
> //4. However when I try to run makefile in c_store_fdw I get this error;
> [postgres@dart-centos cstore_fdw]$ sudo PATH=/usr/bin/:$PATH make
> / [sudo] password for postgres: /
> Makefile:50: *** PostgreSQL 9.3 to 12 is required to compile
> this extension. Stop.
>
> // I even tried the other path, same error;
> [postgres@dart-centos cstore_fdw]$
> PATH=/usr/pgsql-12/bin/:$PATH make
> Makefile:50: *** PostgreSQL 9.3 to 12 is required to compile
> this extension. Stop.
>
>
> 5. PostgreSQL Version
> / postgres=# show server_version;/
> server_version
> ----------------
> 12.2
> (1 row)
>
> postgres=# \! psql -V
> psql (PostgreSQL) 12.2
>
> May you please assist me with this issue. //
What do you get if you run:
pg_config
from the command line.
An example from my machine:
aklaver@maura:~> pg_config
BINDIR = /usr/local/pgsql12/bin
DOCDIR = /usr/local/pgsql12/share/doc
HTMLDIR = /usr/local/pgsql12/share/doc
INCLUDEDIR = /usr/local/pgsql12/include
PKGINCLUDEDIR = /usr/local/pgsql12/include
INCLUDEDIR-SERVER = /usr/local/pgsql12/include/server
LIBDIR = /usr/local/pgsql12/lib64
PKGLIBDIR = /usr/local/pgsql12/lib64
LOCALEDIR = /usr/local/pgsql12/share/locale
MANDIR = /usr/local/pgsql12/share/man
SHAREDIR = /usr/local/pgsql12/share
SYSCONFDIR = /usr/local/pgsql12/etc
PGXS = /usr/local/pgsql12/lib64/pgxs/src/makefiles/pgxs.mk
CONFIGURE = '--with-python' '--with-openssl' '--with-libxml'
'--with-uuid=ossp' '--prefix=/usr/local/pgsql12'
CC = gcc
CPPFLAGS = -D_GNU_SOURCE -I/usr/include/libxml2
CFLAGS = -Wall -Wmissing-prototypes -Wpointer-arith
-Wdeclaration-after-statement -Werror=vla -Wendif-labels
-Wmissing-format-attribute -Wformat-security -fno-strict-aliasing
-fwrapv -fexcess-precision=standard -Wno-format-truncation -O2
CFLAGS_SL = -fPIC
LDFLAGS = -Wl,--as-needed
-Wl,-rpath,'/usr/local/pgsql12/lib64',--enable-new-dtags
LDFLAGS_EX =
LDFLAGS_SL =
LIBS = -lpgcommon -lpgport -lpthread -lxml2 -lssl -lcrypto -lz
-lreadline -lrt -lcrypt -ldl -lm
VERSION = PostgreSQL 12.1
>
> Thank You,
> Moses
--
Adrian Klaver
adrian.klaver@aklaver.com
view thread (13+ messages) latest in thread
Message-ID: <2128533583.79465.1585918430902@mail.yahoo.com>
Permalink: ../2128533583.79465.1585918430902@mail.yahoo.com/
Also on: postgresql.org/message-id/2128533583.79465.1585918430902@mail.yahoo.com
copy link · copy postgr.es
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: mosesmafusire@yahoo.com, adrian.klaver@aklaver.com
Subject: Re: Cstore_fdw issue.
In-Reply-To: <2128533583.79465.1585918430902@mail.yahoo.com>
References: <1455749297.1247796.1585860011052.ref@mail.yahoo.com> <1455749297.1247796.1585860011052@mail.yahoo.com> <64267886-2561-891a-0334-760fda81cc9b@aklaver.com> <2128533583.79465.1585918430902@mail.yahoo.com>
* 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