Re: Problem compiling under Ubuntu and connecting to postgresql

Bob Doan <[email protected]> Mon, 30 Nov 2009 08:21:28 -0500
Newsgroups gmane.text.rlib.user
Message-ID <1259587288.13172.0.camel@bobbyd>
Hi,

Can I see the results of your configure please.

Thanks

On Thu, 2009-11-26 at 22:37 +0100, dick wrote:
> hi list,
> 
> We are trying to use rlib in our application (very large python application 
> with postgresql) and want to dynamically create XML to generate standard 
> reports on the fly.
> 
> Currently we are trying to get started. Now I have a couple of problems.
> 
> 1. When we compile the library, we do not get rlib, but only an rlibcompat 
> that we can import. Why is this happening. However, if it still works no 
> problem.
> 
> 
> 2. When we try one of the simple examples
> ---------//-------------
> 
> import sys
> sys.path.append('/usr/lib/python2.6/site-packages')
> import rlibcompat as rlib
> 
> myrlib = rlib.rlib_init();
> rlib.rlib_add_datasource_postgre(myrlib, "cvix", 
> "Host=localhost;Database=cvix;User Id=postgres");
> rlib.rlib_add_query_as(myrlib, "cvix", "select * FROM 
> adeuxproductie.producten", "products");
> rlib.rlib_add_report(myrlib, "products.xml");
> rlib.rlib_set_output_format_from_text(myrlib, "pdf");
> rlib.rlib_execute(myrlib);
> rlib.rlib_spool(myrlib);
> rlib.rlib_free(myrlib);
> 
> ---------//-------------
> 
> I get the following error:
> 
> desktop:~/rlib-1.3.7/src/examples/python$ python compat-example.py
> Could Not Load POSTGRES Input [/usr/local/lib/libr-postgres.so: undefined 
> symbol: g_free]
> rlib_add_query_as: Could not find input source [cvix]!
> No queries added to report
> 
> It looks like it is trying to use g_free that is not available. Is that 
> because rlib simply does not work with newer versions of Postgresql?
> 


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july