Gah return of the libharbour.so.3.2: issue...

144 views
Skip to first unread message

Michael Green

unread,
Aug 15, 2025, 3:28:40 AMAug 15
to Harbour Users
I installed Harbour from source on Linux Mint.  I'm getting the:
./hello: error while loading shared libraries: libharbour.so.3.2: cannot open shared object file: No such file or directory
Previously I fixed the problem by copying libharbour.so.3.2 to /usr/local/bin, however this time the problem persists. Any ideas? Thanks. 

Michael Green

unread,
Aug 15, 2025, 11:27:54 AMAug 15
to Harbour Users
Oh, ho. The problem seems to centre around an environmental variable called:
LD_LIBRARY_PATH
What I did was:
$ LD_LIBRARY_PATH=/usr/local/lib/harbour [Enter]
$  export LD_LIBRARY_PATH [Enter]

I'm not yet sure how to make these setting 'stick'. 

Gerald Drouillard

unread,
Aug 15, 2025, 11:31:22 AMAug 15
to harbou...@googlegroups.com
This is how I build on debian based distros:
DEST="/Sandbox/harbour"
#Linux (.deb based distros: Debian, Ubuntu)
git clone https://github.com/harbour/core.git $DEST
cd $DEST
#You can get subsequent updates using this command:
#git pull

#To build:
export HB_WITH_CURL=/usr/include/x86_64-linux-gnu
export HB_WITH_PCRE=local
export HB_WITH_OPENSSL=
make
make install
ldconfig

--
You received this message because you are subscribed to the Google Groups "Harbour Users" group.
Unsubscribe: harbour-user...@googlegroups.com
Web: https://groups.google.com/group/harbour-users
---
You received this message because you are subscribed to the Google Groups "Harbour Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to harbour-user...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/harbour-users/f1197ea4-4f8b-4803-b3f9-e14c06e27a53n%40googlegroups.com.

Francesco Perillo

unread,
Aug 15, 2025, 11:31:48 AMAug 15
to harbou...@googlegroups.com
If you did a make install try to run a ldconfig.
If it doesn't work read ldconfig man page or this page https://linux.die.net/man/8/ldconfig



--
Message has been deleted

Itamar Lins

unread,
Aug 15, 2025, 12:48:39 PMAug 15
to Harbour Users
Hi!
sudo make clean install -> put harbour bin and lib an appropriate folder and the path locate it.
make clean install -> put /home out off path.

Best regards,
Itamar M. Lins Jr.

Michael Green

unread,
Aug 15, 2025, 3:31:23 PMAug 15
to Harbour Users
Thank you all. The solution is:
# ldconfig [Enter]

Simple as that.

Here's the full story:
Get the compiler and the associated gubbins:
# apt install build-essential

Download Harbour sources:
# wget https://github.com/harbour/core/archive/master.tar.gz
(alternative) # wget https://github.com/harbour/core/archive/refs/heads/master.tar.gz

Extract the files:
# tar xf master.tar.gz

Compile Harbour
# cd core-master && make install
# ldconfig
# /usr/sbin/reboot

Great success.
Reply all
Reply to author
Forward
0 new messages