Forum > macOS / Mac OS X

Cannot install Lazarus 4.0 RC1 on macOS 14.6.1

(1/3) > >>

carl_caulkett:
* Mac Mini M1
* macOS 14.6.1
* Lazarus 3.99
* FPC 3.3.1

Reposted from https://forum.lazarus.freepascal.org/index.php/topic,69059.0.html due to lack of response :o

I first tried downloading from https://sourceforge.net/projects/lazarus/files/Lazarus%20macOS%20aarch64/Lazarus%204.0RC1/lazarus-darwin-aarch64-4.0RC1.zip/download but running that from both the startlazarus loader and the lazarus.app bundle gave me the error “lazarus.app” is damaged and can’t be opened. You should move it to the Bin."

I then downloaded the source to Lazarus 4.0RC1 and placed the files in /Applications/Lazarus_4.0. I then used FcpUpDeluxe to install a separate copy of fcp 3.3.1 in /Applications/fcp, added it  to the system path, and restarted my terminal session. Finally, I CDed into /Applications/Lazarus_4.0 and ran make clean bigide. It came up with this...

--- Code: Bash  [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---Hint: (11030) Start of reading config file /Users/carlcaulkett/.fpc.cfgHint: (11030) Start of reading config file /etc/fpc.cfgHint: (11031) End of reading config file /etc/fpc.cfgHint: (11031) End of reading config file /Users/carlcaulkett/.fpc.cfgFree Pascal Compiler version 3.3.1-16756-gb74411cf03-dirty [2024/10/27] for aarch64Copyright (c) 1993-2024 by Florian Klaempfl and others(1002) Target OS: Darwin for AArch64(3104) Compiling fcllaz.pasFatal: (10022) Can't find unit system used by fcllazFatal: (1018) Compilation abortedmake[1]: *** [fcllaz.ppu] Error 1make: *** [registration] Error 2 
Following the README.md, I followed the instructions on what to do if that gave me any error, and ran make clean all. That gave me exactly the same error.

Has anyone actually managed to install Lazarus 4.0 CR1 on macOS aarch64?

Martin_fr:
Ok, I don't know Mac. But there are some generic issues.

And it looks like the fpc install is not correct. Or not entirely.


You are reading two fpc.cfg files.  That isn't wrong, but unusual. You said you used fpcupdeluxe => afaik that creates a local fpc.cfg file. I am not even sure if that should be in your user dir, or in the folder that you used with fpcupdeluxe.

So at least one of the 2 fpc.cfg files are likely from another installed fpc. And that means the paths to the ppu containing folders in that/those fpc.cfg don't work with 3.3.1.

You can simply try be removing them (after backup).
You can also check where they point and if that makes any sense to you.

Martin_fr:
Actually, IIRC fpcupdeluxe writes some script that wraps fpc but adds params to the conf.   Not sure though...

carl_caulkett:

--- Quote from: Martin_fr on October 27, 2024, 11:46:52 pm ---Ok, I don't know Mac. But there are some generic issues.

And it looks like the fpc install is not correct. Or not entirely.


You are reading two fpc.cfg files.  That isn't wrong, but unusual. You said you used fpcupdeluxe => afaik that creates a local fpc.cfg file. I am not even sure if that should be in your user dir, or in the folder that you used with fpcupdeluxe.

So at least one of the 2 fpc.cfg files are likely from another installed fpc. And that means the paths to the ppu containing folders in that/those fpc.cfg don't work with 3.3.1.

You can simply try be removing them (after backup).
You can also check where they point and if that makes any sense to you.

--- End quote ---

Thanks for the reply @Martin_fr!

I discovered what was wrong with my initial install. The Lazarus.app bundle was there but the lazarus executable that the lazarus.app links to was missing. I guess I was careless in the copying of the downloaded folder to its destination.

I've now got Lazarus 4.0RC1 running. The next question is what is the easiest way of copying my color configs, key mappings and code templates from 3.99?

dbannon:

--- Quote from: carl_caulkett on October 28, 2024, 12:42:05 am ---
I've now got Lazarus 4.0RC1 running. The next question is what is the easiest way of copying my color configs, key mappings and code templates from 3.99?

--- End quote ---

Copy the config dir from your existing Lazarus to a new dir, point your new Lazarus to it (using lazarus.cfg, --pcp=xxx) and then, in the new lazarus directory, run "make useride", that will build a newer still lazarus, one with all your settings if possible. Then, start Lazarus, it will prompt you to update that config, say "yes" (after checking i really is the new config).

Davo

Navigation

[0] Message Index

[#] Next page

Go to full version