473,396 Members | 1,755 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Python PostgreSQL frontend for Win2K with MinGW32 ?

Hi,

This is just as much a PostgreSQL question as a Python one, but here
goes...

I've been trying to port the psycopg interface to a Win2K client
(server runs FreeBSD). I'm using MinGW32 rather than CygWin, and having
trouble compiling the libpg library as a DLL.

I started off with the following:

configure --with-template=win --without-zlib
make -C src/interfaces install

After complaints that I was missing "Makefile.port" I took
a copy from Makefile.win.

My Win2K/MSYS/MinGW32 setup doesn't have netinet/in.h, ioctl.h, inet.h,
or arpa.h, so I removed the #includes to these header files in
pg_config.h. I sort of assumed that none of these would be needed, and I
would end up linking to the Windows socket library instead of all the
Unix stuff. Massive overoptimism replaced by confusion and gloom.

The dlltool can't find a lot of the socket call targets, fe-connect.c
and fe-misc.c being the main offenders.

Can anyone help, please? I know there are some psycopg enthusiasts
about; I'd be very grateful for some pointers. I'd rather use MinGW32
than CygWin; I could swap but my understanding was that MinGW has all
that's required.

Alternatively, are there any VC++ Studio binaries available? Not that
I approve of course ;-)

Cheers,
Dave

Jul 18 '05 #1
2 2049
In article <3f********@mk-nntp-1.news.uk.worldonline.com>, Dave Haynes wrote:
I've been trying to port the psycopg interface to a Win2K client
(server runs FreeBSD). I'm using MinGW32 rather than CygWin, and having
trouble compiling the libpg library as a DLL.


Have you tried any of these?

http://www.stickpeople.com/projects/python/psycopg/

There are also pyPgSQL win32 binaries at http://pypgsql.sf.net

Dave Cook

Jul 18 '05 #2
Dave Haynes wrote:
Hi,

This is just as much a PostgreSQL question as a Python one, but here
goes...

I've been trying to port the psycopg interface to a Win2K client
(server runs FreeBSD). I'm using MinGW32 rather than CygWin, and having
trouble compiling the libpg library as a DLL. [...]


I'd recommend you statically link in libpq into your Python PostgreSQL
interface. That's what I'm doing for the win32 releases of pyPgSQL. I'm
also, like you, using mingw for these and I use this patch I created
many moons ago:

http://pypgsql.sourceforge.net/misc/postgresql.html

HTH,

-- Gerhard

Jul 18 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Chris Gonnerman | last post by:
I'll be quick. Here's a transcript: C:\usr\WConio-1.5>python setup.py build --compiler=mingw32 running build running build_py running build_ext building '_WConio' extension writing...
3
by: dbrown2 | last post by:
I'm trying to understand and document how to install pypar on Win2k. Pypar needs to be installed with some MPI library code and also needs libpython23.a and other files which are not included with...
2
by: C. Barnes | last post by:
Normally, one uses the following procedure to build and install a C/C++ extension: python setup.py build --compiler=your_compiler python setup.py install For Python 2.3.3 on Windows, with...
6
by: Graeme Matthew | last post by:
Hi All I have noticed that there are a numbe rof client libraries for connecting to Postgres. Can anyone tell me what is the recommended Python library for database connections many...
1
by: benevilent | last post by:
Hey, I am embedding Python in an application, and have an efficency concern about this. There is a Python method which is called from the main application (written in C) many times per second (I...
13
by: Zlatko Matiæ | last post by:
Is it possible to use Access as front-end for POstgreSQL and how ? What about Access Projects (.adp) and PostgreSQL ?
28
by: H J van Rooyen | last post by:
Hi, I want to write a small system that is transaction based. I want to split the GUI front end data entry away from the file handling and record keeping. Now it seems almost trivially easy...
6
by: JW | last post by:
I have a lousy little Python extension, generated with the generous help of Pyrex. In Linux, things are simple. I compile the extension, link it against some C stuff, and *poof*! everything...
1
by: bogie | last post by:
Dear Friend I have some question related to postgresql frontend. I have develop postgresql web based database under linux environment and I use Gedafe as frontend and Apache as server. and now i...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.