How to Install the LDPL Programming Language on Fedora

Recently, I stumbled across an interesting little language named the LDPL programming language. It’s inspired by COBOL and has several neat features. However, LDPL is not as popular or well known as other languages.

LDPL (the Dinosaur Programming Language) is a language designed to be easy to understand and simple to write. Designed to be easy to learn and simple to use. We believe that coding should be easy and simple. Nothing should become a frustrating chore. Compiling source code should be easy and simple: a single, flagless command should be enough to compile any source code. Every statement in the language should do one and one thing only, not multiple things depending on the context. Complex, low level stuff like encoding, sockets, floating point number comparison, etc., should be dealt by the compiler, transparently to the user. Hard stuff should be made easier.

If you want to use LDPL, you need to follow the installation instructions on GitHub. However, the instructions are pretty generic. Below are Fedora specific installation instructions.

First, you need to download the latest version of LDPL via git.

git clone https://github.com/Lartu/ldpl.git

Next, you need to use cd ldpl to enter the languages folder and run the make command.

In my case, I got the following error because LDPL needs to have C++ installed. I was under the impression that Fedora had C++ installed, but I was wrong.

[johnblood@itsfoss ldpl]$ make
cd src && g++ -Wall -std=gnu++11 -fpermissive -DVERSION='"4.5"'   -DVERSIONNAME='"Groovy Gualicho"'  -DCOMPILEDATE='"2021-02-07"' -DCOMPILEHOUR='"08:29:47"' -DLPMLOCATION='"~/ldpl/lpm/"' -DLDPLLIBLOCATION='"/usr/local/lib/ldpl"'  ldpl.cpp -o ldpl -static-libgcc -static-libstdc++
/usr/bin/ld: cannot find -lstdc++
collect2: error: ld returned 1 exit status
make: *** [makefile:59: all] Error 1

To install the required dependency, run sudo dnf install libstdc++-static.

Once the installation is complete, run make and then sudo make install.

You shouldn’t encounter any other errors. Once the installation is complete, you can check to make it is working by running ldpl -v in the terminal. The output should look like this:

[johnblood@itsfoss ~]$ ldpl -v

 This is LDPL version 4.5 'Groovy Gualicho'.

 Copyright 2018-2020, Martín del Río (www.lartu.net).
 Built with amazing contributions from Chris West, Damián Garro,
 Ignacio Losiggio and other wonderful contributors.

 The LDPL Home Page can be found at www.ldpl-lang.org.
 The LDPL source code is available at www.github.com/lartu/ldpl.

 Complete documentation for LDPL should be found on this system
 using 'man ldpl'. If you have access to the internet, the
 documentation can also be found online at docs.ldpl-lang.org.

 LDPL may be copied only under the terms of the Apache License
 Version 2.0, which may be found in the LDPL repository.

 This binary was compiled on 2021-02-07 at 08:36:59.

Optional: Install Code Highlighting

LDPL ships with support for code highlighting for both Nano and Gedit/Pluma. To install, you need to navigate to either the /highlighting/nano or /highlighting/gedit folder. When you are in the correct folder, run ./install.sh/.


If you found this article interesting, please share it on social media. You can also send a tip via Paypal.me or Liberapay. If you would like to comment, please use the contact form listed at the top of the page.

John Paul Wohlscheid avatar
John Paul Wohlscheid
John Paul is a geek who likes to play with Linux and read about the early history of personal computing.