Lazarus

Installation => macOS / Mac OS X => Topic started by: sweetcorn on November 13, 2019, 11:50:04 pm

Title: fpc cannot installed on MacOS Catalina
Post by: sweetcorn on November 13, 2019, 11:50:04 pm
hi new member here,

 i just downloaded fpc  3.0.4 from https://sourceforge.net/projects/lazarus/files/Lazarus%20macOS%20x86-64/ and during the end of the installation it's said that the installation failed.

please help me to solve this thanks.
Title: Re: fpc cannot installed on MacOS Catalina
Post by: willbprog9933 on November 14, 2019, 07:07:06 am
Hi sweetcorn,

They are still working out the details to get Lazarus and FPC installing on macOS Catalina.  I'm waiting along with you for this to happen. :)
Title: Re: fpc cannot installed on MacOS Catalina
Post by: Thaddy on November 14, 2019, 09:21:56 am
Hi sweetcorn,

They are still working out the details to get Lazarus and FPC installing on macOS Catalina.  I'm waiting along with you for this to happen. :)
It works. As Mathias and I wrote.
What exactly goes wrong? details, plz.
Title: Re: fpc cannot installed on MacOS Catalina
Post by: sweetcorn on November 14, 2019, 01:24:31 pm
Hi sweetcorn,

They are still working out the details to get Lazarus and FPC installing on macOS Catalina.  I'm waiting along with you for this to happen. :)
It works. As Mathias and I wrote.
What exactly goes wrong? details, plz.

hi thank you for responding,

i recently downloaded FPC on MacOs Catalina, i followed all the step from downloading the xcode and install command line tools. When i install the Fpc 3.0.4 it said that Fpc-3.0.4-macos-x86_64-laz.pkg was not correctly installed. But, when i installed the fpcs and lazaruzIDE it's installed correctly
Title: Re: fpc cannot installed on MacOS Catalina
Post by: Thaddy on November 14, 2019, 04:37:35 pm
Glad to see it is solved.
Title: Re: fpc cannot installed on MacOS Catalina
Post by: sweetcorn on November 15, 2019, 01:28:27 am
Glad to see it is solved.

yeah it solved for the fpcs and LazarusIDE but not the fpc itself. I already re-installed th fpc but i still got the same message it said Fpc 3.0.4 it said that Fpc-3.0.4-macos-x86_64-laz.pkg was not correctly installed.
Title: Re: fpc cannot installed on MacOS Catalina
Post by: Thaddy on November 15, 2019, 07:52:35 am
Well, I tested again: no problems here. Did you check the install log? We really need as much information as we can get.
It may simply mean some dependencies are missing, but fpc on its own has no dependencies other than the linker AFAIK.
The least you can do is check the hash and examine install.log
Title: Re: fpc cannot installed on MacOS Catalina
Post by: MacDragon on November 16, 2019, 08:49:04 am
"installd[762]: ./postinstall: /tmp/PKInstallSandbox.g3WYL4/Scripts/org.freepascal.pkg.fpc-macos-x86-64-laz.fYIHB1/postinstall: line 8: /usr/local/lib/fpc/Error: ppcx64 can't be executed, error message: Failed to execute "ppcx64", error code: 127/samplecfg: No such file or directory"

This is after fpcs and lazarus packages already installed, on latest Catalina 10.15.2 beta.
Title: Re: fpc cannot installed on MacOS Catalina
Post by: sweetcorn on November 17, 2019, 01:36:34 am
Well, I tested again: no problems here. Did you check the install log? We really need as much information as we can get.
It may simply mean some dependencies are missing, but fpc on its own has no dependencies other than the linker AFAIK.
The least you can do is check the hash and examine install.log

i just check the install log and it said that:

./postinstall: rm: ///usr/local/lib/fpc/Error: ppcx64 can't be executed, error message: Failed to execute "ppcx64", error code: 127/ide/text/fp.cfg.tmp: No such file or directory
Title: Re: fpc cannot installed on MacOS Catalina
Post by: madref on November 20, 2019, 10:14:21 am
Have you tried to install the fpc-3.0.4a.intel-macosx.dmg ?


