Skip to content

Historic: MacSetup OS X Lion era

Robert Sparks edited this page May 1, 2023 · 1 revision

These steps should create a working development environment on Lion.

The list assumes a new install of Lion. If you have set up any of these components previously, you may need to upgrade instead of install and/or deinstall old versions as appropriate.

  • Install XCode, and the command line tools optional package
  • Install MacPorts
  • port install subversion
  • port install mysql56 and mysql56-server
  • create /etc/my.cnf (macports location: /opt/local/etc/mysql56/my.cnf) and put the following in it. Remember the default_storage_engine line - it may change soon.
[mysqld]
max_allowed_packet=16M
skip-networking
wait_timeout=604800
interactive_timeout=604800
default_storage_engine=MyISAM
  • Follow the instructions printed during the install of mysql56-server to create the initial mysql database, and start the server. As of this edit, those steps should be:
/opt/local/lib/mysql56/bin/mysql_install_db --user=mysql
port load mysql56-server 
  • port install mysql_select
  • port select --set mysql mysql56
  • port install python27
  • port install py27-mysql +mysql56
  • port install py27-pip
  • port install py27-pyflakes
  • port install py27-cssselect
  • port install idnits
  • pip-2.7 install pytz
  • pip-2.7 install pyquery (At one point a couple of years ago, pip's pyquery caused libxml errors when running the datatracker test suite. It doesn't now, but if you run into it, one thing to try is uninstalling pyquery with pip, and install it with ports.) (tjw: I could not work unless it was pyquery>1.2.8 and cssselect>0.9.1)
  • Similar to the port select above for mysql, you can save yourself typing later (if it's appropriate for your system) by using
port select --set python python27
port select --set pip pip27
port select --set pyflakes py27-pyflakes

(Note - I typed those from memory - please fix them if I got it wrong.)

  • Follow the instructions at SprintCoderSetup and SprintDatabase to install a local copy of the database and checkout your working copy of the datatracker code.
Clone this wiki locally