MacPorts under Leopard

Posted by Daniel Lyons Mon, 05 Nov 2007 01:04:00 GMT

Because I’m an idiot, I uninstalled and reinstalled everything I had in MacPorts thinking for some reason it would be better.

The following ports didn’t reinstall:

  • PostgreSQL (Workaround described below)
  • SBCL (Operational as of Nov. 7th)
  • Bigloo
  • Io
  • teTeX (Build it with +nox11 and you’re golden)
  • ghc (I’ve switched to a 6.8 binary install available here)
  • SWI-Prolog (hangs during configure)
  • Guile

Just a note to anyone thinking about doing this, Leopard doesn’t seem to build everything seamlessly yet.

Update Nov. 7th: sbcl now builds. Awesome! I notice postgresql82-server is different but it still stalls out building postgresql82. None of the other ports get any further.

Update Nov. 10th: There is a nice hack for making PostgreSQL install on the error report page. Do this:


sudo port clean postgresql82
sudo port configure postgresql82
pushd /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_databases_postgresql82/work/postgresql-8.2.5
sudo make
popd
sudo port install postgresql82

It seems to have worked for me and a few others.

Update Nov. 24th: Eli, type sudo port install teTeX +noX11 and read the manual or leave an email address next time if you want a faster answer. :P

Tags ,  | 5 comments

GUI Programming for Mac OS X

Posted by Daniel Lyons Tue, 15 May 2007 04:23:00 GMT

It seems a little petty to want something other than Cocoa/Objective-C on your Mac, since it’s light years beyond the dreams of most other platforms. Still, one desires to do as little work as possible. The “joys” of manual garbage collection and a poor iteration interface are going to be that much harder to bear knowing that they’re going to go away with the introduction of Objective-C “2.0” and Leopard.

I remembered F-Script. I was hoping that I would see a simple way to write a whole app in F-Script and deliver it as a standalone executable, NIBs and all, but I haven’t run into that yet. I hope it’s out there though, that would be a lot simpler than using Objective-C. I think this would be a really enjoyable development environment.

Interestingly, I found a way to do this with Ruby and Ruby-Cocoa using the newcocoa gem. Unfortunately, it didn’t look like it was going to make a universal binary, because I’ve got MacPorts installed. I might go back to that though, because that would be a lot better for application deployment. It seemed to do everything with NIBs properly and all that jazz. On the other hand, it opens up the delivering the source-code with the product problem.

For fun, I thought I would look for a Haskell binding. I don’t remember it before, but apparently there is this HOC (Haskell Objective-C) binding. It hasn’t been developed for a while, but it’s worth looking into. The mailing list is largely dead but according to the most recent post in March, it’s working still. I didn’t see if it uses NIBs and everything.

Now that would be awesome.

Tags , , , , ,  | 1 comment

Mac Utility: terminal clone

Posted by Daniel Lyons Mon, 07 May 2007 03:00:00 GMT

Not sure if anyone else uses Terminal on their Mac as much as I do, but if you do, and if you have RubyOSA installed, you may find this utility handy:

#!/usr/bin/env ruby

require 'rbosa'

OSA.app('Terminal').do_script('cd ' + ENV['PWD'])

It just runs another Terminal with the same current working directory. I called it clone.

Tags ,  | 1 comment