That's what helped me on MacOS Majave
Title: Re: fpc cannot installed on MacOS Catalina
Post by: Swirl on November 24, 2019, 05:28:07 pm
Same Problem here.
Catalina (10.15.1) already refuses to install "fpc-3.0.4a.intel-macosx.dmg" telling that "Dieses
Paket ist nicht mit dieser macOS-Version kompatibel" (Package is not compatible with this macOS
version). Installation attempt on system volume is blocked. Thus I did not install fpc source nor
lazarus. Honestly spoken I expected this due to Apples system "hardening".
I tried to install on a different volume but installation insists on installing on system volume.
Maybe someone can provide a way how to install on another volume.
Regards,
Mike
Title: Re: fpc cannot installed on MacOS Catalina
Post by: Hansaplast on March 10, 2020, 11:28:45 am
+1


"fpc-3.0.4a.intel-macosx.dmg" (just downloaded it) is being refused by Catalina (10.15.3) stating it is an incompatible package.
Title: Re: fpc cannot installed on MacOS Catalina
Post by: Igor Kokarev on March 27, 2020, 01:40:04 pm
Is there any solution for this error (in a post above) ?
Title: Re: fpc cannot installed on MacOS Catalina
Post by: Hansaplast on March 28, 2020, 10:00:00 am
I didn't go through the entire install (didn't want to destroy my own setup), but this version may work:


https://sourceforge.net/projects/freepascal/files/Mac%20OS%20X/3.0.4/fpc-3.0.4a.intel-macosx.dmg/download (https://sourceforge.net/projects/freepascal/files/Mac%20OS%20X/3.0.4/fpc-3.0.4a.intel-macosx.dmg/download)


