syntatic

Archive for the ‘Uncategorized’ Category

MacPorts Snow Leopard Upgrade

with 18 comments

After upgrading to Snow Leopard using sudo port caused errors:

no suitable image found
no matching architecture in universal wrapper

I was able to fix the problem by installing the Snow Leopard compatible version of MacPorts found on the download page.

Once you’ve installed the new MacPorts  you’ll want to make sure the ports tree and base sources are the latest available:

sudo port selfupdate

Then I ran a command to recompile:

sudo port upgrade --force installed


dlopen(/opt/local/share/macports/Tcl/pextlib1.0/Pextlib.dylib, 10): no suitable image found. Did find:
/opt/local/share/macports/Tcl/pextlib1.0/Pextlib.dylib: no matching architecture in universal wrapper
while executing
"load /opt/local/share/macports/Tcl/pextlib1.0/Pextlib.dylib"
("package ifneeded Pextlib 1.0" script)
invoked from within
"package require Pextlib 1.0"
(procedure "mportinit" line 382)
invoked from within
"mportinit ui_options global_options global_variations"
Error: /opt/local/bin/port: Failed to initialize MacPorts, dlopen(/opt/local/share/macports/Tcl/pextlib1.0/Pextlib.dylib, 10): no suitable image found. Did find:
/opt/local/share/macports/Tcl/pextlib1.0/Pextlib.dylib: no matching architecture in universal wrapper

Advertisements

Written by syntatic

August 30, 2009 at 10:30 pm

Posted in Uncategorized

JRuby 1.3.0 with AutoTest

with 3 comments

I had some trouble getting JRuby 1.3.0 and ZenTest 4.1.3 autotest to work together.  Part of the problem is that the subprocess that launches autotest ignores any attempt to turn ObjectSpace on.  The other part of the problem is how jruby parses -u after the unit_diff command.  Here’s a way to hack in fixes for each problem:

Open zentest.rb in the ZenTest gem lib directory and add the following to the top.

if RUBY_PLATFORM == 'java'
  require 'jruby'
  JRuby.objectspace = true
end

Open autotest.rb and in the initialize of the Autotest class change

  self.unit_diff = "unit_diff -u"

to

if RUBY_PLATFORM == 'java'
  self.unit_diff = "unit_diff"
else
  self.unit_diff = "unit_diff -u"
end

Run autotest.

Written by syntatic

August 13, 2009 at 11:24 am

Posted in Uncategorized

Speaking at OSCON 2008

leave a comment »

In July I’ll be speaking at OSCON 2008 with Dave Hoover. We’ll talk about our experiences with Apprenticeships on Open Source. I’ll provide the apprentice side and Dave will be providing the mentor side.

Additionally, I’m sure you’ll receive some insights from Dave’s upcoming book Apprenticeship Patterns: Guidance for the Aspiring Software Craftsman. I encourage you to read some of the initial chapters as they are a great source of wisdom and inspiration for any one who is looking to grow in the field of software development.

Written by syntatic

June 12, 2008 at 10:48 pm

Posted in Uncategorized