I’ve tried to get postgresql 8.4 via MacPorts (on Snow Leopard) but it seems that the dependencies are endless – including getting older version of stuff that is already available in Snow Leopard, kitchen-sink and who knows if eventually I end up with windows 7 …
Is there a way to get only those dependancies absolutely necessary to run stuff from command line in Mac?
Especially I’m trying to avoid installing old version of python, Xorg packages and so on.
Any ideas? So far it seems that it is better to avoid MacPorts altogether.
Looking at the port file for postgresql84, the
+pythonvariant for it actually means python2.5. Most of the dependencies you find annoying are probably being brought in by the python tkinter module dependency on Tk which by default builds an X11 version of Tk rather than the +quartz variant. You can change that by specifying that variant and reinstalling. The easy way to deal with variants is to add the options you normally want to use as defaults to those in/opt/local/etc/macports/variants.conf.Unfortunately, at the moment, the
tk +quartzvariant build is broken on Snow Leopard. So, if you are not planning to use tkinter (or IDLE) with the MacPorts python2.5, you can force the removal after the fact of the unwanted modules:You might want to first do a dry-run by adding the
-yoption to see exactly what the effects of theuninstallwill be.Note, the
python26port has a handy+no_tkintervariant which could be useful once the portgresql ports are upgraded to python2.6.