Wow! THAT brought back memories!! I am a long-time fan of Pascal... going back to the days of Turbo Pascal in the early 1990s... late 1980s?
Anyway.... I hope the following will shed light on the discussion above. Most of what I'm going to say was mentioned at some point, but I hope the following will pull things together.
a) Once upon a time, "Pascal" was invented. This was before ANYONE had GUIs to like or loath, depending on your point of view.
b) A very successful early Pascal was Turbo Pascal from what was then called Borland.
If you are a Pi user, just getting going with programming, I would strongly recommend Lazarus to you. When you install Lazarus, you get a huge package which will allow you to create things for the Windows-like Raspbian. See...
https://www.tweaking4all.com/hardware/r ... erry-pi-2/
... but don't worry about the warnings that the simple install system won't work on Pi 3's. Those warnings are dated. You just do...
Code: Select all
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install fpc
sudo apt-get install lazarus
Once you've done that, look in the @Programming" part of the Raspbian main menu. You should see an entry for Lazarus. Click on that to start the Lazarus IDE (Integrated Development Environment). If you mean "the thing I use to write programs to run in the Raspbian QUI environment", then that's how.
Make yourself a little "hello world" program. (Help at http://sheepdogguides.com/lut/index.htm
That will create a Raspbian friendly program. You merely drill down to it with the File Manager, and double click, and the program you wrote fires up.
That's probably all you'd WANT to do. But, in case I misunderstood, here are other answers...
"Underneath" Lazarus is the Free Pascal Compiler system. If you don't WANT to-run-in-the-GUI programs, you go into the CLI, and type fp (not fpc). That starts what prompted my comment about memories. That starts a program which will let you write things which will run in the CLI. Rather crude things! But they may be what you want! It is sort of GUI like, in that you have menus, etc. But MUCH more basic. We'll get to "how to start something created this way" in a moment.
First I want to point out that Lazarus is MUCH MORE than just a "pretty face" for the underlying Pascal compiler. Lazarus has some amazing things which make it painless to create buttons on forms, have events handled, etc, etc. It really is the place to put your energies in 2018.
So... back to the "old skul"... let's see if I can remember how it is done!...
In the CLI, after doing the installs suggested, enter fp.
Use File/New from Template/ Program to start a new app. Enter MyFirstPascal ihn answer to the "Fill in template parameter: Program" request. ... Oh heck. Got this far, couldn't get the little app to compile. "Error while linking". But for LAZARUS, my system works fine.
ANYWAY... if you can overcome the "Error while linking", you can create little things to run under the CLI. If you do, I believe that the compiler will create executables... so you'd just type their name at the command prompt to launch them. Or, as I recall... it was a long time ago... fpc myprogram.pas to re-compile the soucecode... not something you'd normally do.
If someone can guide me past the "Can't link", I'd be grateful. It would be fun to write a program or two "the old way", for old time's sake!
New to Pi and Linux generally... old to computers. Using Raspbian 9 (Stretch) on a Pi 3 B (ver 1.2), apt-get update, apt-get upgrade at least as recently as 5 Aug 2018