Install Free Pascal 3 & Lazarus IDE 1.6 / 1.8 On Mac X Tutorial Download Missing GDB

preview_player
Показать описание
This will work with Lazarus 1.8.

First Install Xcode:
1) Download And Install Xcode
Free Download In The App Store

2) Install The Xcode Command Line Tools
Run In Terminal (Applications/Utilities):
xcode-select --install

Next Install Free Pascal Compiler & Lazarus IDE

1) Download FPC & Lazarus
2) 3 DMGs To Download: fpc, fpcscrs, lazarus
3) Install FPC, FPCScrs, Lazarus In That Order

If Lazarus IDE is run, it would come up with an error stating that the debugger executable typically has the name “gdb”. Please give the full file path. /usr/local/bin/gdb Error: file not found.

The GNU Debugger ( GDB) has to be installed to make the Lazarus IDE work.

If asked for a password, enter the computer’s password or your user password

2) Run In Terminal: brew install gdb

The GDB must be CodeSigned for the GDB to work.

In Keychain Access (Applications/Utilities)
1) Menu Keychain Access -- Certificate Assistant -- Create A Certificate

2) Name is gdb-cert. The Identity Type is Self Signed Root. The Certificate Type is Code Signing. Check Select To Override The Defaults.

3) It is a good idea to extend the 365 Day Setting (7000 days was used)

4) Click Continue Until The Specify A Location Comes Up — Select Keychain To System

5) If There Is Problem With Keychain To System Then
Create The Certificate In Login. Later Export The Certificate To The System

6) Go To System Right Click (Ctrl Click) On The Certificate — Select Get Info — Trust — Code Signing — Always Trust

7) Quit Keychain And Restart The Computer

8) In Terminal Run: codesign -s gdb-cert /usr/local/bin/gdb

Now, Run Lazarus.

1) Tools — Configure Build Lazarus
LCL widget type: Carbon
Target OS: Darwin
Target CPU: i386

2) Click Build (This may take some time)

3) Quit Lazarus

4) Start Lazarus

5) Start Programming
Рекомендации по теме
Комментарии
Автор

omg it was so hard. it took almost 2 hours to just fix all the upcoming errors.
Great tutorial, thx

ndento
Автор

Is there any ways to show up the console / terminal when running the Pascal Language on Lazarus?

Whenever I click the IDEs, the console didn't showed up >_<

mochadwi
Автор

I have a Macbook os 10.13 and I am stuck at the gdb point. In terminal, I get the error certificate has expired. What to do now. Today's date: 3-26-2022

Jazzy
Автор

There's a typo in point 2 of the slide that's showing around 2:00. The second DMG to download is fpcsrc, not fpcscrs.

mark
Автор

Step 8 is not working for me. When I run the code in the Terminal, I get the error: The specified item could not be found in the keychains. When I look in keychains, the certificate is there. Can anybody help?

Anna-kjjs
Автор

I made all the steps and it fails me on the last one. When i put on the Terminal: codesign -s gdb-cert /usr/local/bin/gdb
it tell me: /usr/local/bin/gdb: No such file or directory
Please help

TheLechu
Автор

hi when I tried to build Lazarus this error shows up 'hi when I tried to build Lazarus this error shows up'

maximilianoballerini
Автор

Hi, please I have problem to install Lazarus. I have tried your step by step but When I try to compile in Lazarus it shows me a error like Error linker, CPU: i386, ... I am using Mac Catalina 10.15.7 with the last version of Lazarus, and all extra apps. Could you help me with any information please ?

alandercarraro
Автор

Hi! Everything works for me, except there's nothing happens when I press "RUN" button: there's no running window that executes the code (I write simple console apps). I can only run them by finding exe file after compiling and building the project. Can anyone suggest how to enable such simple running of the program? I use El Capitan 10.11.6.

antondegtev
Автор

What to do if the error is in the Compiler tab

serpanok
Автор

I get this error when I try to install the GDB from terminal "curl: (22) The requested URL returned error: 400 Bad Request" without quote.
Do you have a link where I can download and install the GDB?

josephlingenieur
Автор

Where do I find the source on the Lazarus site? I only found source files on freepascal.org but I am not sure if this is the right one. Where do I put the source files if it is not a dmg. file but rather a .zip?

stefanmehren
Автор

"brew install gdb" automatically installs new version 8.0 of gdb
Unfortunately gdb 8.0 does not recognize some signals and quits debugging
Can you help ?

Widom
Автор

Thank you so much. With the latest download updates April 22/2021 from SourceForge the 'gbd' is automatically installed. This will save people a lot of time. See for yourselves.

steviewax
Автор

I found the GDB at stack overflow. It seems to work now.

Jazzy
Автор

Hiii! Anyone can help me? I need to install free pascal on my Mac, but I don’t know how to do it… I mean I read the instructions which came with the app file but when I ejecute “xcode-select —install” and the software finish the installation process… what’s the next step? How do I open it? Please help!

marianzapata
Автор

Please help me. how I can Export The Certificate To The System?

vladimir.anisimov
Автор

thanks alot!
this video helps me solve my problem
thumbs up!

nobertichandra
Автор

Вот почему Винда лучше, там это ОДНИМ exe-шником делается

toharrius
Автор

May you help me! I have downloaded FPS onto Macbook (OS X 10.11.6 El Captain). I have done all the mentioned settings. I can write the necessery codes for programming. The compile shows everything is ok. But the program cannot run because of missing debug infos.
The message is:
"Debugger error
The debugger could not run the application.
This may caused by missing debug info."

How can i set up or dowload the missing info?

blaseceasar