Skip to playerSkip to main content
  • 1 week ago
Transcript
00:00hello everybody I wanted to set up PL1 or PLI compiler PLI is a programming language that's
00:10worth trying and learning you can google more on it to know about its uses and stuff there is this
00:22free compiler from iron spring for Linux and OS 2 you see the purple links the links have turned
00:31purple since I was trying each and every one of them we will simply go with 1.4 so we download
00:40it like this it should be in the downloads folder before I tell you the steps which I told about
00:52one of them I wanted to tell you that this video is highly inspired by another video that you would
00:58see on the screen anytime soon we are in the home directory of my user which is user as you see
01:09we switch directory to downloads we will find that PLI or PL1 is downloaded there to decompress it we
01:21should run this command always press and tab for the auto completion and then we should have a tar
01:32file now like this so we can run the command tar to decompress it if we can say or take out the files
01:47PLI tab for auto completion enter we can switch directory into PLI okay clear out the screen
02:04we are ready to install the command is sudo make install password enter all right clear out the screen
02:15there is a file that we will depend on every time we would like to compile the file the code that we write
02:24which we can find under samples and the file should be make file dot Linux like that now we should maybe make a
02:41directory where we will place our projects we can call the directory projects probably
02:50like this change directory into projects or before that we copy the make file that we talked about few seconds ago
03:04so we can go into projects like this we can change directory into projects
03:13and we can make our first project which is a PLI app we can call it whatever we want we can call it app dot pli
03:26which is optional I mean the extension enter and we can change it to become a valid code
03:42I look at for hello world app and it should look like this now I'm gonna copy it here
03:51here this is the name of the application since I called it app it's fine to change the name to app
04:00I guess it's fine to keep it the way it is whichever it is app like this save and exit
04:09let's go to make file dot Linux scroll down delete this if I'm not mistaken
04:22this we call it here app save and exit we change the name from make file dot Linux to make file only
04:35without that dot Linux at the end and then we run make
04:48ls
04:51okay it failed here uh it only worked for me with
05:171.3.1 and 1.3.0 so let's try with one of them
05:31we run the same commands with them I don't know if it's the issue from the version or
05:40from me myself like I made a mistake and then like this pli 3 tar xvf pli 3 and then cd pli 3
06:08and then sudo make install
06:18okay cd like this and then cd pli to the other one which is for cd projects
06:29and then cd projects and then cd projects and then cd projects and then we try again to make this thing
06:35or let's just move the app file to like this downloads pli 1.3.1
06:49now loads pli this mk directory mkdir 3.1.2.3.2.4.4.4.4.4.4.4.4.4.4.4.4.4.5.5.4.5.4.5.5.5.4.5.4.1
07:07call it projects also and then mv app.cli into projects cp samples makefile.linux into projects
07:28cd projects and then we change that files content this one
07:46here we put the name of the file that has the source code in it without the extension save and
08:01exit and change the name from makefile.linux to makefile only without .linux at the end and try
08:10with make maybe try with yeah there it's somehow my issue my mistake here all up yes
08:29ls so probably it's my mistake with the other version up if we run up like this we got our code
08:46executed correctly let's change the source code into something else this message
08:58would be subscribe if you don't mind of course like share comment does this make a new line thanks
09:16for watching save and exit let's try again like this and then like this this doesn't make a new line
09:32there should be a different character for it anyway that's it how you set up the compiler please don't
09:40please remember the how to make the make file it should be here all like this equals the file of your
09:51source code without the extension and then this all also should have it there try with 1.4 and if it
10:02didn't work try with 1.3.1 in case it is really the issue from the version that's it from me i'm so i'm signing out and peace
Be the first to comment
Add your comment

Recommended