On 2012-05-30 13:24, George Papadatos wrote: > Thanks to both of you. > > I do not know how to check for the PG_VERSION_NUM.
Hi George, I think the snippets below should do it. It shows what my Linux Mint machine thinks. It seems to be reporting the correct version though, even though it fails to load the cartridge (I have postgresql 9.1.3 installed from the standard Ubuntu 11.10 repository). jhje@linux-dev-x86 ~ $ cat test.c #include "postgres.h" int main() { int version_no = PG_VERSION_NUM; printf("%d\n", version_no); return 0; } jhje@linux-dev-x86 ~ $ cat make.sh PG_INCLUDE_DIR=`pg_config | grep "INCLUDEDIR-SERVER = "| sed s/"INCLUDEDIR-SERVER = "//` echo "Include dir found via 'pg_config' = $PG_INCLUDE_DIR" gcc test.c -I$PG_INCLUDE_DIR jhje@linux-dev-x86 ~ $ . make.sh; ./a.out Include dir found via 'pg_config' = /usr/include/postgresql/9.1/server 90103 jhje@linux-dev-x86 ~ $ Cheers -- Jan ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Rdkit-discuss mailing list Rdkit-discuss@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/rdkit-discuss