I was also able to do this build. I will repeat the process this evening and take notes as I do so. I'll post either this evening or first thing tomorrow morning.
-greg On Wed, May 30, 2012 at 3:26 PM, Adrian Schreyer <ams...@cam.ac.uk> wrote: > Yes, I could build and install the cartridge without problems > (Release_2012.03.1) on 12.04. > > On Wed, May 30, 2012 at 2:23 PM, George Papadatos <gpapada...@gmail.com> > wrote: >> Hi Jan, >> >> Mine is exactly the same: >> gcc test.c -I/usr/include/postgresql/9.1/server;./a.out >> 90103 >> >> So, I am back to square 1! >> >> I am starting to get a bit desperate here, has anyone ever successfully >> built the cartridge from the trunk on a plain Ubuntu 12.04? >> >> Many thanks for your help, >> >> George >> >> >> On 30 May 2012 12:48, Jan Holst Jensen <j...@biochemfusion.com> wrote: >>> >>> 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. I tried to edit to >>>> guc.c by removing the conditional check of the PG_VERSION but with the same >>>> results: >>>> Adrian, is this what you meant? >>>> >>>> DefineCustomRealVariable( >>>> "rdkit.tanimoto_threshold", >>>> "Lower threshold of Tanimoto similarity", >>>> "Molecules with similarity lower than threshold >>>> are not similar by % operation", >>>> &rdkit_tanimoto_smlar_limit, >>>> 0.5, >>>> 0.0, >>>> 1.0, >>>> PGC_USERSET, >>>> 0, >>>> (GucRealCheckHook)TanimotoLimitAssign, >>>> NULL, >>>> NULL >>>> ); >>>> >>>> DefineCustomRealVariable( >>>> "rdkit.dice_threshold", >>>> "Lower threshold of Dice similarity", >>>> "Molecules with similarity lower than threshold >>>> are not similar by # operation", >>>> &rdkit_dice_smlar_limit, >>>> 0.5, >>>> 0.0, >>>> 1.0, >>>> PGC_USERSET, >>>> 0, >>>> (GucRealCheckHook)DiceLimitAssign, >>>> NULL, >>>> NULL >>>> ); >>>> >>>> Regards, >>>> >>>> George >>> >>> >>> Hi George, >>> >>> I just tried the same on my VM, with no change for the better either. My >>> version of guc.c now looks like this: >>> >>> static void >>> initRDKitGUC() >>> { >>> if (rdkit_guc_inited) >>> return; >>> >>> >>> DefineCustomRealVariable( >>> "rdkit.tanimoto_threshold", >>> "Lower threshold of Tanimoto similarity", >>> "Molecules with similarity lower than threshold >>> are not similar by % operation", >>> &rdkit_tanimoto_smlar_limit, >>> 0.5, >>> 0.0, >>> 1.0, >>> PGC_USERSET, >>> 0, >>> //if PG_VERSION_NUM >= 90100 >>> (GucRealCheckHook)TanimotoLimitAssign, >>> NULL, >>> //else >>> // TanimotoLimitAssign, >>> //endif >>> >>> NULL >>> ); >>> >>> DefineCustomRealVariable( >>> "rdkit.dice_threshold", >>> "Lower threshold of Dice similarity", >>> "Molecules with similarity lower than threshold >>> are not similar by # operation", >>> &rdkit_dice_smlar_limit, >>> 0.5, >>> 0.0, >>> 1.0, >>> PGC_USERSET, >>> 0, >>> //if PG_VERSION_NUM >= 90100 >>> (GucRealCheckHook)DiceLimitAssign, >>> NULL, >>> //else >>> // DiceLimitAssign, >>> //endif >>> NULL >>> ); >>> >>> rdkit_guc_inited = true; >>> } >>> >>> Did a cartridge "make clean", "make", "sudo make install", and it still >>> fails for me with >>> >>> postgres=# create extension rdkit; >>> >>> FATAL: failed to initialize rdkit.tanimoto_threshold to 0.5 >>> FATAL: failed to initialize rdkit.tanimoto_threshold to 0.5 >>> The connection to the server was lost. Attempting reset: Succeeded. >>> postgres=# >>> >>> 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