Setting up our interpreters

Here's what I did today on our Windows build server to set up the entire Selenium build on Windows. That builds the Java Selenium Server, and all of the supported clients: Java, .NET, Perl, PHP, Python, and Ruby.

  • Installed .NET 2.0 from MS Windows Update, that gave me 2.0.50727 and stubs for v1.0 and v1.1; NUnit refused to run.
  • Downloaded ruby-1.8.6-26 one-click installer, installed to c:\ruby-1.8.6
    • Unchecked scite, left "rubygems" checked
    • Ran "gem install --remote rake"
    • gem install rspec
  • Downloaded activestate activeperl 5.8.8 (MSI), installed to C:\Perl
  • Downloaded php-5.2.1-win32-installer.msi
    • installed to c:\php-5.2.1
    • added Curl extension + PEAR Install extension
    • ran go-pear.bat, "local" PEAR installation, agreed to update php.ini
    • pear channel-discover pear.phpunit.de
    • pear install phpunit/PHPUnit
    • pear install PhpDocumentor
  • Downloaded python-2.5.msi, installed to c:\Python25

On OS X 10.5 Leopard:

  • installed XCode http://developer.apple.com/technology/xcode.html
  • sudo perl -MCPAN -e shell
    • install Bundle::CPAN
    • install Test::Exception
    • install Test::Pod
    • install Test::Mock::LWP
  • Installed PEAR and its deps
    • curl http://pear.php.net/go-pear > go-pear.php
    • sudo php -q go-pear.php
      • set $prefix to /usr/share/pear
    • export PATH=$PATH:/usr/share/pear/bin
    • sudo cp /etc/php.ini.default /etc/php.ini
    • modified php.ini, added: include_path = ".:/usr/share/pear/PEAR"
    • sudo pear channel-discover pear.phpunit.de
    • sudo pear install phpunit/PHPUnit
    • sudo /usr/share/pear/bin/pear install PhpDocumentor
  • sudo gem install rspec
  • Got .NET to build (but not to run tests or generate documentation) by running MacPorts installer from MacPorts.org
    • sudo port install mono

On Linux:

On my Ubuntu 7.10 Gutsy Gibbon box:

  • sudo apt-get install mono-devel nant nunit ndoc
  • sudo apt-get install ruby rdoc (TODO: add rake?)
  • perl was already installed
    • sudo cpan
    • install Test::Exception
    • install Test::Pod
    • install Test::Mock::LWP
  • sudo apt-get install php5-cli
    • sudo apt-get install php-pear
    • sudo pear channel-discover pear.phpunit.de
    • sudo pear install phpunit/PHPUnit
    • sudo pear install PhpDocumentor
  • python was already installed, but Ubuntu left out some non-free default modules
    • sudo apt-get install python-profiler

On my RHEL 4 box, I already had most of the clients, I just needed to upgrade a few things.

  • PHP: Needed PHPDocumentor.
    • I had PEAR 1.3.2, which couldn't read PHPDocumentor's package.xml 2.0 file. Followed docs here to upgrade PEAR: http://blogs.csuchico.edu/ik/2006/11/27/upgrading-pear-on-rhel-4/ (see comment at the end) Note that until PEAR gets upgraded you'll get an unhelpful 404 error when trying to do anything, so you have to give it URLs to use for the upgrade.
    • Finally ran into PEAR out-of-memory bug when trying to run "pear install PhpDocumentor". Bug described here: http://pear.php.net/bugs/bug.php?id=1596 Using "peardev install PhpDocumentor" worked instead.
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.