03 - Open Source (EN)

Harbor-linux installation guide

Last Updated on 26 May 2021 by Roberto De Pedrini

after seeing how to install the harbor package on windows let’s see how to do the same with the penguin system.

  • Prerequisites:

before downloading and installing Harbor we need to get two important GCC and MAKE packages on the linux system:

to install GCC we open the terminal and type the command:

to install MAKE we open the terminal and type the command:

recommended prerequisites (github or unzip):

to install GITHUB we type on the terminal:

to install unzip we type on the terminal:

  • Harbor Downloads:

Once you are sure you have the requirements within our system. We go to the official GITHUB page and download the project files with these two methods:

1) If we are on the github site as seen in the article dedicated to windows, just go to the green Code button and download the package in ZIP format, by clicking on the “Download ZIP” submenu:

we wait for the end of the download and extract the contents of the archive with the command:

2) If we have chosen to install GIT we can open the terminal and directly clone the entire code using the command:

once the command has been launched, wait for the download, a folder will be created in the home of the currently logged in user:

package download in progress
harbor folder in Home

-Installation of additional components

Once the download is complete, go back to the GitHub page and install the add-ons to be included with Harbor according to our needs (we recommend installing the ODBC package and mysql / maria-DB).

PLEASE NOTE: some packages reported here have been updated, so please check the linux repository for the updated name.

– Harbor installation:

After the installation of the components, we go with the terminal inside the Harbor folder and launch the command:

at this point the installation will start and the binary files and the various libraries will be copied into the / usr / shared / local folder.

– Execution and testing:

After the installation we are ready to see if everything works. Let’s go straight to the terminal and run the hbmk2 command on the terminal. If the command is correctly recognized we are at a good point. Now let’s prepare our classic hello world example. Let’s create a file with the extension .PRG for example Hello.prg and write in it:

? "Hello world"

we open the terminal and we move to the folder where we created the source file and launch the command:

hbmk2 Hello.prg

at this point Harbor will generate the binary file ready to be executed with the command:


Now we are ready to experiment with harbor, in the next article we will see the various tools recommended to develop with this language and how to take the first steps starting to see first the classic programming of the clipper to show the simplicity of creating console interfaces similar to ours. display file on as400.

– Creation of distributable packages

If we don’t want to compile our harbor package for the single machine, but we want to prepare the .deb or rpm package that can be distributed for each linux distro, we can follow the instructions on the GitHub page (https://github.com/harbour/core#how -to-create-distributable-packages). I also recommend for this to follow the Harbor wiki article (How install harbor on ubuntu), where you can consider the detailed explanation and use of the example script to simplify the generation of the installer package. Also remember that to perform this type of procedure it is necessary to use the fakeroot package necessary to avoid blocking processes that may require special permissions.

external links:

This article is a summary with a simplified version that takes its cue from the official wiki harbor.wiki – (How to install Harbor on Ubuntu) written by Alain Aupeix it is therefore recommended that in case of errors or other to consult the wiki to install missing packages to search to install the package correctly.

Harbor GIT Repository Official Site – https://github.com/harbour/core

About author

Giorgio Caponera, IBM Fresh Face 2019, developer and IBM i passionate

Leave a Reply

%d bloggers like this: