PGSQL - Support in Core. - Error During configure
I am trying to build latest freeswitch from master. I have the --enable-postgres... flag = true when I run config I get this error message. checking whether to include odbc... no checking for pg_config... /usr/local/pgsql/bin/pg_config checking for PostgreSQL libraries... checking for PQgetvalue in -lpq... no configure: error: no usable libpq; please install PostgreSQL devel package or equivalent IN MY "config.log" I see ## ----------- ## ## confdefs.h. ## ## ----------- ## #define PACKAGE_NAME "freeswitch" #define PACKAGE_TARNAME "freeswitch" #define PACKAGE_VERSION "1.3.0" #define PACKAGE_STRING "freeswitch 1.3.0" #define PACKAGE_BUGREPORT "BUG-REPORT-ADDRESS" #define PACKAGE "libfreeswitch" #define VERSION "0.1" #define SWITCH_MOD_DIR "/usr/local/freeswitch/mod" #define SWITCH_RUN_DIR "/usr/local/freeswitch/run" #define SWITCH_LOG_DIR "/usr/local/freeswitch/log" #define SWITCH_DB_DIR "/usr/local/freeswitch/db" #define SWITCH_HTDOCS_DIR "/usr/local/freeswitch/htdocs" #define SWITCH_SOUNDS_DIR "/usr/local/freeswitch/sounds" #define SWITCH_GRAMMAR_DIR "/usr/local/freeswitch/grammar" #define SWITCH_SCRIPT_DIR "/usr/local/freeswitch/scripts" #define SWITCH_RECORDINGS_DIR "/usr/local/freeswitch/recordings" #define SWITCH_CONF_DIR "/usr/local/freeswitch/conf" #define STDC_HEADERS 1 #define HAVE_SYS_TYPES_H 1 #define HAVE_SYS_STAT_H 1 #define HAVE_STDLIB_H 1 #define HAVE_STRING_H 1 #define HAVE_MEMORY_H 1 #define HAVE_STRINGS_H 1 #define HAVE_INTTYPES_H 1 #define HAVE_STDINT_H 1 #define HAVE_UNISTD_H 1 #define HAVE_DLFCN_H 1 #define LT_OBJDIR ".libs/" #define DEBUG /**/ #define SIZEOF_LONG 8 #define SWITCH_HAVE_PGSQL 1 #define POSTGRESQL_VERSION "9.2.1" #define POSTGRESQL_MAJOR_VERSION 9 #define POSTGRESQL_MINOR_VERSION 2 #define POSTGRESQL_PATCH_VERSION 1 configure: exit 1 Here is the output of my pg_config BINDIR = /usr/local/pgsql/bin DOCDIR = /usr/local/pgsql/share/doc HTMLDIR = /usr/local/pgsql/share/doc INCLUDEDIR = /usr/local/pgsql/include PKGINCLUDEDIR = /usr/local/pgsql/include INCLUDEDIR-SERVER = /usr/local/pgsql/include/server LIBDIR = /usr/local/pgsql/lib PKGLIBDIR = /usr/local/pgsql/lib LOCALEDIR = /usr/local/pgsql/share/locale MANDIR = /usr/local/pgsql/share/man SHAREDIR = /usr/local/pgsql/share SYSCONFDIR = /usr/local/pgsql/etc PGXS = /usr/local/pgsql/lib/pgxs/src/makefiles/pgxs.mk CONFIGURE = CC = gcc CPPFLAGS = -D_GNU_SOURCE CFLAGS = -O2 -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -Wmissing-format-attribute -Wformat-security -fno-strict-aliasing -fwrapv CFLAGS_SL = -fpic LDFLAGS = -Wl,--as-needed -Wl,-rpath,'/usr/local/pgsql/lib',--enable-new-dtags LDFLAGS_EX = LDFLAGS_SL = LIBS = -lpgport -lz -lreadline -lcrypt -ldl -lm VERSION = PostgreSQL 9.2.1 Any ideas where I am going wrong? Thanks.
On Sun, 04 Nov 2012 06:32:27 -0500 David | StyleFlare <david@styleflare.com> wrote:
I get this error message.
checking whether to include odbc... no checking for pg_config... /usr/local/pgsql/bin/pg_config checking for PostgreSQL libraries... checking for PQgetvalue in -lpq... no configure: error: no usable libpq; please install PostgreSQL devel package or equivalent ... Any ideas where I am going wrong?
You don't say whether PostgreSQL is installed or not. Is it? This message implies that it is not. -- D'Arcy J.M. Cain System Administrator, Vex.Net http://www.Vex.Net/ IM:darcy@Vex.Net
aptitude search ^postgres~ndev i postgresql-server-dev-9.1 - development files for PostgreSQL 9.1 server-side programming p postgresql-server-dev-all - extension build tool for multiple PostgreSQL versions You should install -dev files. 2012/11/4 D'Arcy J.M. Cain <darcy@vex.net>
On Sun, 04 Nov 2012 06:32:27 -0500 David | StyleFlare <david@styleflare.com> wrote:
I get this error message.
checking whether to include odbc... no checking for pg_config... /usr/local/pgsql/bin/pg_config checking for PostgreSQL libraries... checking for PQgetvalue in -lpq... no configure: error: no usable libpq; please install PostgreSQL devel package or equivalent ... Any ideas where I am going wrong?
You don't say whether PostgreSQL is installed or not. Is it? This message implies that it is not.
-- D'Arcy J.M. Cain System Administrator, Vex.Net http://www.Vex.Net/ IM:darcy@Vex.Net
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
That¹s the server side stuff... Do you have libpq-dev installed? On 11/4/12 9:07 AM, "Anton Kvashenkin" <anton.jugatsu@gmail.com> wrote:
aptitude search ^postgres~ndev i postgresql-server-dev-9.1 - development files for PostgreSQL 9.1 server-side programming p postgresql-server-dev-all - extension build tool for multiple PostgreSQL versions
You should install -dev files.
2012/11/4 D'Arcy J.M. Cain <darcy@vex.net>
On Sun, 04 Nov 2012 06:32:27 -0500 David | StyleFlare <david@styleflare.com> wrote:
I get this error message.
checking whether to include odbc... no checking for pg_config... /usr/local/pgsql/bin/pg_config checking for PostgreSQL libraries... checking for PQgetvalue in -lpq... no configure: error: no usable libpq; please install PostgreSQL devel package or equivalent ... Any ideas where I am going wrong?
You don't say whether PostgreSQL is installed or not. Is it? This message implies that it is not.
-- D'Arcy J.M. Cain System Administrator, Vex.Net http://www.Vex.Net/ IM:darcy@Vex.Net
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Ken http://www.FreeSWITCH.org http://www.ClueCon.com http://www.OSTAG.org irc.freenode.net #freeswitch
participants (4)
-
Anton Kvashenkin
-
D'Arcy J.M. Cain
-
David | StyleFlare
-
Ken Rice