after seeing how to install the harbor package on windows let’s see how to do the same with the penguin system.
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:
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:
-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:
PROCEDURES main ()
? "Hello world"
RETURN
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:
./Hello
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
If you work with IBM i, I recommend reading this insightful article by Giancarlo Lui: IBM i System Management: Simpler…
In his recent article "RPG Free and option *convert" , Aldo Succi explores the *CONVERT option in the RPG language,…
Updating Java and DCM Certificates for ECB Exchange Rate Retrieval on IBM i In our blog, we have previously discussed…
We are pleased to receive and share this "tip & trick" from Patrick Rizzi, which introduces a technique that allows…
I take inspiration from a response by Michael Mayer on the Midrange.com mailing lists to someone who asked how to…
Businesses are increasingly seeking tools to enhance efficiency, collaboration, and resource management. Enterprise Resource Planning (ERP) systems provide a comprehensive…