<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 &quot;long double&quot; type */<br>
#undef PQXX_HAVE_LONG_DOUBLE<br><br>/* Define if the compiler supports &quot;long long&quot; types */<br>#undef PQXX_HAVE_LONG_LONG<br><br>I then prepare to run &#39;configure&#39; 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 &#39;configure --enable-shared&#39; there is include/pqxx/config.h<br>
<br>/* Define if the compiler supports the standard &quot;long double&quot; type */<br>#define PQXX_HAVE_LONG_DOUBLE 1<br><br>/* Define if the compiler supports &quot;long long&quot; types */<br>#define PQXX_HAVE_LONG_LONG 1<br>
<br>So it looks like it&#39;s enabled.&nbsp; 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&nbsp;&nbsp; 19 2008-08-29 15:49 /usr/local/lib/libpqxx.dylib -&gt; libpqxx-2.6.9.dylib*<br>
-rwxr-xr-x 1 root wheel&nbsp; 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!&nbsp; (What&#39;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">&lt;<a href="mailto:dcthomp@sandia.gov">dcthomp@sandia.gov</a>&gt;</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>
&gt; My prior build for libpqxx was:<br>
&gt;<br>
&gt; ./configure --enable-shared<br>
&gt; make<br>
&gt; sudo make install<br>
&gt;<br>
&gt; 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 &quot;checking for long<br>
long: yes&quot; instead of &quot;checking for long long: no&quot;. If your pqxx build<br>
directory contains include/pqxx/config.h with this line in it:<br>
 &nbsp;#define PQXX_HAVE_LONG_LONG 1<br>
then your libpqxx build should be OK.<br>
<font color="#888888"><br>
 &nbsp; &nbsp; &nbsp; &nbsp;David<br>
<br>
<br>
</font></blockquote></div><br></div>