Mac Installation FAQ

From Lazarus wiki
Revision as of 10:48, 23 April 2016 by Jwdietrich (talk | contribs) (Unit XY not found.)
Jump to navigationJump to search

This page lists solutions to the most fequent problems that may arise during installation of Lazarus and Free Pascal on Mac OS X. Please read Installing Lazarus on MacOS X first and pay special attention to the sections that apply to your versions of Mac OS X, Xcode, Lazarus, Free Pascal.

Compilation aborts with weird messages

I have correctly installed Lazarus and FPC, but compiling a simple demo program stops with the Free Pascal exit code 256 and the "Lazarus Panic /bin/sh: clang: command not found".

Solution: This behaviour may arise from a too old Xcode version installed. Generally, you should use the newest Xcode version that is available for your operating system. Lazarus 1.6 requires, e.g. Xcode 3.2.6, or newer.

Debugger not found

I have installed the latest version of Lazarus on a new Mac. My program is built fine, but when I try to run it I get a message that the debugger "/usr/bin/gdb" doesn't exist or isn't runnable.

Solution: In newer versions of Xcode GDB is no longer globally available. See GDB on OS X Mavericks or newer and Xcode 5 or newer for possible solutions.

Unit XY not found

I have freshly installed a new version of Lazarus on my machine. Trying to compile an application results in the error message "Error: unit not found: XY". (XY is a place holder for any unit name.)

Solution: Try to re-scan your FPC source directory via the Tools... menu of the IDE.

Other questions

I didn't find my issue here.

Answer: You might find a possible solution at the Lazarus and Free Pascal Forum. Otherwise, you might ask you question there.