Recent

Author Topic: Can't install Lazarus on macos  (Read 2295 times)

charliepascal

  • Newbie
  • Posts: 1
Can't install Lazarus on macos
« on: June 23, 2023, 07:15:41 pm »
I made a clean install of FPC.. I compiled and ran a couple of short Pascal programs from the command line successfully.

I then installed Lazarus. When I open Lazarus a "Configure Lazarus IDE" dialog appears.

The default path for the Lazarus app is correct

I set the Compiler and Sources paths with /usr/local/lib/fpc/3.2.2/ppcx64

Under FPC sources there is an error: "directory rtl not found" I cannot find this file anywhere on my computer using Finder search.

When I cick on "Start IDE" I immediately get a dialog that says "Without the proper FPC sources code browsing and completion will be very limited." I can ignore it and Lazarus opens, but programs won't build.




TRon

  • Hero Member
  • *****
  • Posts: 3145
Re: Can't install Lazarus on macos
« Reply #1 on: June 23, 2023, 07:35:23 pm »
I set the Compiler and Sources paths with /usr/local/lib/fpc/3.2.2/ppcx64
Though not familiar with macos I have two concerns:
1 - you use the ppc executable. You are better of using the fpc executable
2 - the sources are (usually) located somewhere else. That causes the error you see as the compiler seems unable to locate the source directory named rtl.

Edit: the shocking (actually sad) part is that when I try to look for a more precise answer (though I do realize it depends on the installation) there isn't an answer to be found at the following locations:
- Lazarus documentation or any of the pages it links to.
- Lazarus FAQ
- Mac installation FAQ
- Installing Lazarus on macOS
« Last Edit: June 23, 2023, 09:04:44 pm by TRon »
All software is open source (as long as you can read assembler)

jwdietrich

  • Hero Member
  • *****
  • Posts: 1236
    • formatio reticularis
Re: Can't install Lazarus on macos
« Reply #2 on: June 24, 2023, 11:02:52 am »
Have you also downloaded and installed the fpc-src archive? It contains the necessary packages.

The wiki article https://wiki.freepascal.org/Installing_Lazarus_on_macOS provides a comprehensive overview over the necessary steps.
function GetRandomNumber: integer; // xkcd.com
begin
  GetRandomNumber := 4; // chosen by fair dice roll. Guaranteed to be random.
end;

http://www.formatio-reticularis.de

Lazarus 3.4.0 | FPC 3.2.2 | PPC, Intel, ARM | macOS, Windows, Linux

 

TinyPortal © 2005-2018