Begin main content

Installing avrdude via MacPorts

avrdude is a program that you use to download compiled software to the (excellent) Atmel AVR line of microprocessors.

Trying to install the current avrdude via MacPorts can hit a snag though, because there is a flex source file (lexer.l) which won't compile with the version of flex that MacPorts installs (if you have ever installed flex via MacPorts).

The Apple supplied flex is fine, so the Portfile just needs a little addition to point the ./configure in the right direction.

Edit the portfile:

/opt/local/var/macports/sources/rsync.macports.org/ release/ports/cross/avrdude/Portfile

And add the following line to the end:

configure.env-append LEX=/usr/bin/flex

Now you just need to rebuild:

sudo port clean avrdude
sudo port install avrdude

Job done!

05:08 PM, 18 Dec 2008 by Mark Aufflick Permalink | Comments (0)

XML

Blog Categories

software (41)
..cocoa (23)
  ..heads up 'tunes (5)
..ruby (6)
..lisp (4)
..perl (4)
..openacs (1)
mac (21)
embedded (2)
..microprocessor (2)
  ..avr (1)
electronics (3)
design (1)
photography (26)
..black and white (6)
..A day in Sydney (18)
..The Daily Shoot (6)
food (2)
Book Review (2)

Notifications

Icon of envelope Request notifications

Syndication Feed

XML

Recent Comments

  1. Mark Aufflick: Re: the go/Inbox go/Sent buttons
  2. Unregistered Visitor: How do make a button to jump to folder
  3. Unregistered Visitor: Note I've updated the gist
  4. Unregistered Visitor: umbrello is now an available port on macPorts
  5. Unregistered Visitor: Updated version on Github
  6. Unregistered Visitor: Modification request.
  7. Unregistered Visitor: Accents and labels with spaces
  8. Unregistered Visitor: Mel Kaye - additional info
  9. Unregistered Visitor: mmh
  10. Mark Aufflick: Thank you