Hello. I've build PostreSQL with --prefix /opt/postresql Now, I want to use --enable-core-pgsql-support For odbc there is --with-odbc-lib=dir and --with-odbc-include=dir What is equivalent for PostgreSQL? I use export PATH=$PATH:/opt/postgresql/bin, but still get: checking for pg_config... /opt/postgresql/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 What is difference between --enable-core-odbc-support and --with-odbc=PREFIX ? -- Mimiko desu.
You should install libpq-dev. 2012/11/14 Mimiko <vbvbrj@gmail.com>
Hello.
I've build PostreSQL with --prefix /opt/postresql
Now, I want to use --enable-core-pgsql-support For odbc there is --with-odbc-lib=dir and --with-odbc-include=dir What is equivalent for PostgreSQL?
I use export PATH=$PATH:/opt/postgresql/bin, but still get: checking for pg_config... /opt/postgresql/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
What is difference between --enable-core-odbc-support and --with-odbc=PREFIX ?
-- Mimiko desu.
_________________________________________________________________________ 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
On 15.11.2012 11:02, Anton Kvashenkin wrote:
You should install libpq-dev.
Yes, I know, but I written, I've compiled PostgreSQL from sources. Anyway, I compiled PostgreSQL with --disable-shared option, so shared libs were not created. For now ./configure is running well with: export PATH=$PATH:/opt/postgresql/bin && \ ./configure --enable-static --with-openssl --enable-core-odbc-support --enable-portable-binary \ --enable-zrtp --prefix=/opt/freeswitch --enable-core-pgsql-support --enable-static --enable-shared \ LDFLAGS="-Wl,-R,\\\$\${ORIGIN}/../lib:\\\$\${ORIGIN}/../lib/x86_64-linux-gnu -L/lib -L/usr/lib -L/opt/postgresql/lib" \ CPPFLAGS="-I/usr/include -I/opt/postgresql/include" But I get errors on make: libtool: link: ranlib .libs/libcurl.a libtool: link: ( cd ".libs" && rm -f "libcurl.la" && ln -s "../libcurl.la" "libcurl.la" ) make[3]: Leaving directory `/home/mimiko/src/freeswitch/libs/curl/lib' make[2]: Leaving directory `/home/mimiko/src/freeswitch/libs/curl/lib' Making all in src make[2]: Entering directory `/home/mimiko/src/freeswitch/libs/curl/src' make all-am make[3]: Entering directory `/home/mimiko/src/freeswitch/libs/curl/src' make[3]: Leaving directory `/home/mimiko/src/freeswitch/libs/curl/src' make[2]: Leaving directory `/home/mimiko/src/freeswitch/libs/curl/src' make[2]: Entering directory `/home/mimiko/src/freeswitch/libs/curl' make[2]: Nothing to be done for `all-am'. make[2]: Leaving directory `/home/mimiko/src/freeswitch/libs/curl' make[1]: Leaving directory `/home/mimiko/src/freeswitch/libs/curl' cat /home/mimiko/src/freeswitch/src/include/switch_cpp.h | perl /home/mimiko/src/freeswitch/build/strip.pl > /home/mimiko/src/freeswitch/src/include/switch_swigable_cpp.h make "OUR_MODULES=$(if test -z "" ; then tmp_mods="$(grep -v "#" /home/mimiko/src/freeswitch/modules.conf | sed -e "s|^.*/||" | sort | uniq )"; else tmp_mods="" ; fi ; mods="$(for i in $tmp_mods ; do echo $i-all ; done )"; echo $mods )" "OUR_CLEAN_MODULES=$(if test -z "" ; then tmp_mods="$(grep -v "#" /home/mimiko/src/freeswitch/modules.conf | sed -e "s|^.*/||" | sort | uniq )"; else tmp_mods="" ; fi ; mods="$(for i in $tmp_mods ; do echo $i-clean ; done )"; echo $mods )" "OUR_INSTALL_MODULES=$(if test -z "" ; then tmp_mods="$(grep -v "#" /home/mimiko/src/freeswitch/modules.conf | sed -e "s|^.*/||" | sort | uniq )"; else tmp_mods="" ; fi ; mods="$(for i in $tmp_mods ; do echo $i-install ; done)"; echo $mods )" "OUR_UNINSTALL_MODULES=$(if test -z "" ; then tmp_mods="$(grep -v "#" /home/mimiko/src/freeswitch/modules.conf | sed -e "s|^.*/||" | sort | uniq )"; else tmp_mods="" ; fi ; mods="$(for i in $tmp_mods ; do echo $i-uninstall ; done)"; echo $mods )" "OUR_DISABLED_MODULES=$(tmp_mods="$(grep "#" /home/mimiko/src/freeswitch/modules.conf | grep -v "##" | sed -e "s|^.*/||" | sort | uniq )"; mods="$(for i in $tmp_mods ; do echo $i-all ; done )"; echo $mods )" "OUR_DISABLED_CLEAN_MODULES=$(tmp_mods="$(grep "#" /home/mimiko/src/freeswitch/modules.conf | grep -v "##" | sed -e "s|^.*/||" | sort | uniq )"; mods="$(for i in $tmp_mods ; do echo $i-clean ; done )"; echo $mods )" "OUR_DISABLED_INSTALL_MODULES=$(tmp_mods="$(grep "#" /home/mimiko/src/freeswitch/modules.conf | grep -v "##" | sed -e "s|^.*/||" | sort | uniq )"; mods="$(for i in $tmp_mods ; do echo $i-install ; done)"; echo $mods )" "OUR_DISABLED_UNINSTALL_MODULES=$(tmp_mods="$(grep "#" /home/mimiko/src/freeswitch/modules.conf | grep -v "##" | sed -e "s|^.*/||" | sort | uniq )"; mods="$(for i in $tmp_mods ; do echo $i-uninstall ; done)"; echo $mods )" `test -n "" || echo -s` all-recursive cc1: warnings being treated as errors src/switch.c: In function Б─≤mainБ─≥: src/switch.c:667: error: implicit declaration of function Б─≤rpl_mallocБ─≥ src/switch.c:667: error: cast to pointer from integer of different size src/switch.c:683: error: cast to pointer from integer of different size src/switch.c:698: error: cast to pointer from integer of different size src/switch.c:715: error: cast to pointer from integer of different size src/switch.c:731: error: cast to pointer from integer of different size src/switch.c:747: error: cast to pointer from integer of different size src/switch.c:762: error: cast to pointer from integer of different size src/switch.c:777: error: cast to pointer from integer of different size src/switch.c:792: error: cast to pointer from integer of different size src/switch.c:807: error: cast to pointer from integer of different size src/switch.c:822: error: cast to pointer from integer of different size src/switch.c:837: error: cast to pointer from integer of different size src/switch.c:852: error: cast to pointer from integer of different size src/switch.c:869: error: cast to pointer from integer of different size make[1]: *** [freeswitch-switch.o] Error 1 make: *** [all] Error 2 Why is this? -- Mimiko desu.
So in order to "make" I had to do the following: export PATH=$PATH:/opt/postgresql/bin && export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/opt/postgresql/lib && \ ./configure --with-openssl --enable-core-odbc-support --enable-portable-binary \ --enable-zrtp --prefix=/opt/freeswitch --enable-core-pgsql-support --enable-static --enable-shared \ LDFLAGS="-L/opt/postgresql/lib -Wl,-R,\\\$\${ORIGIN}/../lib:\\\$\${ORIGIN}/../lib/x86_64-linux-gnu" It will be great to have a way to specify lib and bin path for PostgreSQL to the ./configure with an option the same way is done for odbc. -- Mimiko desu.
participants (2)
-
Anton Kvashenkin
-
Mimiko