Recent

Author Topic: Installing Pascal on MacBook Pro Intel BigSur11.5.2  (Read 3366 times)

mo112

  • New member
  • *
  • Posts: 5
Installing Pascal on MacBook Pro Intel BigSur11.5.2
« on: August 23, 2021, 09:42:27 am »
Hello,
i am a fresh math Student from Germany and i am in need to install Pascal on my Macbook. I have an MacbookPro with BigSur11.5.2 Software. Furthermore i installed the XCode12.5.1 Version and Lazarus IDE2.2ORC1
I tried to install the Pascal Software, but there is nothing to see in my Launchpad.

Could anyone please help me to install Pascal?

Thank you very much.

trev

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1683
  • Former Delphi 1-7, 10.2 user
Re: Installing Pascal on MacBook Pro Intel BigSur11.5.2
« Reply #1 on: August 23, 2021, 10:12:27 am »
Provided that you have installed the three packages (Lazarus, FPC binaries and FPC source) you should be good to go.

If you wish to use FPC outside of the Lazarus IDE, open an Applications> Utilities > Terminal window and compile a program using "fpc myProgram.pas".

There is no separate entry in Launchpad for the Free Pascal Compiler because it is a command line program which the Lazarus IDE takes care of calling for you.
Lazarus 2.3, FPC 3.3.1 macOS 12.0.1 x86_64 Xcode 13.1
Lazarus 2.3, FPC 3.3.1 macOS 12.0.1 aarch64 Xcode 13.1
Lazarus 2.3, FPC 3.2.2 FreeBSD 13.0 amd64 VM
Lazarus 2.3, FPC 3.2.2 FreeBSD 12.2 amd64 VM
Lazarus 2.1 r61574 FPC 3.0.4 Ubuntu 20.04 VM
Lazarus 2.0.10 FPC 3.2.0 Win10 VM

mo112

  • New member
  • *
  • Posts: 5
Re: Installing Pascal on MacBook Pro Intel BigSur11.5.2
« Reply #2 on: August 23, 2021, 10:37:14 am »
trev, thank you very much for your respond.

But sadly i dont understand nothing...

If i go into the Terminal and fill in the "fpc myprogramm.pas"
there will come:

Last login: Sun Aug 22 18:36:52 on console

The default interactive shell is now zsh.
To update your account to use zsh, please run `chsh -s /bin/zsh`.
For more details, please visit https://support.apple.com/kb/HT208050.
gasts-MBP:~ gast$ fpc myprogramm.pas
Free Pascal Compiler version 3.2.0 [2020/05/31] for x86_64
Copyright (c) 1993-2020 by Florian Klaempfl and others
Target OS: Darwin for x86_64
Compiling myprogramm.pas
Fatal: Cannot open file "myprogramm.pas"
Fatal: Compilation aborted
Error: /usr/local/bin/ppcx64 returned an error exitcode
gasts-MBP:~ gast$


/td]

I am just in need to open the classic pascal software -like in the windows version- , to do the steps as in my learningbook is written.


To ask again for a "stupid german student  :) ":
How am i able to open the Pascal programm? - Or how do i get this site:

(https://i.ibb.co/SB3MYj0/Bildschirmfoto-2021-08-23-um-10-34-02.png)

mo112

  • New member
  • *
  • Posts: 5
Re: Installing Pascal on MacBook Pro Intel BigSur11.5.2
« Reply #3 on: August 23, 2021, 11:26:42 am »
I´ve not opened a Terminal and  window and execute "xcode-select --install".
Now i ´ll have to download the tool and we will see what happened.


trev

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1683
  • Former Delphi 1-7, 10.2 user
Re: Installing Pascal on MacBook Pro Intel BigSur11.5.2
« Reply #4 on: August 23, 2021, 12:18:08 pm »
Detailed instructions for installing the Lazarus IDE and FPC may be found in the wiki article Installing Lazarus on macOS.

Quote
Fatal: Cannot open file "myprogramm.pas"

Do you have a file named myprogramm.pas in the directory?

Quote
to do the steps as in my learning book

I do not know what is in your book :(

Quote
Or how do i get this site

Go to Applications > Lazarus and click on Lazarus.app.

Of course, you do need to install the Xcode command line tools.

Let us know if you have any problems.
Lazarus 2.3, FPC 3.3.1 macOS 12.0.1 x86_64 Xcode 13.1
Lazarus 2.3, FPC 3.3.1 macOS 12.0.1 aarch64 Xcode 13.1
Lazarus 2.3, FPC 3.2.2 FreeBSD 13.0 amd64 VM
Lazarus 2.3, FPC 3.2.2 FreeBSD 12.2 amd64 VM
Lazarus 2.1 r61574 FPC 3.0.4 Ubuntu 20.04 VM
Lazarus 2.0.10 FPC 3.2.0 Win10 VM

mo112

  • New member
  • *
  • Posts: 5
Re: Installing Pascal on MacBook Pro Intel BigSur11.5.2
« Reply #5 on: August 24, 2021, 12:57:39 pm »
It seems to work now, but if I try to start the first "easy Programm", I get this message.
But i´ve just done as it is written in my book.
(https://i.ibb.co/VWVCTfT/Bildschirmfoto-2021-08-24-um-12-56-02.png)

mo112

  • New member
  • *
  • Posts: 5
Re: Installing Pascal on MacBook Pro Intel BigSur11.5.2
« Reply #6 on: August 24, 2021, 01:56:08 pm »
Now I reinstalled Pascal and it seems to work partly. But what do I have to do with this message:

"debugger"
(https://i.ibb.co/yN0WF3b/Bildschirmfoto-2021-08-24-um-13-52-40.png)

trev

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1683
  • Former Delphi 1-7, 10.2 user
Re: Installing Pascal on MacBook Pro Intel BigSur11.5.2
« Reply #7 on: August 25, 2021, 12:38:06 am »
It looks like you did not follow the instructions I pointed you to on the Wiki. There is a section explaining the simple steps to setup the debugger.

An English translation of your error messages next time would also be helpful, my four months of German lessons at school 50 years ago are no longer all that helpful  :-[
Lazarus 2.3, FPC 3.3.1 macOS 12.0.1 x86_64 Xcode 13.1
Lazarus 2.3, FPC 3.3.1 macOS 12.0.1 aarch64 Xcode 13.1
Lazarus 2.3, FPC 3.2.2 FreeBSD 13.0 amd64 VM
Lazarus 2.3, FPC 3.2.2 FreeBSD 12.2 amd64 VM
Lazarus 2.1 r61574 FPC 3.0.4 Ubuntu 20.04 VM
Lazarus 2.0.10 FPC 3.2.0 Win10 VM

 

TinyPortal © 2005-2018