TIDE
Languages

Harbour

Installing Harbour on Ubuntu in TIDE

Harbour

Harbour is a free, cross-platform compiler for the xBase programming language dialect. It provides backwards compatibility with CA-Clipper code while adding object-oriented features, multi-threading, and database driver support for modern enterprise software development.

Installation

Install Harbour on Ubuntu by compiling it from its source repository:

apt update
apt install -y gcc make git libssl-dev libncurses5-dev
git clone https://github.com/harbour/core.git harbour-core
cd harbour-core
make -j$(nproc)
make install

Verification

Check the installed version of Harbour:

hbmk2 --version

Writing and Compiling Code

Create a Harbour source file named hello.prg:

PROCEDURE Main()
    ? "Hello, World!"
RETURN

Compile and build the code using the Harbour build utility (hbmk2):

hbmk2 hello.prg

Run the resulting executable:

./hello

Official Resources

On this page