Found in:
https://sourceforge.net/projects/freepascal/files/Mac%20OS%20X/3.0.4/ (https://sourceforge.net/projects/freepascal/files/Mac%20OS%20X/3.0.4/)
Title: Re: fpc cannot installed on MacOS Catalina
Post by: trev on March 28, 2020, 11:47:32 am
Official Catalina compatible .pkg installer versions of FPC, FPC source and Lazarus IDE are available from  Lazarus File Area (https://sourceforge.net/projects/lazarus/files/Lazarus%20macOS%20x86-64/) on Sourceforge.

macOS Installation Instructions (https://wiki.freepascal.org/Installing_Lazarus_on_macOS).
Title: Re: fpc cannot installed on MacOS Catalina
Post by: Igor Kokarev on March 28, 2020, 05:37:11 pm
Thanks for your replies!

Should we install official FPC on Catalina or "a" version?

fpc-3.0.4-macos-x86_64-laz.pkg
or
fpc-3.0.4a.intel-macosx.dmg

We tried both versions.

Now we had to reinstall Mojave to install fpc + Lazarus and then upgrade to Catalina.
Title: Re: fpc cannot installed on MacOS Catalina
Post by: mischi on March 28, 2020, 09:47:17 pm
Did you try an installation through MacPorts? That is supposed to work.
Title: Re: fpc cannot installed on MacOS Catalina
Post by: trev on March 28, 2020, 11:44:34 pm
Thanks for your replies!

Should we install official FPC on Catalina or "a" version?

fpc-3.0.4-macos-x86_64-laz.pkg
or
fpc-3.0.4a.intel-macosx.dmg

We tried both versions.

If you download the three .pkg files for the macOS Installer from the Lazarus macOS 64 bit directory on SourceForge as I advised, "it just works" on Catalina.

I have done it. There were no issues. The instructions on the Wiki that I pointed you to (and that I updated) were the exact steps I followed. The installation was successful.

Bear in mind, you have to follow the instructions exactly. The order of the steps is critical as mentioned in the instructions.
Title: Re: fpc cannot installed on MacOS Catalina
Post by: Rainbow6 on March 29, 2020, 09:40:06 pm
Hi,

I never use the official packages for macOS - I always install FPC and Lazarus using FpcUpDeluxe.

I also made some instructions - but sadly only in German - but maybe Google Translate will help you, and screenshots and commands are universal anyway.

-> https://qpgmr.de/freepascal-lazarus-catalina (https://qpgmr.de/freepascal-lazarus-catalina)

HTH
Daniel
Title: Re: fpc cannot installed on MacOS Catalina
Post by: Igor Kokarev on March 30, 2020, 10:56:07 am
Can you help me. I decided to upgrade my iMac with Mojave to Catalina 10.15.4 and now I see the following error:

Code: Pascal  [Select][+][-]
  1. ld: file not found: /usr/lib/crt1.10.5.o
  2. An error occurred while linking

xcode 11.0. I tried to delete xcode and install 11.4 with the same result.

Installing command line tools:

Code: Pascal  [Select][+][-]
  1. iMac-mac:~ mac$ sudo xcode-select --install
  2. xcode-select: error: command line tools are already installed, use "Software Update" to install updates
  3.  
  4. iMac-mac:~ mac$ sudo xcodebuild -license accept
  5. xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance
Title: Re: fpc cannot installed on MacOS Catalina
Post by: Igor Kokarev on March 30, 2020, 12:35:20 pm
I found a solution for the error:
Code: Pascal  [Select][+][-]
  1. ld: file not found: /usr/lib/crt1.10.5.o

in /etc/fpc.cfg add a new line:

-XR/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk

Now it works fine on Catalina.
Title: Re: fpc cannot installed on MacOS Catalina
Post by: jovalca on April 17, 2020, 09:09:41 pm
Hi All.

Voy a responder en Español, pero seguro que lo podeis entender. He tenido el mismo problema cuando he querido desinstalar lazarus 2.0.6 e instalar lazarus 2.0.8. No he podido volver a instalar FPC 3.0.4 pero si que he conseguido instalar Lazarus IDE y FPC-SRC.

He podido instalar la versión “a” del FPC 3.0.4, siguiendo los pasos de esta página, por si a alguien puede resultarle de ayuda. De momento estoy funcionando con Lazarus 2.0.8 en macOS Catalina.

Aqui el enlace: https://apple.stackexchange.com/questions/375603/catalina-not-allowing-to-change-read-write-permissions-despite-having-sip-disabl (https://apple.stackexchange.com/questions/375603/catalina-not-allowing-to-change-read-write-permissions-despite-having-sip-disabl)

Basicamente, para que deje instalar la version “a” del FPC 3.0.4, hay que deshabilitar el “SIP” de Catalina, siguiendo los pasos:

1.- Restart in Recovery mode (Command-R at startup), open Terminal (from the Utilities menu), and disable SIP filesystem protection with:
csrutil enable --without fs
2.- Restart normally, open Terminal, and remount the root volume for read access:
sudo mount -uw /
3.- Install fpc-3.0.4a.intel-macosx.pkg.
4.- Restart again in Recovery mode (Command-R at startup), open Terminal (from the Utilities menu), and run csrutil enable, then restart again normally.

Espero que pueda ayudar a quien tenga este problema.
Un Saludo.
Title: Re: fpc cannot installed on MacOS Catalina
Post by: trev on April 18, 2020, 03:33:40 am
No, no, no, no. Please do NOT do that! The system volume is read-only for good reason and there is no valid reason to do this.
Title: Re: fpc cannot installed on MacOS Catalina
Post by: olly on April 21, 2020, 02:57:36 am
...

Ever since Lazarus 2.0.8 has been released installation fails, previously Lazarus 2.0.6 was working without issues on Github actions:
https://github.com/ollydev/SimbaDevelopment/runs/581365015#step:4:306

Both versions 2.0.6 and 2.0.8 now fail, I suspect the 2.0.6 binary was rebuilt and uploaded?

To confirm it wasn't just the Github actions enviorment I tested on a MacBook, where the same error occurs.

Code: [Select]
brandon@Brandons-MacBook-Pro Laz % sudo installer -pkg LazarusIDE-2.0.8-macos-x86_64.pkg -target /
installer: Package name is LazarusIDE
installer: Installing at base path /
installer: The install was successful.


brandon@Brandons-MacBook-Pro Laz % sudo installer -pkg fpc-3.0.4-macos-x86_64-laz.pkg -target /
installer: Package name is fpc-macos-x86-64-laz
installer: Installing at base path /
installer: The install failed. (The Installer encountered an error that caused the installation to fail. Contact the software manufacturer for assistance. An error occurred while running scripts from the package “fpc-3.0.4-macos-x86_64-laz.pkg”.)


brandon@Brandons-MacBook-Pro Laz % sudo installer -pkg fpc-3.0.4-macos-x86_64-laz.pkg -verbose -target /
installer: Package name is fpc-macos-x86-64-laz
installer: Installing at base path /
installer: Preparing for installation….....
installer: Preparing the disk….....
installer: Preparing fpc-macos-x86-64-laz….....
installer: Waiting for other installations to complete….....
installer: Configuring the installation….....
installer:     
#
installer: Validating packages….....
#
installer: Writing files….....
#
installer: Writing files….....
#
installer: Writing files….....
#
installer: Writing files….....
#
installer: Writing files….....
#
installer: Writing files….....
#
installer: Writing files….....
#
installer: Moving items into place….....
#
installer: Moving items into place….....
#
installer: Moving items into place….....
#
installer: Moving items into place….....
#
installer: Moving items into place….....
#
installer: Moving items into place….....
#
installer: Moving items into place….....
#
installer: Moving items into place….....
installer: Validating packages….....
#
installer: The install failed. (The Installer encountered an error that caused the installation to fail. Contact the software manufacturer for assistance. An error occurred while running scripts from the package “fpc-3.0.4-macos-x86_64-laz.pkg”.)
brandon@Brandons-MacBook-Pro Laz % sudo installer -pkg fpc-3.0.4-macos-x86_64-laz.pkg -verbose -target /

Install.log:

Code: [Select]
./postinstall: /tmp/PKInstallSandbox.vFZ5uH/Scripts/org.freepascal.pkg.fpc-macos-x86-64-laz.QajxE2/postinstall: line 8: /usr/local/lib/fpc/Error: ppcx64 can't be executed, error message: Failed to execute "ppcx64", error code: 127/samplecfg: No such file or directory
Title: Re: fpc cannot installed on MacOS Catalina
Post by: trev on April 21, 2020, 06:35:47 am
Both versions 2.0.6 and 2.0.8 now fail, I suspect the 2.0.6 binary was rebuilt and uploaded?

I just tested on a clean Catalina installation and you are correct :(

However, after making the changes below, despite the failed installation, everything appeared to be working and I could compile programs with the Lazarus IDE:

Code: [Select]
rehash
sudo rm /etc/fpc.cfg
sudo fpcmkcfg -d basepath=/usr/local/lib/fpc/\$fpcversion -o /etc/fpc.cfg
cd /usr/local/bin
sudo ln -s /usr/local/lib/fpc/3.0.4/ppcx64 .
rehash

Note 1: I'm using the tcsh shell, so not bash nor zsh. The rehash may not be required for your shell to pickup new binaries in /usr/local/bin

Note 2: You are supposed to install fpc and fpc-src BEFORE the Lazarus IDE.
Title: Re: fpc cannot installed on MacOS Catalina
Post by: lelebass on April 23, 2020, 07:15:15 pm
I am trying to install Lazarus 2.0.8 x86_64 on macOS Mojave.
I set up a new OS installation from scratch, followed instructions found here:

https://wiki.freepascal.org/Installing_Lazarus_on_macOS

Correctly installed Xcode and tools.

I am stuck at the FPC installation, I downloaded the fpc-3.0.4-macos-x86_64-laz.pkg installer here:

https://sourceforge.net/projects/lazarus/files/Lazarus%20macOS%20x86-64/Lazarus%202.0.8/

but the installer fails with this log:

Apr 23 18:45:04 Steves-MacBook-Pro installd[668]: PackageKit: Install Failed: Error Domain=PKInstallErrorDomain Code=112 "An error occurred while running scripts from the package “fpc-3.0.4-macos-x86_64-laz.pkg”." UserInfo={NSFilePath=./postinstall, NSURL=file:///Users/steve/Downloads/fpc-3.0.4-macos-x86_64-laz.pkg#fpc-macos-x86-64-laz.pkg, PKInstallPackageIdentifier=org.freepascal.pkg.fpc-macos-x86-64-laz, NSLocalizedDescription=An error occurred while running scripts from the package “fpc-3.0.4-macos-x86_64-laz.pkg”.} {
       NSFilePath = "./postinstall";
       NSLocalizedDescription = "An error occurred while running scripts from the package \U201cfpc-3.0.4-macos-x86_64-laz.pkg\U201d.";
       NSURL = "file:///Users/steve/Downloads/fpc-3.0.4-macos-x86_64-laz.pkg#fpc-macos-x86-64-laz.pkg";
       PKInstallPackageIdentifier = "org.freepascal.pkg.fpc-macos-x86-64-laz";
   }

Daniele
Title: Re: fpc cannot installed on MacOS Catalina
Post by: woodle on April 23, 2020, 08:56:23 pm
I have the same problem. Did you find a solution or can I help in any kind?
Title: Re: fpc cannot installed on MacOS Catalina
Post by: trev on April 24, 2020, 04:04:12 am
Does my workaround two posts above not work for you?
Title: Re: fpc cannot installed on MacOS Catalina
Post by: lelebass on April 24, 2020, 08:11:48 am
Thank you Trev,
when I tried your workaround yesterday I should have make a mistake, this morning I tried again and it works. If I try to call fpc from command line now it responds.

I try now to proceed with fpc-src and Lazarus installation.

Ciao,
Daniele

Title: Re: fpc cannot installed on MacOS Catalina
Post by: lelebass on April 24, 2020, 08:27:38 am
Thank you Trev,
when I tried your workaround yesterday I should have make a mistake, this morning I tried again and it works. If I try to call fpc from command line now it responds.

I try now to proceed with fpc-src and Lazarus installation.

Ciao,
Daniele

I was able to install fpc-src and Lazarus. Despite an error message when launching Lazarus (appearing only the first time Lazarus is opened) everything else looks fine and I was able to compile a simple Cocoa application.

Ciao,
Daniele
Title: Re: fpc cannot installed on MacOS Catalina
Post by: trev on April 24, 2020, 09:25:35 am
I was able to install fpc-src and Lazarus. Despite an error message when launching Lazarus (appearing only the first time Lazarus is opened) everything else looks fine and I was able to compile a simple Cocoa application.

Thanks for the confirmation my workaround works for you!

Indeed, I always get that message dialog with a new installation. I seem to recall it was because the "editormacroscript" package is not supported on macOS.
Title: Re: fpc cannot installed on MacOS Catalina
Post by: trev on April 25, 2020, 01:26:50 am
Logged bug: https://bugs.freepascal.org/view.php?id=36968
Title: Re: fpc cannot installed on MacOS Catalina
Post by: mattias on April 25, 2020, 12:34:55 pm
Install.log:

Code: [Select]
./postinstall: /tmp/PKInstallSandbox.vFZ5uH/Scripts/org.freepascal.pkg.fpc-macos-x86-64-laz.QajxE2/postinstall: line 8: /usr/local/lib/fpc/Error: ppcx64 can't be executed, error message: Failed to execute "ppcx64", error code: 127/samplecfg: No such file or directory

Thanks for reporting.
I fixed it and uploaded it as fpc-3.0.4-macos-x86_64-laz-2.pkg.
Checksums:

md5sum
3b253ed30dc5ed3255438476df6127a6  fpc-3.0.4-macos-x86_64-laz.pkg
02eae2bd4113773abc6996a78d995068  lazarus-2.0.8-i686-macosx.dmg

sha1sum
ba92270eff1285397d0e2483a433f2d3bfb1d3bc  fpc-3.0.4-macos-x86_64-laz.pkg
db747392e61f2e30830fbb428722e45ab5155635  lazarus-2.0.8-i686-macosx.dmg

sha256sum
691eafadd575ea5d3a52349aaee74eed265fbb4b9df98dcb57b57d5ec1d1541f
fpc-3.0.4-macos-x86_64-laz.pkg
88e8adc42d6194657c56cfce803a7072803dc52622b2bb926c65d8504c040617
lazarus-2.0.8-i686-macosx.dmg
Title: Re: fpc cannot installed on MacOS Catalina
Post by: axisdj on April 25, 2020, 06:05:10 pm
Thanks so Much!

So I have been moving from vb6 to Laz in the last few weeks, finally got a MAC and tried to install fpc yesterday, and recieved the message failed install yesterday.

I was pretty discourage, BUT you posted a fix last night and I got it all up ands running on the MAC, thank you so much.

Now time to move code to MAC to see if it will compile!


Title: fpc cannot installed on MacOS Catalina ?
Post by: Philippe Aucoin on May 26, 2020, 10:48:33 am
Hello there,

I'm a new member.
I used Pascal and Lazarus before, on older systems.

On Catalina the release I got from Lazarus-Source forge (3.0.4 64 bits and 2.0.8 ) was easy to install and successful ... but (???)

At first launch a message came telling that a paquet IS NOT installed.
But the first projet I tried worked, compiled, and built too ... but
The Icon off the resulting building had a white sign like non working apps ... but
Actually it worked, then removing this app and re-building worked the right way !

Yes it works on macOS Catalina ! :)
TinyPortal © 2005-2018