Lazarus on OS X (El Capitan)

For fun, just installed Free Pascal, the GDB debugger and Lazarus 1.6.0 onto my Mac.

First I downloaded and installed,, fpcsrc-3.0.0-20151207-macosx.dmg, and lazarus-1.6.i686-macoxs.dmg from

When initially launching Lazarus, the GDB debugger could not be found.  The best guide for installing GDB on OS X (which works for El Capitan) was from Neil Traft at Following Neil’s steps, GDB was installed at /usr/local/Cellar/gdb/7.10.1/bin/gdb.

Next I put a TButton onto a form and tried to hookup the OnClick.  I was greeted with this error message: lclclasses.pp(26,10) Error: unit not found: Classes.

Screen Shot 2016-03-05 at 6.28.38 AM

The solution: go to the Lazarus menu item Tools and select Rescan FPC Source Directory.

Making native OS X applications in now fun (and free).

Screen Shot 2016-03-05 at 7.01.28 AM

The monk and the scorpion

Two monks were washing their bowls in the river when they noticed a scorpion that was drowning. One monk immediately scooped it up and set it upon the bank. In the process he was stung. He went back to washing his bowl and again the scorpion fell in. The monk saved the scorpion and was again stung. The other monk asked him, “Friend, why do you continue to save the scorpion when you know it’s nature is to sting?”

“Because,” the monk replied, “to save it is my nature.”