How to download and compile Harbour from git sources on Ubuntu 20.04

127 views
Skip to first unread message

marcobra

unread,
Aug 24, 2022, 1:05:07 PM8/24/22
to Harbour Users
Please not use the root user, and  save the attached file to your homedir then type:

cd ~
chmod 700 build_harbour.sh
./build_harbour.sh


give you user password when requested then press enter

wait the complete compile... at the end verify the installed harbour type:

harbour -build

You will get...

Harbour 3.2.0dev (r2104281802)
Copyright (c) 1999-2021, https://harbour.github.io/

Harbour Build Info
---------------------------
Version: Harbour 3.2.0dev (r2104281802)
Compiler: GNU C 9.4 (64-bit)
Platform: Linux 5.15.0-46-generic x86_64
PCode version: 0.3
ChangeLog last entry: 2021-04-28 20:02 UTC+0200 Aleksander Czajczynski (hb fki.pl)
ChangeLog ID: 4643587824552fd877e7f02ad11596e0b30c465d
Built on: Aug 24 2022 17:50:20
Build options: (Clipper 5.3b) (Clipper 5.x undoc)
---------------------------


build_harbour.sh

jgt

unread,
Aug 24, 2022, 4:32:59 PM8/24/22
to Harbour Users
I tried this on Linuxmint 20 and it failed eventually because an earlier version of harbour is installed.
Is there an additional option to force replacement, or do I have to delete the earlier version first?

Thanks, 

jgt

unread,
Aug 24, 2022, 7:09:52 PM8/24/22
to Harbour Users
I ended up running:
```
root@L6:/home/jack# rm -r /usr/lib/harbour /usr/include/harbour /usr/share/doc/harbour /usr/share/harbour /usr/bin/harbour
```
and then running the build again. 
Reply all
Reply to author
Forward
0 new messages