% ldd /usr/local/bin/rsync
/usr/local/bin/rsync:
liblz4.so.1 => /usr/local/lib/liblz4.so.1 (0x8002c5000)
libzstd.so.1 => /usr/local/lib/libzstd.so.1 (0x8002f3000)
libxxhash.so.0 => /usr/local/lib/libxxhash.so.0 (0x8003e9000)
libcrypto.so.11 => /usr/local/lib/libcrypto.so.11 (0x8003f6000)
libc.so.7 => /lib/libc.so.7 (0x80067d000)
libthr.so.3 => /lib/libthr.so.3 (0x800a73000)
% ldd /usr/local/bin/rsync
/usr/local/bin/rsync:
liblz.so.6 => /lib/liblz.so.6 (0x8002b7000)
libiconv.so.2 => not found (0)
liblz4.so.1 => not found (0)
libzstd.so.1 => not found (0)
libxxhash.so.0 => not found (0)
libcrypto.so.111 => /lib/libcrypto.so.111 (0x8002d3000)
libc.so.7 => /lib/libc.so.7 (0x8005c5000)
libthr.so.3 => /lib/libthr.so.3 (0x8009bb000)
echo $PATH
/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin
$ ldd `which rsync`
/usr/local/bin/rsync:
libz.so.6 => /lib/libz.so.6 (0x8002b7000)
libiconv.so.2 => /usr/local/lib/libiconv.so.2 (0x8002d3000)
liblz4.so.1 => /usr/local/lib/liblz4.so.1 (0x8003d3000)
libzstd.so.1 => /usr/local/lib/libzstd.so.1 (0x800401000)
libxxhash.so.0 => /usr/local/lib/libxxhash.so.0 (0x8004ee000)
libcrypto.so.111 => /lib/libcrypto.so.111 (0x8004fb000)
libc.so.7 => /lib/libc.so.7 (0x8007ed000)
libthr.so.3 => /lib/libthr.so.3 (0x800be3000)
$ pkg info rsync
rsync-3.2.3
Name : rsync
Version : 3.2.3
Installed on : Sun Feb 14 08:14:42 2021 PST
Origin : net/rsync
Architecture : FreeBSD:12:amd64
Prefix : /usr/local
Categories : net
Licenses : GPLv3+
Maintainer : rodrigo@FreeBSD.org
WWW : http://rsync.samba.org/
Comment : Network file distribution/synchronization utility
Options :
DOCS : on
FLAGS : on
ICONV : on
POPT_PORT : off
RENAMED : off
SSH : on
ZLIB_BASE : on
Shared Libs required:
libxxhash.so.0
liblz4.so.1
libiconv.so.2
libzstd.so.1
Annotations :
FreeBSD_version: 1202000
cpe : cpe:2.3:a:samba:rsync:3.2.3:::::freebsd12:x64
repo_type : binary
repository : FreeBSD
Flat size : 789KiB
Description :
rsync is a replacement for rcp that has many more features.
...
pkg install -f rsync
shared object "libiconv.so.2" not found, required by "rsync"
libiconv.so.2 => not found (0)
liblz4.so.1 => not found (0)
libzstd.so.1 => not found (0)
libxxhash.so.0 => not found (0)
Thethank you, reinstalling (for the 3rd time) helped - temporarily. I issued the command with -vn options to ascertain how it will work, and it did list the files to be synchronized.
However, when I removed the -n to run it, it rewarded me again with the same error:Code:shared object "libiconv.so.2" not found, required by "rsync"
-n
option makes it so pkg-install(8) reports what it would do, but doesn't actually perform any actions. All you've confirmed is that pkg itself works.I guess that's how you call it.Your system appears to be quite FUBAR
pkg upgrade -f
(this should reinstall every package from the repository) rsync
.[f12.144] $ set | grep LD
[f12.138] $ ldd /usr/local/bin/bash
/usr/local/bin/bash:
libreadline.so.8 => /usr/local/lib/libreadline.so.8 (0x80032e000)
libhistory.so.8 => /usr/local/lib/libhistory.so.8 (0x800386000)
libncurses.so.8 => /lib/libncurses.so.8 (0x800393000)
libintl.so.8 => /usr/local/lib/libintl.so.8 (0x8003ec000)
libdl.so.1 => /usr/lib/libdl.so.1 (0x8003fb000)
libc.so.7 => /lib/libc.so.7 (0x8003ff000)
libncursesw.so.8 => /lib/libncursesw.so.8 (0x8007f5000)
-f
option as advised by Jose, and attempting to execute net/rsync with -nv
option to ascertain whether the re-installation worked showed the expected files to be synchronized. Subsequent execution with removed -n
option resulted again in the noted errors re library/ies.