GNU Pascal - how to install on AlmaLinux 9

Is it possible to install GNU Pascal on AlmaLinux?

There shouldn’t be any problems, see Installation instructions however watch out for “Binary distributions include libgcc.a and specs, files that are normally part of GCC. If you have GCC installed, they will be replaced unless you manually install the archive.”

Alternatively there is a Pascal compiler that comes with EPEL:

$ dnf info fpc
Last metadata expiration check: 0:00:08 ago on Wed 07 Feb 2024 15:26:25 GMT.
Available Packages
Name         : fpc
Version      : 3.2.2
Release      : 9.el9
Architecture : x86_64
Size         : 46 M
Source       : fpc-3.2.2-9.el9.src.rpm
Repository   : epel
Summary      : Free Pascal Compiler
URL          : http://www.freepascal.org/
License      : GPLv2+ and LGPLv2+ with exceptions
Description  : Free Pascal is a free 32/64bit Pascal Compiler. It comes with a
             : run-time library and is fully compatible with Turbo Pascal 7.0
             : and nearly Delphi compatible. Some extensions are added to the
             : language, like function overloading and generics. Shared
             : libraries can be linked. This package contains the command-line
             : compiler and utilities. Provided units are the runtime library
             : (RTL), free component library (FCL) and packages.
1 Like

Either the links are broken for me or I don’t have permission?

Wikipedia writes about GNU Pascal:

as of December 2016 no further releases or announcements about the future course of the project have been made

There is something called “Free Pascal”: https://www.freepascal.org/
that EPEL has as package fpc.


And I’m woefully slow @MartinR :flushed:

2 Likes

Are there any old versions I can still access that might run on AlmaLinux

Version I’m after is :
GNU Pascal version 20041017, based on gcc-3.3.3.
Copyright (C) 1987-2004 Free Software Foundation, Inc.

Twenty years old! I wouldn’t even try on a modern, up to date, machine. You might be able to run up a VM with an ancient version of CentOS, but I suspect you’ll end up learning a lot about compiling, linksing and internals.

1 Like

I had not heard of GNU Pascal before today. Since we are most likely talking about source install (and have no idea if/where the sources are), I can only note that the GCC version in AlmaLinux 9 defaults to (GNU dialect of) ISO C17 for C code. It can compile also in ISO C90, C99, and C11 modes. Codebase from 2004 (or older) cannot be for C11 or C17 and one probably has to add the -std= option for build. (I.e. edit Makefile or configure options.)


Also, do build with regular account, the “make install” included.

I know - it’s almost funny !

If you really need something old school, there’s a recent Turbo Pascal compiler called Turbo Rascal that you could probably get working if you install the qt dependencies.

https://lemonspawn.com/turbo-rascal-syntax-error-expected-but-begin/downloads/