Re: Compiling on Mac OS Snow Leopard
"Charlie Clark" <[email protected]>
| Newsgroups | gmane.comp.python.db.psycopg.devel |
|---|---|
| Message-ID | <[email protected]> |
Am 16.09.2009, 15:39 Uhr, schrieb Jerry LeVan <[email protected]>: > Charlie, > Is there any way I can use the above to build my own version of psycop2 > 2.0.12 with the community version 2.6.2 of python installed? What is the community version? > I have built a 32bit i386 only version of postgresql 8.4.1. > This is what happens if I use the tried and true 'python setup.py > /Developer/SDKs/MacOSX10.4u.sdk/usr/include/stdarg.h:4:25: error: > stdarg.h: No such file or directory > lipo: can't figure out the architecture type of: > /var/folders/5N/5N7bzOiYF3ONFPRhfGuq3k+++TI/-Tmp-//ccch66qm.out > error: command 'gcc' failed with exit status 1 I'm useless when it comes to compiler errors. :-/ > *************************** > It looks like it is trying to build against a very old toolkit ( 10.4)... > The error messages are not clear to me.. the stdarg.h file exists in > the 10.4u directory and > includes the 'standard' stdarg.h > I have built a 32 bit i386 only version of postgresql ( 8.4.1) > Any suggestions? Yes: install MacPorts. :-) sudo port install postgresql84 py26-pscopg2 And migrate your databases to the new install of postgresql84 If you export the right arch variables then everything should compile as 32-bit or it'll do that anyway on 32-bit only architecture. Or you can use the MacPorts patchfiles as a basis for your own compile. Ports are great even if you have the compile step and I wish Apple would just move all the non-aqua stuff they don't own anyway to Ports and provide a few maintainers. Charlie -- Charlie Clark Helmholtzstr. 20 Düsseldorf D-40215 Tel: +49-211-938-5360 Mobile: +49-178-782-6226 _______________________________________________ Psycopg mailing list [email protected] http://lists.initd.org/mailman/listinfo/psycopg