Skip to playerSkip to main content
  • 22 hours ago
Transcript
00:00what's up fellas I was asked about an alternative to Turbo Pascal and it should work on the modern
00:11operating systems so I thought of sharing with you how to install them on Arch Linux they are
00:19Free Pascal the compiler and Lazarus IDE since Turbo Pascal consists of two pieces of software
00:29if we can say a compiler and an IDE free Pascal can be installed from any Linux official package
00:43manager you need to find the command the relevant command for your package manager in my case it's
00:52for Arch Linux here and the command should be sudo pacman dash uppercase as FPC I believe that it
01:04exists in the official repositories here and it's almost the same for any other Linux distribution
01:14here we press Y and enter the installation here is complete I lost the source code for that small
01:29program that I made on Turbo Pascal I will make it again it's not that hard let's call it odd even
01:41dot pass like this and with your favorite text editor including visual studio code you edit it you may need
01:55to add some extensions to it in order to write your code I will simply write mine then review it together
02:07then compile it or then compile it or then compile it and review it together you can see the manual page of
02:17Free Pascal the compiler by running man FPC I don't have the package for that installed I need to install it first like this
02:32or man let's go the first one
02:39now we can read the manual for it I prepared the piece of code that you have
03:02seen in the video of Turbo Pascal let me show you how it looks like this one I hope I made no mistake
03:12here let's try to compile it this as you saw I was facing an error and it was about having
03:28having this apostrophe in the middle of this string literal so the code became like this make sure you
03:42don't have any apostrophe in the middle of any string literal and when we compile it it compiled successfully I
03:52believe we will have a piece of software this one yes this one it's the executable and the application that was made
04:08we can run it here we are supposed to tell the user that he needs to input a number and we can see that it works
04:26let's try instead of him to use nano you can use whatever we want as a text editor here dot pass like this
04:37and then like this save and exit and then FPC that piece of code like this and we can run it
05:06give it for example this one it is even yeah so that was how to set up free Pascal on Arch Linux it's the alternative to Turbo Pascal's compiler for Linux I will remove it and I will show you in the next video
05:34how to set up the next video how to set up the IDE the alternative to Turbo Pascal and also Delphi or Delphi
05:41that makes it for this video and peace
Comments

Recommended