PDA

View Full Version : Pascal in Ubuntu



SKYDOS
July 17th, 2009, 04:11 PM
Hello!
I need Pascal compiler and IDE (like NetBeans), but I DONT need Lazarus
Is there something like NetBeans?

:popcorn:

jonobr
July 17th, 2009, 04:35 PM
Recommend you move this to the programming section,
the guys over there are genius's and :guitar: rock

prshah
July 17th, 2009, 05:36 PM
I need Pascal compiler and IDE (like NetBeans), but I DONT need Lazarus Is there something like NetBeans?

Don't know about an IDE but you can always
sudo apt-get install pascal-compiler

zolookas
July 17th, 2009, 09:29 PM
You can use fpc (apt://fpc) and fp-ide (apt://fp-ide) packages, but provided IDE is curses based and looks like Borland's Turbo Pascal.

Here's screenshot i have found:
http://img25.imageshack.us/img25/5568/compiler1.th.jpg (http://img25.imageshack.us/i/compiler1.jpg/)

SKYDOS
July 17th, 2009, 09:37 PM
You can use fpc (apt://fpc) and fp-ide (apt://fp-ide) packages, but provided IDE is curses based and looks like Borland's Turbo Pascal.

Here's screenshot i have found:
http://img25.imageshack.us/img25/5568/compiler1.th.jpg (http://img25.imageshack.us/i/compiler1.jpg/)

COOL! I have installed it, but I dont know how to run the IDE ((( help pls!

SKYDOS
July 17th, 2009, 09:57 PM
You can use fpc (apt://fpc) and fp-ide (apt://fp-ide) packages, but provided IDE is curses based and looks like Borland's Turbo Pascal.

Here's screenshot i have found:
http://img25.imageshack.us/img25/5568/compiler1.th.jpg (http://img25.imageshack.us/i/compiler1.jpg/)

Look pls on attached screens... i have some errors((

zolookas
July 17th, 2009, 10:02 PM
I no longer write anything in pascal, but I will try to help.

If your mouse and copy and paste works inside IDE, that bug does not affect you.

Try installing build-essential (apt://build-essential) package as you may have some development libraries missing.
Also try saving your hello world application to a text file (eg. hello.pas) and use fpc to compile it

fpc hello.pasand see if it fails.

It's late here, I have to go.

SKYDOS
July 17th, 2009, 10:17 PM
I no longer write anything in pascal, but I will try to help.

If your mouse and copy and paste works inside IDE, that bug does not affect you.

Try installing build-essential (apt://build-essential) package as you may have some development libraries missing.
Also try saving your hello world application to a text file (eg. hello.pas) and use fpc to compile it

fpc hello.pasand see if it fails.

It's late here, I have to go.

It works! but how can i run this program?

jespdj
July 17th, 2009, 11:38 PM
Try typing in:

./hello
in the terminal when you're in the directory that contains the executable.

Wow! Flashback to Turbo Pascal, which I was playing with in 1991 or 1992 on my 20 MHz 386SX with 1 MB RAM.

unknownPoster
July 17th, 2009, 11:47 PM
Wow! Flashback to Turbo Pascal, which I was playing with in 1991 or 1992 on my 20 MHz 386SX with 1 MB RAM.

For some reason, they were teaching it at my highschool back around 2004. It brings back memories, I'm tempted to go play around with it just for fun. :P

SKYDOS
July 18th, 2009, 07:20 AM
Try typing in:

./helloin the terminal when you're in the directory that contains the executable.

Wow! Flashback to Turbo Pascal, which I was playing with in 1991 or 1992 on my 20 MHz 386SX with 1 MB RAM.

It worked! Thanks! but I dont understand why the IDE is not working... ((
It's quite uncomfortable to work with console.

The Cog
July 18th, 2009, 09:01 PM
Try geany. It's a lightweight editor/ide. It's in the repositories.

hessiess
July 18th, 2009, 09:08 PM
It's quite uncomfortable to work with console.

After learning how to use the command line, you wouldn't say that ;)

You don't need an IDE, almost all of the text editors on Linux have syntax hi lighting for almost everything, and are highly scriptable.

IDE's are bloatwere and overcomplicate everything (IMO).

SKYDOS
July 19th, 2009, 06:44 AM
Try geany. It's a lightweight editor/ide. It's in the repositories.

I am going to try it) :D

SKYDOS
July 19th, 2009, 06:45 AM
After learning how to use the command line, you wouldn't say that ;)

You don't need an IDE, almost all of the text editors on Linux have syntax hi lighting for almost everything, and are highly scriptable.

IDE's are bloatwere and overcomplicate everything (IMO).

I like console)) but I dont like to edit files, I mean pas files each time i need to correct some errors... it's not so comfortable. but for me console looks much more beautiful now)

Thank you guys :popcorn: