PDA

View Full Version : [SOLVED] installing pascal



noxified
March 13th, 2011, 08:04 PM
Hello.
I`m pretty new in ubuntu community,and pretty new ubuntu user,so i am a newbie.
I need help installing and using pascal(for school)
Of what i found on the internet,i could use lazarus,but i don`t want beacuse i`m not used to it.
So i`ll need pascal.(free pascal ,good too)
Anyone help me ,step by step,installing it?
i use ubuntu 10.10
Thanks in advance.

johnl
March 13th, 2011, 08:27 PM
to install:


sudo apt-get install gpc


then to compile:


gpc yourfile.pas -o program_name

noxified
March 13th, 2011, 08:44 PM
good.i installed it.(thanks)
But how can i start it?
I can`t find in applications.
I like terminal,but i want to run pascal,like normal.I mean not to use it in terminal.
What`s the command to run it?Or,where is he?

sanderj
March 13th, 2011, 09:03 PM
Hello.

I need help installing and using pascal(for school)
Of what i found on the internet,i could use lazarus,but i don`t want beacuse i`m not used to it.


Have you tried Lazarus (install it via the Ubuntu Software Center)?
It is a TP / Delphi lookalike.

If you're not used to TP / Delphi, *what* are you used to then?

noxified
March 13th, 2011, 09:24 PM
With this.
http://gallery.harnata.com/albums/userpics/10001/turbo_pascal.png

sanderj
March 13th, 2011, 09:48 PM
With this.
http://gallery.harnata.com/albums/userpics/10001/turbo_pascal.png

Cool! That feels like 1987: programming in Turbo Pascal 1.0.

OK, here's the recipe, using http://en.ubucentrum.net/2009/04/turbo-pascal-programming-in-ubuntu.html

So: start up synaptic package manager.
search for "free pascal", and then in the search results, find "fp-ide". Select that for installation. A few more packages will be add.
Select "Apply" and the installation will begin; it will take 30 seconds. Then quit Synaptic
After installing, on the prompt, just type 'fp', and you will get the Turbo Pascal 1.0 interface.

I just did that and wrote a three line program; see the included screendump.

noxified
March 14th, 2011, 06:22 AM
That guy was right.
Here`s full of genious.Thanks man!