<div dir="ltr"><br>I downloaded libpqxx-2.6.9.tar.gz and build in /usr/src/libpqxx-2.6.9 <br><br>Before doing anything, we have /usr/src/pqxx-2.6.9/include/pqxx/<a href="http://config.h.in">config.h.in</a> with:<br><br>/* Define if the compiler supports the standard "long double" type */<br>
#undef PQXX_HAVE_LONG_DOUBLE<br><br>/* Define if the compiler supports "long long" types */<br>#undef PQXX_HAVE_LONG_LONG<br><br>I then prepare to run 'configure' to ensure it can find pg_config, as:<br>
<br># export PATH=${PATH}:/Library/PostgreSQL/8.3/bin<br># which pg_config<br>/Library/PostgreSQL/8.3/bin/pg_config<br><br>I then run configure:<br><br>After 'configure --enable-shared' there is include/pqxx/config.h<br>
<br>/* Define if the compiler supports the standard "long double" type */<br>#define PQXX_HAVE_LONG_DOUBLE 1<br><br>/* Define if the compiler supports "long long" types */<br>#define PQXX_HAVE_LONG_LONG 1<br>
<br>So it looks like it's enabled. I then run:<br><br># make<br># make install<br><br>That takes care of the shared library for pqxx:<br><br>[ root@elegans /usr/src/libpqxx-2.6.9 ]# ll /usr/local/lib/libpqxx*<br>-rwxr-xr-x 1 root wheel 464K 2008-08-29 15:49 /usr/local/lib/libpqxx-2.6.9.dylib*<br>
-rwxr-xr-x 1 root wheel 475K 2008-08-28 15:37 /usr/local/lib/libpqxx-3.0.0.dylib*<br>-rw-r--r-- 1 root wheel 3.8M 2008-08-29 15:49 /usr/local/lib/libpqxx.a<br>lrwxr-xr-x 1 root wheel 19 2008-08-29 15:49 /usr/local/lib/libpqxx.dylib -> libpqxx-2.6.9.dylib*<br>
-rwxr-xr-x 1 root wheel 863 2008-08-29 15:49 /usr/local/lib/<a href="http://libpqxx.la">libpqxx.la</a>*<br>[ root@elegans /usr/src/libpqxx-2.6.9 ]# <br><br><br>I still have a 3.0 dylib, but the default symlink points to the 2.6.9 version, so that should be fine.<br>
<br>A thousand thanks! (What's next? Oh yea, back to building VTK with PGSQL!)<br><br><br><br><br><br><div class="gmail_quote">On Fri, Aug 29, 2008 at 3:13 PM, David C Thompson <span dir="ltr"><<a href="mailto:dcthomp@sandia.gov">dcthomp@sandia.gov</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="Ih2E3d"><br>
> My prior build for libpqxx was:<br>
><br>
> ./configure --enable-shared<br>
> make<br>
> sudo make install<br>
><br>
> So now I have pqxx 2.6.9, but how do I enable the LONG_LONG support?<br>
<br>
</div>Just make sure that the configure script reported "checking for long<br>
long: yes" instead of "checking for long long: no". If your pqxx build<br>
directory contains include/pqxx/config.h with this line in it:<br>
#define PQXX_HAVE_LONG_LONG 1<br>
then your libpqxx build should be OK.<br>
<font color="#888888"><br>
David<br>
<br>
<br>
</font></blockquote></div><br></div>