How can I be sure that it's correctly installed? How can I test it?

Marc

-----Original Message-----
From: george young [mailto:[EMAIL PROTECTED] 
Sent: Friday, September 30, 2005 7:18 PM
To: Marc Khayat
Cc: [email protected]
Subject: RE: Installing PyGresql

 Marc,

In using setup.py, the "getconfig" function is designed to take a string

argument that is a symbolic name for the type of resource, e.g.:

  include_dirs=[getconfig ('includedir'),
getconfig('includedir-server')]

uses the symbolic names "includedir" and "includedir-server".  The
getconfig
function just runs the pg_config program to find out
what real directory 'includedir' corresponds to.  If this doesn't work
right, you need to put explicit directory names *instead of* the
getconfig
call.  E.g., you should use:

  include_dirs=['/usr/local/pgsql/include/',
'/usr/local/pgsql/include/server ']

NOT:  include_dirs=[getconfig('/usr/local/pgsql/include/'),
getconfig('/usr/local/pgsql/include/server')]


Did you try running setup.py without any modifications?  This should
work
in principle.  Check that the "pg_config" command is in your path; just
type pg_config at the prompt.  If you get 'command not found', you need
to
add /usr/local/pgsql/bin to your path.  

And please, when something fails, tell the mailing list exactly what
happened, not just "it didn't work".  This may seem overly verbose,
but it really helps us to help you.

Also, please always mention briefly what your environment is:
platform(linux, windows, etc), postgres version, python version, and
pygresql version.

I hope this helps!

-- George Young

-- 
"Are the gods not just?"  "Oh no, child.
What would become of us if they were?" (CSL)


_______________________________________________
PyGreSQL mailing list
[email protected]
http://mailman.vex.net/mailman/listinfo/pygresql

Reply via email to