Difference between revisions of "Mac Installation FAQ"

From Lazarus wiki
Jump to navigationJump to search
(Debugger not found)
m (Updating link.)
Line 9: Line 9:
 
''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.''
 
''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 and Xcode 5]] for possible solutions.
+
'''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.
  
 
[[Category: Mac OS X]]
 
[[Category: Mac OS X]]

Revision as of 10:39, 23 April 2016

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.